]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/log
linux-2.6-omap-h63xx.git
17 years agosh: add isp1161 usb host device to se7343
Magnus Damm [Thu, 4 Dec 2008 09:00:22 +0000 (18:00 +0900)]
sh: add isp1161 usb host device to se7343

Add isp1161 platform data to get usb host working on se7343.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: add st16c2550 devices to se7343
Magnus Damm [Thu, 4 Dec 2008 09:00:11 +0000 (18:00 +0900)]
sh: add st16c2550 devices to se7343

Add 8250 platform data to setup the ST16C2550C chip on se7343.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: fix number of interrupts on se7343
Magnus Damm [Thu, 4 Dec 2008 09:00:02 +0000 (18:00 +0900)]
sh: fix number of interrupts on se7343

Fix to make sure that the on-board interrupt sources are included
in the interrupt count on se7343.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: sh7343 scif configuration update
Magnus Damm [Thu, 4 Dec 2008 08:59:54 +0000 (17:59 +0900)]
sh: sh7343 scif configuration update

Fix interrupt values for the first sh7343 SCIF port and
update the configuration to include the remaining 3 ones.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: propagate r_clk
Magnus Damm [Mon, 1 Dec 2008 06:40:33 +0000 (15:40 +0900)]
sh: propagate r_clk

Make sure the 32 KHz r_clk rate gets propagated correctly. Without
this fix the clocks for RTC, CMT, KEYSC and RWDT are stuck at 0 Hz.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: RSK+ 7201 board support.
Peter Griffin [Fri, 28 Nov 2008 13:56:45 +0000 (22:56 +0900)]
sh: RSK+ 7201 board support.

This patch adds support for the RTE RSK+ 7201 board.

Signed-off-by: Peter Griffin <pgriffin@mpc-data.co.uk>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: Add support for SH7201 CPU subtype.
Peter Griffin [Fri, 28 Nov 2008 13:48:20 +0000 (22:48 +0900)]
sh: Add support for SH7201 CPU subtype.

This patch adds support for the SH-2A FPU based SH7201 processor subtype.

Signed-off-by: Peter Griffin <pgriffin@mpc-data.co.uk>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: Switch HD64461 from hw_interrupt_type to irq_chip
Matt Fleming [Fri, 28 Nov 2008 08:58:30 +0000 (08:58 +0000)]
sh: Switch HD64461 from hw_interrupt_type to irq_chip

Use struct irq_chip for the interrupt handler for the HD64461. Also
convert some in{b,w} and out{b,w} calls to the equivalent __raw_* calls.
Include <linux/io.h> and not <asm/io.h> to stop checkpatch.pl
complaining.

This change should now allow machines with HD64461 to define
GENERIC_HARDIRQS_NO__DO_IRQ.

Acked-by: Kristoffer Ericson <Kristoffer.Ericson@gmail.com>
Signed-off-by: Matt Fleming <mjf@gentoo.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: pci-sh7780: fix pci memory address mask
Yoshihiro Shimoda [Thu, 27 Nov 2008 09:57:35 +0000 (18:57 +0900)]
sh: pci-sh7780: fix pci memory address mask

Fix the problem that cannot work a PCI device when system memory size is
256Mbyte in 29bit address mode.

Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: Provide a dyn_arch_ftrace struct definition.
Paul Mundt [Thu, 27 Nov 2008 02:04:43 +0000 (11:04 +0900)]
sh: Provide a dyn_arch_ftrace struct definition.

Needed for dynamic ftrace API changes.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: Split out the idle loop for reuse between _32/_64 variants.
Paul Mundt [Wed, 26 Nov 2008 06:52:44 +0000 (15:52 +0900)]
sh: Split out the idle loop for reuse between _32/_64 variants.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: Consolidate cpu_relax()/cpu_sleep() definitions across _32/_64.
Paul Mundt [Wed, 26 Nov 2008 06:47:44 +0000 (15:47 +0900)]
sh: Consolidate cpu_relax()/cpu_sleep() definitions across _32/_64.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: do not latency trace idle.
Paul Mundt [Wed, 26 Nov 2008 06:22:50 +0000 (15:22 +0900)]
sh: do not latency trace idle.

Description snipped from Steven Rostedt's PPC patch:

    When idle is called, interrupts are blocked, but the idle
    function will still wake up on an interrupt. The problem is
    that the interrupt disabled latency tracer will take this call
    to idle as a latency.

    This patch disables the latency tracing when going into idle.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: Tidy up backtrace formatting with kallsyms disabled.
Paul Mundt [Wed, 26 Nov 2008 06:20:35 +0000 (15:20 +0900)]
sh: Tidy up backtrace formatting with kallsyms disabled.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: Add a simple code dumper for SUPERH32 show_regs().
Paul Mundt [Wed, 26 Nov 2008 05:31:03 +0000 (14:31 +0900)]
sh: Add a simple code dumper for SUPERH32 show_regs().

This implements a simple show_code() that is in turn plugged in to
show_regs() to provide minimal code dumping at the end of the trace.

Built on top of a simple instruction disassembler derived from the
binutils opcode table.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: Add a few more branch types to the branch emulator.
Paul Mundt [Wed, 26 Nov 2008 04:06:04 +0000 (13:06 +0900)]
sh: Add a few more branch types to the branch emulator.

This plugs in some extra encodings for matching more bsr/bsrf/jsr
branches.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: Re-add support for best fit ISA tuning if none is available.
Paul Mundt [Tue, 25 Nov 2008 19:21:36 +0000 (04:21 +0900)]
sh: Re-add support for best fit ISA tuning if none is available.

This was removed in the libgcc integration, but there are still some
compilers that need this. We also relax the rules on the ISA tuning in
the cases where there are no matches for the CPU tuning and adopt the
-any default, which matches the intent of the isa-y target list. This
compensates for mismatches where binutils supports a wide array of
targets whilst the compiler is much more restricted.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: More movmem alias symbol exports for older compilers.
Paul Mundt [Tue, 25 Nov 2008 18:44:07 +0000 (03:44 +0900)]
sh: More movmem alias symbol exports for older compilers.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: Provide optimized unaligned loads on SH-4A.
Paul Mundt [Tue, 25 Nov 2008 15:29:58 +0000 (00:29 +0900)]
sh: Provide optimized unaligned loads on SH-4A.

This adds support for unaligned loads on SH-4A, using the SH-4A's
neutered movua.l instruction. As movua.l is r0-inspired, stores are
still handled through the packed struct.

Based on asm-generic/unaligned.h by Harvey Harrison.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: P4 ioremap pass-through
Magnus Damm [Tue, 25 Nov 2008 12:57:29 +0000 (21:57 +0900)]
sh: P4 ioremap pass-through

This patch adds a pass-through case when ioremapping P4 addresses.

Addresses passed to ioremap() should be physical addresses, so the
best option is usually to convert the virtual address to a physical
address before calling ioremap. This will give you a virtual address
in P2 which matches the physical address and this works well for
most internal hardware blocks on the SuperH architecture.

However, some hardware blocks must be accessed through P4. Converting
the P4 address to a physical and then back to a P2 does not work. One
example of this is the sh7722 TMU block, it must be accessed through P4.

Without this patch P4 addresses will be mapped using PTEs which
requires the page allocator to be up and running.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: Add SH-4A optimized fastpath mutex implementation.
Michael Trimarchi [Tue, 25 Nov 2008 12:37:14 +0000 (21:37 +0900)]
sh: Add SH-4A optimized fastpath mutex implementation.

Add fast mutex path implementation for the SH4A architecture

Signed-off-by: Michael Trimarchi <trimarchimichael@yahoo.it>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: sh7760fb: Add support SH7720/SH7721 of Renesas
Nobuhiro Iwamatsu [Fri, 21 Nov 2008 05:35:29 +0000 (14:35 +0900)]
sh: sh7760fb: Add support SH7720/SH7721 of Renesas

SH7720 and 7721 has IP of Frame Buffer same as SH7760.
This driver can support these.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: sh7760fb: Fix color pallette setting
Nobuhiro Iwamatsu [Fri, 21 Nov 2008 05:34:25 +0000 (14:34 +0900)]
sh: sh7760fb: Fix color pallette setting

The setting of the color palette was wrong, fixed it.
And removed fb_setcmap, and added fb_setcolreg function.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: add SH DMAC burst mode constant
Steve Glendinning [Sun, 23 Nov 2008 15:00:31 +0000 (15:00 +0000)]
sh: add SH DMAC burst mode constant

The SH7709 datasheet defines bit 5 as set for burst mode, clear for
cycle-steal mode.

Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: fix DMAOR register access on SH7709
Steve Glendinning [Sun, 23 Nov 2008 14:27:22 +0000 (14:27 +0000)]
sh: fix DMAOR register access on SH7709

sh7709 hardware manual says DMAOR is 16 bits long on this platform.

Tested and working with a modified smsc911x ethernet driver (sh-dma
support patch for this driver is coming soon).

Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: Add platform-specific constants for SH7709
Steve Glendinning [Sun, 23 Nov 2008 14:27:21 +0000 (14:27 +0000)]
sh: Add platform-specific constants for SH7709

I'm using these constants in support of an in-house development board,
and thought they may be useful to other users of SH7709.

Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: Provide optimized non-atomic bitops for SH-2A.
Paul Mundt [Tue, 25 Nov 2008 12:22:02 +0000 (21:22 +0900)]
sh: Provide optimized non-atomic bitops for SH-2A.

This ties in the new SH-2A 32-bit non-atomic bitops.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: Add -m4al tuning for SH4AL-DSP.
Paul Mundt [Thu, 20 Nov 2008 06:28:47 +0000 (15:28 +0900)]
sh: Add -m4al tuning for SH4AL-DSP.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: Add exports for __udivsi3/__sdivsi3 and the _i4 versions.
Paul Mundt [Thu, 20 Nov 2008 06:26:35 +0000 (15:26 +0900)]
sh: Add exports for __udivsi3/__sdivsi3 and the _i4 versions.

Needed by older compilers.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: Convert to generic bitops for IRQ-toggling implementation.
Paul Mundt [Thu, 20 Nov 2008 06:25:22 +0000 (15:25 +0900)]
sh: Convert to generic bitops for IRQ-toggling implementation.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: Specify sane default image targets for the SH-2 platforms.
Paul Mundt [Tue, 18 Nov 2008 08:35:45 +0000 (17:35 +0900)]
sh: Specify sane default image targets for the SH-2 platforms.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: Migrate necessary libgcc bits in to arch/sh/lib for SUPERH32.
Paul Mundt [Tue, 18 Nov 2008 08:33:48 +0000 (17:33 +0900)]
sh: Migrate necessary libgcc bits in to arch/sh/lib for SUPERH32.

This moves in the necessary libgcc bits for SUPERH32 and drops the
libgcc linking for the regular targets. This in turn allows us to rip
out quite a few hacks both in sh_ksyms_32 and arch/sh/Makefile.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: __udivdi3 -> do_div() in softfloat lib.
Paul Mundt [Tue, 18 Nov 2008 05:22:39 +0000 (14:22 +0900)]
sh: __udivdi3 -> do_div() in softfloat lib.

Inhibit the generation of __udivdi3 for the softfloat lib, use do_div()
outright.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: Fix clock framework compiler warnings.
Paul Mundt [Tue, 18 Nov 2008 05:21:34 +0000 (14:21 +0900)]
sh: Fix clock framework compiler warnings.

  CC      arch/sh/kernel/cpu/clock.o
  arch/sh/kernel/cpu/clock.c: In function 'clk_disable':
  arch/sh/kernel/cpu/clock.c:156: warning: 'return' with a value, in function returning void

Introduced by ("sh: enable and disable clocks recursively").

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agousb: Fix up sh_mobile usbf clock framework warnings.
Paul Mundt [Tue, 18 Nov 2008 03:40:39 +0000 (12:40 +0900)]
usb: Fix up sh_mobile usbf clock framework warnings.

drivers/usb/gadget/m66592-udc.c: In function 'm66592_probe':
drivers/usb/gadget/m66592-udc.c:1672: warning: label 'clean_up2' defined but not used
drivers/usb/host/r8a66597-hcd.c: In function 'r8a66597_probe':
drivers/usb/host/r8a66597-hcd.c:2401: warning: label 'clean_up2' defined but not used

Added by commit 985fc7c81c7852f2e104c71cbe913ace683c9e6a ("sh: sh_mobile
usbf clock framework support").

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agoserial: sh-sci: Codestyle cleanup patch.
Michael Trimarchi [Thu, 13 Nov 2008 09:18:35 +0000 (18:18 +0900)]
serial: sh-sci: Codestyle cleanup patch.

Trivial coding style cleanups.

Signed-off-by: Michael Trimarchi <trimarchimichael@yahoo.it>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agomedia: sh_mobile_ceu_camera: Add HAVE_CLK dependency.
Paul Mundt [Thu, 13 Nov 2008 03:20:26 +0000 (12:20 +0900)]
media: sh_mobile_ceu_camera: Add HAVE_CLK dependency.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: dynamic ftrace support.
Matt Fleming [Wed, 12 Nov 2008 11:11:47 +0000 (20:11 +0900)]
sh: dynamic ftrace support.

First cut at dynamic ftrace support.

Signed-off-by: Matt Fleming <mjf@gentoo.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: remove old sh_mobile mstpc clocks
Magnus Damm [Fri, 31 Oct 2008 11:24:01 +0000 (20:24 +0900)]
sh: remove old sh_mobile mstpc clocks

Remove the old sh_mobile mstpcr clocks.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: sh_mobile lcdc clock framework support
Magnus Damm [Fri, 31 Oct 2008 11:23:26 +0000 (20:23 +0900)]
sh: sh_mobile lcdc clock framework support

Add clock framework support to the lcdc driver and
adjust the board specific code accordingly.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: sh_mobile usb clock framework support
Magnus Damm [Fri, 31 Oct 2008 11:22:38 +0000 (20:22 +0900)]
sh: sh_mobile usb clock framework support

Add clock framework support to the usb/r8a66597 driver and
adjust the cpu specific code accordingly.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: sh_mobile usbf clock framework support
Magnus Damm [Fri, 31 Oct 2008 11:22:13 +0000 (20:22 +0900)]
sh: sh_mobile usbf clock framework support

Add clock framework support to the usbf/m66592 driver and
adjust the cpu specific code accordingly.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: sh_mobile ceu clock framework support
Magnus Damm [Fri, 31 Oct 2008 11:21:44 +0000 (20:21 +0900)]
sh: sh_mobile ceu clock framework support

Add clock framework support to the sh_mobile ceu and
adjust the board specific code accordingly.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: sh_mobile keysc clock framework support
Magnus Damm [Fri, 31 Oct 2008 11:21:23 +0000 (20:21 +0900)]
sh: sh_mobile keysc clock framework support

Add clock framework support to the sh_mobile keysc driver and
adjust the board specific code accordingly.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: sh_mobile i2c clock framework support
Magnus Damm [Fri, 31 Oct 2008 11:20:55 +0000 (20:20 +0900)]
sh: sh_mobile i2c clock framework support

Add clock framework support to the sh_mobile i2c driver and
adjust the processor specific code accordingly.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: sh_mobile mstpcr clocks for sh7366
Magnus Damm [Fri, 31 Oct 2008 11:20:23 +0000 (20:20 +0900)]
sh: sh_mobile mstpcr clocks for sh7366

Add sh7366 mstpcr bits and information about their parent clocks.
The datasheet is pretty clear about the clocks on this device.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: sh_mobile mstpcr clocks for sh7343
Magnus Damm [Fri, 31 Oct 2008 11:19:38 +0000 (20:19 +0900)]
sh: sh_mobile mstpcr clocks for sh7343

Add sh7343 mstpcr bits and information about their parent clocks.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: sh_mobile mstpcr clocks for sh7723
Magnus Damm [Fri, 31 Oct 2008 11:16:08 +0000 (20:16 +0900)]
sh: sh_mobile mstpcr clocks for sh7723

Add sh7723 mstpcr bits and information about their parent clocks.
The datasheet is pretty clear about the clocks on this device.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: sh_mobile mstpcr clocks for sh7722
Magnus Damm [Fri, 31 Oct 2008 11:15:48 +0000 (20:15 +0900)]
sh: sh_mobile mstpcr clocks for sh7722

Add sh7722 mstpcr bits and information about their parent clocks.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: new sh_mobile mstpcr clocks base code
Magnus Damm [Fri, 31 Oct 2008 11:15:07 +0000 (20:15 +0900)]
sh: new sh_mobile mstpcr clocks base code

Add base code to handle new mstpcr clocks. Make sure clock rates propagate.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: use arch_flags for sh_mobile mstpcr clock bits
Magnus Damm [Fri, 31 Oct 2008 11:14:28 +0000 (20:14 +0900)]
sh: use arch_flags for sh_mobile mstpcr clock bits

Use arch_flags to keep track of register and flag number.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: sh_mobile clock divider index fix
Magnus Damm [Fri, 31 Oct 2008 11:14:03 +0000 (20:14 +0900)]
sh: sh_mobile clock divider index fix

Use divider index value instead of divider value.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: enable and disable clocks recursively
Magnus Damm [Fri, 31 Oct 2008 11:13:32 +0000 (20:13 +0900)]
sh: enable and disable clocks recursively

Recurse and make sure parent clocks get enabled/disabled.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: Move arch_get_unmapped_area() in to arch/sh/mm/mmap.c.
Paul Mundt [Wed, 12 Nov 2008 04:17:38 +0000 (13:17 +0900)]
sh: Move arch_get_unmapped_area() in to arch/sh/mm/mmap.c.

Now that arch/sh/mm/mmap.c exists, move arch_get_unmapped_area() there.
Follows the ARM change.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agoMIPS: MIPS64R2: Fix buggy __arch_swab64
David Daney [Wed, 17 Dec 2008 21:28:39 +0000 (13:28 -0800)]
MIPS: MIPS64R2: Fix buggy __arch_swab64

The way the code is written it was assuming dshd has the function of a
hypothetical dshw instruction ...

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
17 years agoMIPS: Fix preprocessor warnings flaged by GCC 4.4
David Daney [Thu, 18 Dec 2008 02:19:18 +0000 (18:19 -0800)]
MIPS: Fix preprocessor warnings flaged by GCC 4.4

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
17 years ago[XFS] avoid memory allocations in xfs_fs_vcmn_err
Christoph Hellwig [Wed, 17 Dec 2008 17:27:36 +0000 (12:27 -0500)]
[XFS] avoid memory allocations in xfs_fs_vcmn_err

xfs_fs_vcmn_err can be called under a spinlock, but does a sleeping memory
allocation to create buffer for it's internal sprintf.  Fortunately it's
the only caller of icmn_err, so we can merge the two and have one single
static buffer and spinlock protecting it.  While we're at it make sure
we proper __attribute__ format annotations so that the compiler can detect
mismatched format strings.

Reported-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
17 years ago[XFS] Fix speculative allocation beyond eof
Lachlan McIlroy [Mon, 22 Dec 2008 06:56:49 +0000 (17:56 +1100)]
[XFS] Fix speculative allocation beyond eof

Speculative allocation beyond eof doesn't work properly.  It was
broken some time ago after a code cleanup that moved what is now
xfs_iomap_eof_align_last_fsb() and xfs_iomap_eof_want_preallocate()
out of xfs_iomap_write_delay() into separate functions.  The code
used to use the current file size in various checks but got changed
to be max(file_size, i_new_size).  Since i_new_size is the result
of 'offset + count' then in xfs_iomap_eof_want_preallocate() the
check for '(offset + count) <= isize' will always be true.

ie if 'offset + count' is > ip->i_size then isize will be i_new_size
and equal to 'offset + count'.

This change fixes all the places that used to use the current file
size.

Reviewed-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
17 years ago[XFS] Remove XFS_BUF_SHUT() and friends
Lachlan McIlroy [Mon, 22 Dec 2008 06:52:58 +0000 (17:52 +1100)]
[XFS] Remove XFS_BUF_SHUT() and friends

Code does nothing so remove it.

Reviewed-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
17 years ago[XFS] Use the incore inode size in xfs_file_readdir()
Lachlan McIlroy [Mon, 22 Dec 2008 06:50:56 +0000 (17:50 +1100)]
[XFS] Use the incore inode size in xfs_file_readdir()

We should be using the incore inode size here not the linux inode
size.  The incore inode size is always up to date for directories
whereas the linux inode size is not updated for directories.

We've hit assertions in xfs_bmap() and traced it back to the linux
inode size being zero but the incore size being correct.

Reviewed-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
17 years agosched: fix warning in fs/proc/base.c
Ingo Molnar [Mon, 22 Dec 2008 06:37:41 +0000 (07:37 +0100)]
sched: fix warning in fs/proc/base.c

Stephen Rothwell reported this new (harmless) build warning on platforms that
define u64 to long:

 fs/proc/base.c: In function 'proc_pid_schedstat':
 fs/proc/base.c:352: warning: format '%llu' expects type 'long long unsigned int', but argument 3 has type 'u64'

asm-generic/int-l64.h platforms strike again: that file should be eliminated.

Fix it by casting the parameters to long long.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years ago[XFS] Fix merge conflict in fs/xfs/xfs_rename.c
Lachlan McIlroy [Mon, 22 Dec 2008 06:34:26 +0000 (17:34 +1100)]
[XFS] Fix merge conflict in fs/xfs/xfs_rename.c

Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6

Conflicts:

fs/xfs/xfs_rename.c

Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
17 years agotg3: Update version to 3.97
Matt Carlson [Mon, 22 Dec 2008 04:21:52 +0000 (20:21 -0800)]
tg3: Update version to 3.97

This patch updates the version number to 3.97.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agotg3: tg3.h cleanups
Matt Carlson [Mon, 22 Dec 2008 04:21:18 +0000 (20:21 -0800)]
tg3: tg3.h cleanups

This patch cleans up the tg3 header file by removing the preprocessor
definitions for standard PCI configuration space registers.  The driver
should be using the standard definitions when needed.  The patch
continues by removing redundant PHY related definitions and reorganizes
some of the remaining entries.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agotg3: Remove unused cfgspc device members
Matt Carlson [Mon, 22 Dec 2008 04:19:57 +0000 (20:19 -0800)]
tg3: Remove unused cfgspc device members

This patch removes the pci_bist and pci_hdr_type members from the
device structure and removes the code that references them.  They are
not really used.

The patch rounds out the changes by moving the pci_cmd member to plug
a structure hole that would have been created.  On 32-bit systems, this
movement removes a subsequent structure hole later in the structure. On
64-bit systems though, the movement merely consolidates two holes into
one larger hole.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agotg3: Cleanup IPV6 LSO
Matt Carlson [Mon, 22 Dec 2008 04:19:30 +0000 (20:19 -0800)]
tg3: Cleanup IPV6 LSO

This patch attempts to make the relationship between IPV6 checksum
offload and IPV6 LSO more obvious.  The patch also toggles a bit
needed for IPV6 LSO on 5785 and 57780 devices.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agotg3: WOL fixes
Matt Carlson [Mon, 22 Dec 2008 04:18:56 +0000 (20:18 -0800)]
tg3: WOL fixes

The first hunk of this patch inverts a flag that was accidentally
toggled as part of commit 0a459aac9d151c2e36ec65723b9b845b24c5cbc3
("tg3: Allow WOL for phylib controlled Broadcom phys").

The second hunk of the patch removes the call to
device_may_wakeup() in the 5906 config detection path.  At the
point of the call, the driver shouldn't be querying for WOL
capability.  It should be detecting and setting it.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agopkt_sched: Annotate uninitialized var in sfq_enqueue()
Jarek Poplawski [Mon, 22 Dec 2008 04:14:48 +0000 (20:14 -0800)]
pkt_sched: Annotate uninitialized var in sfq_enqueue()

Some gcc versions warn that ret may be used uninitialized in
sfq_enqueue(). It's a false positive, so let's annotate this.

Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agoixgbe: fix the display of DCB control stats in ethtool
Don Skidmore [Mon, 22 Dec 2008 04:11:04 +0000 (20:11 -0800)]
ixgbe: fix the display of DCB control stats in ethtool

Priority flow contol statistics for Data Center Bridging (DCB) weren't
included in ethtool.  This patch adds them.

Signed-off-by: Don Skidmore <donald.c.skidmore@intel.com>
Signed-off-by: Eric W Multanen <eric.w.multanen@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agonet: add DCNA attribute to the BCN interface for DCB
Don Skidmore [Mon, 22 Dec 2008 04:10:29 +0000 (20:10 -0800)]
net: add DCNA attribute to the BCN interface for DCB

Adds the Backward Congestion Notification Address (BCNA) attribute to the
Backward Congestion Notification (BCN) interface for Data Center Bridging
(DCB), which was missing.  Receive the BCNA attribute in the ixgbe driver.
The BCNA attribute is for a switch to inform the endstation about the physical
port identification in order to support BCN on aggregated links.

Signed-off-by: Don Skidmore <donald.c.skidmore@intel.com>
Signed-off-by: Eric W Multanen <eric.w.multanen@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
17 years agonet: fix DCB setstate to return success/failure
Don Skidmore [Mon, 22 Dec 2008 04:09:50 +0000 (20:09 -0800)]
net: fix DCB setstate to return success/failure

Data Center Bridging (DCB) had no way to know if setstate had failed in the
driver.  This patch enables dcb netlink code to handle the status for the DCB
setstate interface.  Likewise it allows the driver to return a failed status
if MSI-X isn't enabled.

Signed-off-by: Don Skidmore <donald.c.skidmore@intel.com>
Signed-off-by: Eric W Multanen <eric.w.multanen@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agoMerge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wirel...
David S. Miller [Mon, 22 Dec 2008 03:57:10 +0000 (19:57 -0800)]
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6

17 years agoConvert ixp4xx_eth driver to use net_device_ops.
Krzysztof Hałasa [Mon, 22 Dec 2008 01:00:17 +0000 (02:00 +0100)]
Convert ixp4xx_eth driver to use net_device_ops.

Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
17 years agodrivers/net/wan: Remove redundant test
Julia Lawall [Sun, 21 Dec 2008 15:39:15 +0000 (16:39 +0100)]
drivers/net/wan: Remove redundant test

arg is checked not to be NULL a few lines before.

A simplified version of the semantic patch that makes this change is as
follows: (http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@r exists@
local idexpression x;
expression E;
position p1,p2;
@@

if (x@p1 == NULL || ...) { ... when forall
   return ...; }
... when != \(x=E\|x--\|x++\|--x\|++x\|x-=E\|x+=E\|x|=E\|x&=E\|&x\)
(
x@p2 == NULL
|
x@p2 != NULL
)

// another path to the test that is not through p1?
@s exists@
local idexpression r.x;
position r.p1,r.p2;
@@

... when != x@p1
(
x@p2 == NULL
|
x@p2 != NULL
)

@fix depends on !s@
position r.p1,r.p2;
expression x,E;
statement S1,S2;
@@

(
- if ((x@p2 != NULL) || ...)
  S1
|
- if ((x@p2 == NULL) && ...) S1
|
- BUG_ON(x@p2 == NULL);
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
17 years agoHDLC_PPP: Fix Configure-Ack to return original options as required by the standard.
Krzysztof Hałasa [Wed, 26 Nov 2008 22:06:57 +0000 (23:06 +0100)]
HDLC_PPP: Fix Configure-Ack to return original options as required by the standard.

Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
17 years agoIXP4xx: move common debugging from network drivers to QMGR module.
Krzysztof Hałasa [Sun, 21 Dec 2008 23:26:38 +0000 (00:26 +0100)]
IXP4xx: move common debugging from network drivers to QMGR module.

Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
17 years agoUpdate MAINTAINERS entries for IXP4xx and WAN network drivers.
Krzysztof Hałasa [Sun, 21 Dec 2008 22:52:36 +0000 (23:52 +0100)]
Update MAINTAINERS entries for IXP4xx and WAN network drivers.

Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
17 years agoWAN: Add IXP4xx HSS HDLC driver.
Krzysztof Hałasa [Sun, 21 Dec 2008 22:52:18 +0000 (23:52 +0100)]
WAN: Add IXP4xx HSS HDLC driver.

Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
17 years agoIXP4xx: Add ethtool support to Ethernet driver.
Krzysztof Hałasa [Sat, 20 Dec 2008 23:02:34 +0000 (00:02 +0100)]
IXP4xx: Add ethtool support to Ethernet driver.

Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
17 years agoIXP4xx: Add PHYLIB MII ioctl to the Ethernet driver.
Krzysztof Hałasa [Sat, 20 Dec 2008 17:57:23 +0000 (18:57 +0100)]
IXP4xx: Add PHYLIB MII ioctl to the Ethernet driver.

Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
17 years agoIXP4xx: Add PHYLIB support to Ethernet driver.
Krzysztof Hałasa [Sat, 20 Dec 2008 00:53:08 +0000 (01:53 +0100)]
IXP4xx: Add PHYLIB support to Ethernet driver.

Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
17 years agoIXP4xx: Make the Ethernet driver use built-in netdev stats.
Krzysztof Hałasa [Sat, 20 Dec 2008 00:58:59 +0000 (01:58 +0100)]
IXP4xx: Make the Ethernet driver use built-in netdev stats.

Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
17 years agoIXP4xx: Silence section mismatch warning in Ethernet driver.
Krzysztof Hałasa [Wed, 26 Nov 2008 21:59:18 +0000 (22:59 +0100)]
IXP4xx: Silence section mismatch warning in Ethernet driver.

Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
17 years agoIXP4xx: clear IRQ stat in qmgr_disable_irq().
Krzysztof Hałasa [Fri, 9 May 2008 00:14:09 +0000 (02:14 +0200)]
IXP4xx: clear IRQ stat in qmgr_disable_irq().

Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
17 years agoIXP4xx: check for queue being empty in qmgr_release_queue().
Krzysztof Hałasa [Thu, 8 May 2008 21:18:31 +0000 (23:18 +0200)]
IXP4xx: check for queue being empty in qmgr_release_queue().

Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
17 years agoIB/iser: Avoid recv buffer exhaustion caused by unexpected PDUs
David Disseldorp [Sun, 21 Dec 2008 21:56:50 +0000 (13:56 -0800)]
IB/iser: Avoid recv buffer exhaustion caused by unexpected PDUs

iSCSI/iSER targets may send PDUs without a prior request from the
initiator.  RFC 5046 refers to these PDUs as "unexpected".  NOP-In PDUs
with itt=RESERVED and Asynchronous Message PDUs occupy this category.

The amount of active "unexpected" PDU's an iSER target may have at any
time is governed by the MaxOutstandingUnexpectedPDUs key, which is not
yet supported.

Currently when an iSER target sends an "unexpected" PDU, the
initiators recv buffer consumed by the PDU is not replaced.  If over
initial_post_recv_bufs_num "unexpected" PDUs are received then the
receive queue will run out of receive work requests entirely.

This patch ensures recv buffers consumed by "unexpected" PDUs are
replaced in the next iser_post_receive_control() call.

Signed-off-by: David Disseldorp <ddiss@sgi.com>
Signed-off-by: Ken Sandars <ksandars@sgi.com>
Acked-by: Or Gerlitz <ogerlitz@voltaire.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoIB/ehca: Remove redundant test of vpage
Julia Lawall [Sun, 21 Dec 2008 21:29:13 +0000 (13:29 -0800)]
IB/ehca: Remove redundant test of vpage

vpage is checked not to be NULL just after it is initialized at the
beginning of each loop iteration.

A simplified version of the semantic patch that makes this change is
as follows: (http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@r exists@
local idexpression x;
expression E;
position p1,p2;
@@

if (x@p1 == NULL || ...) { ... when forall
   return ...; }
... when != \(x=E\|x--\|x++\|--x\|++x\|x-=E\|x+=E\|x|=E\|x&=E\|&x\)
(
x@p2 == NULL
|
x@p2 != NULL
)

// another path to the test that is not through p1?
@s exists@
local idexpression r.x;
position r.p1,r.p2;
@@

... when != x@p1
(
x@p2 == NULL
|
x@p2 != NULL
)

@fix depends on !s@
position r.p1,r.p2;
expression x,E;
statement S1,S2;
@@

(
- if ((x@p2 != NULL) || ...)
  S1
|
- if ((x@p2 == NULL) && ...) S1
|
- BUG_ON(x@p2 == NULL);
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years ago[ARM] s3c: S3C options should depend on PLAT_S3C
Russell King [Sun, 21 Dec 2008 15:02:07 +0000 (15:02 +0000)]
[ARM] s3c: S3C options should depend on PLAT_S3C

This avoids non-Samsung builds being asked about Samsung specific
configuration options.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years agopowerpc/mpc5200: fix error paths in PSC UART probe function
Wolfram Sang [Sun, 21 Dec 2008 09:54:32 +0000 (02:54 -0700)]
powerpc/mpc5200: fix error paths in PSC UART probe function

- error cases for mapbase and irq were unbundled
- mapped irq now gets disposed on error

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
17 years agopowerpc/mpc5200: add rts/cts handling in PSC UART driver
Wolfram Sang [Sun, 21 Dec 2008 09:54:32 +0000 (02:54 -0700)]
powerpc/mpc5200: add rts/cts handling in PSC UART driver

Add RTS/CTS-support for the PSC of the MPC5200B. Tested with a Phytec
MPC5200B-IO.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
17 years agopowerpc/mpc5200: Make PSC UART driver update serial errors counters
René Bürgel [Sun, 21 Dec 2008 09:54:31 +0000 (02:54 -0700)]
powerpc/mpc5200: Make PSC UART driver update serial errors counters

This patch adds the capability to the mpc52xx-uart to report framing
errors, parity errors, breaks and overruns to userspace. These values
may be requested in userspace by using the ioctl TIOCGICOUNT.

Signed-off-by: René Bürgel <r.buergel@unicontrol.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
17 years agopowerpc/mpc5200: Remove obsolete code from mpc5200 MDIO driver
Wolfram Sang [Sun, 21 Dec 2008 09:54:30 +0000 (02:54 -0700)]
powerpc/mpc5200: Remove obsolete code from mpc5200 MDIO driver

As this driver polls for a complete MDIO transaction, there is no need
to enable interrupts for it.  Furthermore, make both checks for
freeing MDIO-bus irqs consistent.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
17 years agopowerpc/mpc5200: Add MDMA/UDMA support to MPC5200 ATA driver
Tim Yamin [Sun, 21 Dec 2008 09:54:29 +0000 (02:54 -0700)]
powerpc/mpc5200: Add MDMA/UDMA support to MPC5200 ATA driver

This patch adds MDMA/UDMA support using BestComm for DMA on the MPC5200
platform.  Based heavily on previous work by Freescale (Bernard Kuhn,
John Rigby) and Domen Puncer.

With this patch, a SanDisk Extreme IV CF card gets read speeds of
approximately 26.70 MB/sec.

Signed-off-by: Tim Yamin <plasm@roo.me.uk>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
17 years agopowerpc/mpc5200: Disable bestcomm prefetching when ATA DMA enabled
Grant Likely [Sun, 21 Dec 2008 09:54:28 +0000 (02:54 -0700)]
powerpc/mpc5200: Disable bestcomm prefetching when ATA DMA enabled

When ATA DMA is enabled, bestcomm prefetching does not work.  This
patch adds a function to disable bestcomm prefetch when the ATA
Bestcomm task is initialized.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
17 years agopowerpc/mpc5200: Bestcomm fixes to ATA support
Tim Yamin [Sun, 21 Dec 2008 09:54:28 +0000 (02:54 -0700)]
powerpc/mpc5200: Bestcomm fixes to ATA support

1) ata.h has dst_pa in the wrong place (needs to match what the BestComm
   task microcode in bcom_ata_task.c expects); fix it.

2) The BestComm ATA task priority was changed to maximum in bestcomm_priv.h;
   this fixes a deadlock issue experienced with heavy DMA occurring on
   both the ATA and Ethernet BestComm tasks, e.g. when downloading a large
   file over a LAN to disk.

Signed-off-by: Tim Yamin <plasm@roo.me.uk>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
17 years agopowerpc/mpc5200: Bugfix on handling variable sized buffer descriptors
Grant Likely [Sun, 21 Dec 2008 09:54:27 +0000 (02:54 -0700)]
powerpc/mpc5200: Bugfix on handling variable sized buffer descriptors

The buffer descriptors for the ATA BestComm task are larger than the
current definition for bcom_bd.  This causes problems because the
various bcom_... functions dereference the buffer descriptor pointer
by using the array operator which doesn't work when the buffer
descriptors are a different size.

This patch adds the bcom_get_bd() function which uses the value in
bcom_task.bd_size to calculate the offset into the BD table.  This
patch also changes the definition of bcom_bd to specify a data size
of 0 instead of 1 so that it will never work if anyone attempts to
dereference the bd list as an array (as opposed to something that
might work even though it is wrong).

Finally, this patch moves the definition of bcom_bd up in the file
to eliminate a forward declaration.

Based on patch originally written by Tim Yamin.

Signed-off-by: Tim Yamin <plasm@roo.me.uk>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
17 years agopowerpc/mpc5200: Make internal 5200 PIC the default interrupt controller
Grant Likely [Sun, 21 Dec 2008 09:54:27 +0000 (02:54 -0700)]
powerpc/mpc5200: Make internal 5200 PIC the default interrupt controller

The MPC5200 internal interrupt controller setup function needs to set
the default interrupt controller when it is called.  Without this
irq_create_of_mapping() cannot be called without first determining
the pointer to the irq controller (ie. call with controller = NULL).

Reported-by: Steven Cavanagh <scavanagh@secretlab.ca>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
17 years agopowerpc/mpc5200: Document and tidy irq driver
Grant Likely [Sun, 21 Dec 2008 09:54:26 +0000 (02:54 -0700)]
powerpc/mpc5200: Document and tidy irq driver

This patch adds documentation to the mpc5200 interrupt controller
driver and cleans up some minor coding conventions.  It also moves the
contents of mpc52xx_pic.h into the driver proper (except for a small
common bit that is moved to the common mpc52xx.h) because the
information encoded there is not required by any other part of kernel
code.  Finally for code readability sake, the L2_OFFSET shift value
is removed because the code using it resolves to a noop.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
17 years agopowerpc: Fix missing 'blr' in _tlbia()
Benjamin Herrenschmidt [Sun, 21 Dec 2008 09:54:25 +0000 (02:54 -0700)]
powerpc: Fix missing 'blr' in _tlbia()

Rework to MMU code dropped a much missed 'blr' instruction.

Brown-Paper-Bag-Worn-By: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
17 years agoftrace: enable format arguments checking
Lai Jiangshan [Sat, 20 Dec 2008 09:15:14 +0000 (17:15 +0800)]
ftrace: enable format arguments checking

Impact: broaden gcc printf format checks for ftrace_printk()

format arguments checking for ftrace_printk() is __printf(1, 2),
not __printf(1, 0).

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>