platform/adaptation/renesas_rcar/renesas_kernel.git
13 years agoARM: mach-iop32x: remove mach/memory.h
Nicolas Pitre [Wed, 6 Jul 2011 02:52:53 +0000 (22:52 -0400)]
ARM: mach-iop32x: remove mach/memory.h

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
13 years agoARM: mach-pnx4008: remove mach/memory.h
Nicolas Pitre [Wed, 6 Jul 2011 02:52:53 +0000 (22:52 -0400)]
ARM: mach-pnx4008: remove mach/memory.h

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
13 years agoARM: mach-w90x900: remove mach/memory.h
Nicolas Pitre [Wed, 6 Jul 2011 02:52:53 +0000 (22:52 -0400)]
ARM: mach-w90x900: remove mach/memory.h

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
13 years agoARM: mach-vexpress: remove mach/memory.h
Nicolas Pitre [Wed, 6 Jul 2011 02:52:53 +0000 (22:52 -0400)]
ARM: mach-vexpress: remove mach/memory.h

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
13 years agoARM: mach-mv78xx0: remove mach/memory.h
Nicolas Pitre [Wed, 6 Jul 2011 02:52:53 +0000 (22:52 -0400)]
ARM: mach-mv78xx0: remove mach/memory.h

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
13 years agoARM: mach-s3c2410: remove memory.h
Nicolas Pitre [Wed, 6 Jul 2011 02:52:53 +0000 (22:52 -0400)]
ARM: mach-s3c2410: remove memory.h

This also removes the mach/s3c2400 version which was probably never used
due to the fact that we have this line in arch/arm/Makefile:

machine-$(CONFIG_ARCH_S3C2410)          := s3c2410 s3c2400 [...]

This is later used to construct the search path for:

The compiler would be looking into mach-s3c2410 and picking up this
version first.  Any config that was actually expecting the mach-s3c2400
version was therefore producing a broken kernel binary.  Not relying on
any of them anymore would fix that issue.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
13 years agoARM: mach-iop33x: remove mach/memory.h
Nicolas Pitre [Wed, 6 Jul 2011 02:52:52 +0000 (22:52 -0400)]
ARM: mach-iop33x: remove mach/memory.h

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
13 years agoARM: mach-omap2: remove mach/memory.h
Nicolas Pitre [Wed, 6 Jul 2011 02:52:52 +0000 (22:52 -0400)]
ARM: mach-omap2: remove mach/memory.h

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Tony Lindgren <tony@atomide.com>
13 years agoARM: OMAP: move OMAP1 memory config from plat/memory.h to its mach/memory.h
Nicolas Pitre [Wed, 6 Jul 2011 02:52:52 +0000 (22:52 -0400)]
ARM: OMAP: move OMAP1 memory config from plat/memory.h to its mach/memory.h

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Tony Lindgren <tony@atomide.com>
13 years agoARM: mach-orion5x: remove mach/memory.h
Nicolas Pitre [Wed, 6 Jul 2011 02:52:52 +0000 (22:52 -0400)]
ARM: mach-orion5x: remove mach/memory.h

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
13 years agoARM: mach-kirkwood: remove mach/memory.h
Nicolas Pitre [Wed, 6 Jul 2011 02:52:51 +0000 (22:52 -0400)]
ARM: mach-kirkwood: remove mach/memory.h

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
13 years agoARM: mach-dove: remove include/mach/memory.h
Nicolas Pitre [Wed, 6 Jul 2011 02:52:51 +0000 (22:52 -0400)]
ARM: mach-dove: remove include/mach/memory.h

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
13 years agoARM: prepare for removal of a bunch of <mach/memory.h> files
Nicolas Pitre [Wed, 6 Jul 2011 02:52:51 +0000 (22:52 -0400)]
ARM: prepare for removal of a bunch of <mach/memory.h> files

When the CONFIG_NO_MACH_MEMORY_H symbol is selected by a particular
machine class, the machine specific memory.h include file is no longer
used and can be removed.  In that case the equivalent information can
be obtained dynamically at runtime by enabling CONFIG_ARM_PATCH_PHYS_VIRT
or by specifying the physical memory address at kernel configuration time.

If/when all instances of mach/memory.h are removed then this symbol could
be removed.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
13 years agoARM: mach-davinci: clean up debug-macro.S
Nicolas Pitre [Fri, 2 Sep 2011 00:50:14 +0000 (20:50 -0400)]
ARM: mach-davinci: clean up debug-macro.S

This achieves two goals:

1) Get rid of davinci_uart_v2p() and davinci_uart_p2v() which were the
   last users of PLAT_PHYS_OFFSET.

2) Remove the probing of the M bit in the CP15 control reg and make
   the access to the .data variables completely position independent.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Tested-by: Kevin Hilman <khilman@ti.com>
13 years agoARM: mach-davinci: make DAVINCI_UART_INFO into a relative offset
Nicolas Pitre [Fri, 2 Sep 2011 00:32:21 +0000 (20:32 -0400)]
ARM: mach-davinci: make DAVINCI_UART_INFO into a relative offset

This is the first step to remove PLAT_PHYS_OFFSET usage from the debug
UART code.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Tested-by: Kevin Hilman <khilman@ti.com>
13 years agoARM: mach-omap2: clean up debug-macro.S
Nicolas Pitre [Thu, 1 Sep 2011 04:48:04 +0000 (00:48 -0400)]
ARM: mach-omap2: clean up debug-macro.S

This achieves two goals:

1) Get rid of omap_uart_v2p() and omap_uart_p2v() which were the last users
   of PLAT_PHYS_OFFSET.

2) Remove the probing of the M bit in the CP15 control reg and make
   the access to the .data variables completely position independent.

There is a catch though: the busyuart macro needs to know where the LSR
register is which might be at a different offset depending on the hardware.
Given that this macro is given only two registers and that one of them
must be preserved, the trick is to always pass the LSR register address
around, and deduce the base address for the THR register by masking out
the LSR offset in senduart instead.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Tested-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
13 years agoARM: mach-omap1: clean up debug-macro.S
Nicolas Pitre [Thu, 1 Sep 2011 23:17:43 +0000 (19:17 -0400)]
ARM: mach-omap1: clean up debug-macro.S

This achieves two goals:

1) Get rid of omap_uart_v2p() and omap_uart_p2v() which were the last users
   of PLAT_PHYS_OFFSET.

2) Remove the probing of the M bit in the CP15 control reg and make
   the access to the .data variables completely position independent.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Tested-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
13 years agoARM: plat-omap: make OMAP_UART_INFO into a relative offset
Nicolas Pitre [Wed, 31 Aug 2011 17:57:37 +0000 (13:57 -0400)]
ARM: plat-omap: make OMAP_UART_INFO into a relative offset

This is the first step to remove PLAT_PHYS_OFFSET usage from the debug
UART code.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Tested-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
13 years agoARM: add an extra temp register to the low level debugging addruart macro
Nicolas Pitre [Thu, 1 Sep 2011 02:55:46 +0000 (22:55 -0400)]
ARM: add an extra temp register to the low level debugging addruart macro

Some platforms (like OMAP not to name it) are doing rather complicated
hacks just to determine the base UART address to use.  Let's give their
addruart macro some slack by providing an extra work register which will
allow for much needed cleanups.

This is basically a no-op as this commit is only adding the extra argument
to the macro but no one is using it yet.

Signed-off-by: nicolas Pitre <nicolas.pitre@linaro.org>
Reviewed-by: Kevin Hilman <khilman@ti.com>
13 years agomusb_debugfs.c: remove unneeded includes on ARM
Nicolas Pitre [Tue, 30 Aug 2011 04:08:49 +0000 (00:08 -0400)]
musb_debugfs.c: remove unneeded includes on ARM

Nothing actually requires that <mach/hardware.h>, <mach/memory.h> nor
<asm/mach-types.h> be included here.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Felipe Balbi <balbi@ti.com>
13 years agoARM: mach-prima2: move ARM_DMA_ZONE_SIZE to mdesc->dma_zone_size
Nicolas Pitre [Sat, 3 Sep 2011 01:05:10 +0000 (21:05 -0400)]
ARM: mach-prima2: move ARM_DMA_ZONE_SIZE to mdesc->dma_zone_size

Original comment:

  Restrict DMA-able region to workaround silicon limitation.
  The limitation restricts buffers available for DMA to SD/MMC
  hardware to be below 256MB.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
13 years agoMerge the enabling by default of ARM_PATCH_PHYS_VIRT
Nicolas Pitre [Mon, 29 Aug 2011 19:29:00 +0000 (15:29 -0400)]
Merge the enabling by default of ARM_PATCH_PHYS_VIRT

Conflicts:
arch/arm/mach-msm/board-msm7x30.c

13 years agoMerge branch 'atag_offset' of git://git.linaro.org/people/nico/linux into devel-stable
Russell King [Tue, 23 Aug 2011 09:54:51 +0000 (10:54 +0100)]
Merge branch 'atag_offset' of git://git.linaro.org/people/nico/linux into devel-stable

13 years agoMerge branch 'dma-size' of git://git.yxit.co.uk/linux into devel-stable
Russell King [Tue, 23 Aug 2011 09:54:45 +0000 (10:54 +0100)]
Merge branch 'dma-size' of git://git.yxit.co.uk/linux into devel-stable

13 years agoLinux 3.1-rc3
Linus Torvalds [Mon, 22 Aug 2011 18:42:53 +0000 (11:42 -0700)]
Linux 3.1-rc3

13 years agoMerge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
Linus Torvalds [Mon, 22 Aug 2011 18:26:56 +0000 (11:26 -0700)]
Merge branch 'perf-urgent-for-linus' of git://git./linux/kernel/git/tip/linux-2.6-tip

* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
  perf tools: Add group event scheduling option to perf record/stat
  MAINTAINERS: Fix list of perf events source files
  perf tools: Fix build against newer glibc
  perf tools: Fix error handling of unknown events
  perf evlist: Fix missing event name init for default event
  perf list: Fix exit value

13 years agoMerge branch 'stable/bug.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git...
Linus Torvalds [Mon, 22 Aug 2011 18:25:44 +0000 (11:25 -0700)]
Merge branch 'stable/bug.fixes' of git://git./linux/kernel/git/konrad/xen

* 'stable/bug.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen:
  xen/tracing: Fix tracing config option properly
  xen: Do not enable PV IPIs when vector callback not present
  xen/x86: replace order-based range checking of M2P table by linear one
  xen: xen-selfballoon.c needs more header files

13 years agoxen/tracing: Fix tracing config option properly
Jeremy Fitzhardinge [Thu, 11 Aug 2011 20:17:20 +0000 (13:17 -0700)]
xen/tracing: Fix tracing config option properly

Steven Rostedt says we should use CONFIG_EVENT_TRACING.

Cc:Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
13 years agoxen: Do not enable PV IPIs when vector callback not present
Stefano Stabellini [Wed, 17 Aug 2011 13:15:00 +0000 (15:15 +0200)]
xen: Do not enable PV IPIs when vector callback not present

Fix regression for HVM case on older (<4.1.1) hypervisors caused by

  commit 99bbb3a84a99cd04ab16b998b20f01a72cfa9f4f
  Author: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
  Date:   Thu Dec 2 17:55:10 2010 +0000

    xen: PV on HVM: support PV spinlocks and IPIs

This change replaced the SMP operations with event based handlers without
taking into account that this only works when the hypervisor supports
callback vectors. This causes unexplainable hangs early on boot for
HVM guests with more than one CPU.

BugLink: http://bugs.launchpad.net/bugs/791850
CC: stable@kernel.org
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Tested-and-Reported-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
13 years agoARM: Remove support for macro CONSISTENT_DMA_SIZE
Jon Medhurst [Thu, 4 Aug 2011 16:10:14 +0000 (17:10 +0100)]
ARM: Remove support for macro CONSISTENT_DMA_SIZE

There are now no platforms which set this macro.

Signed-off-by: Jon Medhurst <tixy@yxit.co.uk>
13 years agoARM: mach-shmobile: Setup consistent dma size at boot time
Jon Medhurst [Thu, 4 Aug 2011 16:05:21 +0000 (17:05 +0100)]
ARM: mach-shmobile: Setup consistent dma size at boot time

Signed-off-by: Jon Medhurst <tixy@yxit.co.uk>
CC: Paul Mundt <lethal@linux-sh.org>
CC: Magnus Damm <magnus.damm@gmail.com>
13 years agoARM: mach-bcmring: Setup consistent dma size at boot time
Jon Medhurst [Thu, 4 Aug 2011 15:35:26 +0000 (16:35 +0100)]
ARM: mach-bcmring: Setup consistent dma size at boot time

Signed-off-by: Jon Medhurst <tixy@yxit.co.uk>
CC: Jiandong Zheng <jdzheng@broadcom.com>
CC: Scott Branden <sbranden@broadcom.com>
13 years agoARM: mach-at91: Setup consistent dma size at boot time
Jon Medhurst [Thu, 4 Aug 2011 15:04:24 +0000 (16:04 +0100)]
ARM: mach-at91: Setup consistent dma size at boot time

Signed-off-by: Jon Medhurst <tixy@yxit.co.uk>
Acked-by: Nicolas Ferre<nicolas.ferre@atmel.com>
13 years agoARM: mach-u300: Setup consistent dma size at boot time
Jon Medhurst [Thu, 4 Aug 2011 14:41:42 +0000 (15:41 +0100)]
ARM: mach-u300: Setup consistent dma size at boot time

Signed-off-by: Jon Medhurst <tixy@yxit.co.uk>
Acked-by: Linus Walleij <linus.walleij@stericsson.com>
13 years agoARM: mach-davinci: Setup consistent dma size at boot time
Jon Medhurst [Thu, 4 Aug 2011 13:51:45 +0000 (14:51 +0100)]
ARM: mach-davinci: Setup consistent dma size at boot time

Signed-off-by: Jon Medhurst <tixy@yxit.co.uk>
CC: Sekhar Nori <nsekhar@ti.com>
CC: Kevin Hilman <khilman@ti.com>
13 years agoARM: mxc: Remove setting of consistent dma size
Jon Medhurst [Mon, 22 Aug 2011 09:47:56 +0000 (10:47 +0100)]
ARM: mxc: Remove setting of consistent dma size

All in-tree MX boards using video use memblock_* functions to get their
coherent dma space for the camera. So there is no need to increase
CONSISTENT_DMA_SIZE beyond the default 2MB and we can simply remove the
defines which do this.

Signed-off-by: Jon Medhurst <tixy@yxit.co.uk>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agoARM: mach-s5pv210: Setup consistent dma size at boot time
Jon Medhurst [Thu, 4 Aug 2011 13:39:20 +0000 (14:39 +0100)]
ARM: mach-s5pv210: Setup consistent dma size at boot time

Signed-off-by: Jon Medhurst <tixy@yxit.co.uk>
CC: Kukjin Kim <kgene.kim@samsung.com>
13 years agoARM: mach-s5p64x0: Setup consistent dma size at boot time
Jon Medhurst [Thu, 4 Aug 2011 09:46:46 +0000 (10:46 +0100)]
ARM: mach-s5p64x0: Setup consistent dma size at boot time

Signed-off-by: Jon Medhurst <tixy@yxit.co.uk>
CC: Kukjin Kim <kgene.kim@samsung.com>
13 years agoARM: mach-s3c64xx: Setup consistent dma size at boot time
Jon Medhurst [Thu, 4 Aug 2011 15:41:43 +0000 (16:41 +0100)]
ARM: mach-s3c64xx: Setup consistent dma size at boot time

Signed-off-by: Jon Medhurst <tixy@yxit.co.uk>
CC: Ben Dooks <ben-linux@fluff.org>
13 years agoARM: omap: Setup consistent dma size at boot time
Jon Medhurst [Wed, 3 Aug 2011 15:57:19 +0000 (16:57 +0100)]
ARM: omap: Setup consistent dma size at boot time

Signed-off-by: Jon Medhurst <tixy@yxit.co.uk>
CC: Tony Lindgren <tony@atomide.com>
13 years agoARM: Add init_consistent_dma_size()
Jon Medhurst [Tue, 2 Aug 2011 16:28:27 +0000 (17:28 +0100)]
ARM: Add init_consistent_dma_size()

This function can be called during boot to increase the size of the consistent
DMA region above it's default value of 2MB. It must be called before the memory
allocator is initialised, i.e. before any core_initcall.

Signed-off-by: Jon Medhurst <tixy@yxit.co.uk>
Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
13 years agoMerge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1...
Linus Torvalds [Mon, 22 Aug 2011 01:13:19 +0000 (18:13 -0700)]
Merge branch 'fixes' of git://git./linux/kernel/git/ieee1394/linux1394-2.6

* 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6:
  firewire: core: handle ack_busy when fetching the Config ROM

13 years agoARM: remove boot_params from struct machine_desc
Nicolas Pitre [Wed, 6 Jul 2011 02:38:19 +0000 (22:38 -0400)]
ARM: remove boot_params from struct machine_desc

Now that there is no more users, we can remove it from the kernel.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-prima2: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:18 +0000 (22:38 -0400)]
ARM: mach-prima2: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-w90x900: remove useless boot_params entries
Nicolas Pitre [Wed, 6 Jul 2011 02:38:19 +0000 (22:38 -0400)]
ARM: mach-w90x900: remove useless boot_params entries

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-vt8500: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:18 +0000 (22:38 -0400)]
ARM: mach-vt8500: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: vexpress: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:18 +0000 (22:38 -0400)]
ARM: vexpress: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-versatile: convert boot-params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:18 +0000 (22:38 -0400)]
ARM: mach-versatile: convert boot-params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-ux500: convert boot-params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:18 +0000 (22:38 -0400)]
ARM: mach-ux500: convert boot-params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-u300: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:18 +0000 (22:38 -0400)]
ARM: mach-u300: convert boot_params to atag_offset

Someone was smoking good stuff with CONFIG_MACH_U300_2MB_ALIGNMENT_FIX here...

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-tegra: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:18 +0000 (22:38 -0400)]
ARM: mach-tegra: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-tcc8k: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:18 +0000 (22:38 -0400)]
ARM: mach-tcc8k: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-spear*: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:17 +0000 (22:38 -0400)]
ARM: mach-spear*: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-shark: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:17 +0000 (22:38 -0400)]
ARM: mach-shark: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-sa1100: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:17 +0000 (22:38 -0400)]
ARM: mach-sa1100: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-s5pc100, mach-s5pv210: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:17 +0000 (22:38 -0400)]
ARM: mach-s5pc100, mach-s5pv210: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-s3c64xx: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:17 +0000 (22:38 -0400)]
ARM: mach-s3c64xx: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-s5p64x0: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:17 +0000 (22:38 -0400)]
ARM: mach-s5p64x0: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-s3c24*: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:17 +0000 (22:38 -0400)]
ARM: mach-s3c24*: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-rpc: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:16 +0000 (22:38 -0400)]
ARM: mach-rpc: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-realview: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:16 +0000 (22:38 -0400)]
ARM: mach-realview: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-pxa: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:15 +0000 (22:38 -0400)]
ARM: mach-pxa: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-pnx4008: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:15 +0000 (22:38 -0400)]
ARM: mach-pnx4008: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-orion5x: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:15 +0000 (22:38 -0400)]
ARM: mach-orion5x: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-omap2: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:15 +0000 (22:38 -0400)]
ARM: mach-omap2: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-omap1: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:15 +0000 (22:38 -0400)]
ARM: mach-omap1: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-nuc93x: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:14 +0000 (22:38 -0400)]
ARM: mach-nuc93x: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-nomadik: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:14 +0000 (22:38 -0400)]
ARM: mach-nomadik: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-netx: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:14 +0000 (22:38 -0400)]
ARM: mach-netx: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-mx5: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:14 +0000 (22:38 -0400)]
ARM: mach-mx5: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-mv78xx0: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:14 +0000 (22:38 -0400)]
ARM: mach-mv78xx0: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-msm: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:14 +0000 (22:38 -0400)]
ARM: mach-msm: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-lpc32xx: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:14 +0000 (22:38 -0400)]
ARM: mach-lpc32xx: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-ks8695: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:13 +0000 (22:38 -0400)]
ARM: mach-ks8695: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-kirkwood: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:13 +0000 (22:38 -0400)]
ARM: mach-kirkwood: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-ixp4xx: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:13 +0000 (22:38 -0400)]
ARM: mach-ixp4xx: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-ixp23xx: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:13 +0000 (22:38 -0400)]
ARM: mach-ixp23xx: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-ixp2000: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:13 +0000 (22:38 -0400)]
ARM: mach-ixp2000: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-iop33x: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:13 +0000 (22:38 -0400)]
ARM: mach-iop33x: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-iop32x: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:12 +0000 (22:38 -0400)]
ARM: mach-iop32x: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-iop13xx: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:12 +0000 (22:38 -0400)]
ARM: mach-iop13xx: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-integrator: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:12 +0000 (22:38 -0400)]
ARM: mach-integrator: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-imx: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:12 +0000 (22:38 -0400)]
ARM: mach-imx: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-h720x: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:12 +0000 (22:38 -0400)]
ARM: mach-h720x: convert boot_params to atag_offset

The value used for boot_params in h7201-eval.c is nonsensical, given that
PLAT_PHYS_OFFSET is defined to 0x40000000.  Left unchanged to purposely
break the build to get its maintainer's attention.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-gemini: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:12 +0000 (22:38 -0400)]
ARM: mach-gemini: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-footbridge: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:11 +0000 (22:38 -0400)]
ARM: mach-footbridge: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-exynos4: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:11 +0000 (22:38 -0400)]
ARM: mach-exynos4: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-ep93xx: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:11 +0000 (22:38 -0400)]
ARM: mach-ep93xx: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Tested-by: Petr Štetiar <ynezz@true.cz>
Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Tested-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-ebsa110: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:11 +0000 (22:38 -0400)]
ARM: mach-ebsa110: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-dove: convert boot-params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:11 +0000 (22:38 -0400)]
ARM: mach-dove: convert boot-params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-davinci: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:11 +0000 (22:38 -0400)]
ARM: mach-davinci: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-cns3xxx: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:11 +0000 (22:38 -0400)]
ARM: mach-cns3xxx: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: mach-clps711x: convert boot_params to atag_offset
Nicolas Pitre [Wed, 6 Jul 2011 02:38:11 +0000 (22:38 -0400)]
ARM: mach-clps711x: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoARM: introduce atag_offset to replace boot_params
Nicolas Pitre [Wed, 6 Jul 2011 02:38:10 +0000 (22:38 -0400)]
ARM: introduce atag_offset to replace boot_params

The boot_params member of the mdesc structure is used to provide a
default physical address for the ATAG list.  Since this value is fixed
at compile time and sometimes based on constants such as ARCH_PHYS_OFFSET,
it gets in the way of runtime PHYS_OFFSET and CONFIG_ARM_PATCH_PHYS_VIRT
usage.

Let's introduce atag_offset which should contains only the relative
offset from PHYS_OFFSET instead of an absolute value, in preparation
to move all instance of boot_params over to it.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Tested-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Tested-by: Petr Štetiar <ynezz@true.cz>
Acked-by: Arnd Bergmann <arnd@arndb.de>
13 years agoBtrfs: fix 64 bit divide problem
Josef Bacik [Sat, 20 Aug 2011 12:29:51 +0000 (08:29 -0400)]
Btrfs: fix 64 bit divide problem

This fixes a regression introduced by commit cdcb725c05fe ("Btrfs: check
if there is enough space for balancing smarter").  We can't do 64-bit
divides on 32-bit architectures.

In cases where we need to divide/multiply by 2 we should just left/right
shift respectively, and in cases where theres N number of devices use
do_div.  Also make the counters u64 to match up with rw_devices.
Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
Acked-and-tested-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
13 years agoMerge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4
Linus Torvalds [Sun, 21 Aug 2011 13:59:41 +0000 (06:59 -0700)]
Merge branch 'for_linus' of git://git./linux/kernel/git/tytso/ext4

* 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
  ext4: flush any pending end_io requests before DIO reads w/dioread_nolock
  ext4: fix nomblk_io_submit option so it correctly converts uninit blocks
  ext4: Resolve the hang of direct i/o read in handling EXT4_IO_END_UNWRITTEN.
  ext4: call ext4_ioend_wait and ext4_flush_completed_IO in ext4_evict_inode
  ext4: Fix ext4_should_writeback_data() for no-journal mode

13 years agoMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6
Linus Torvalds [Sun, 21 Aug 2011 13:59:02 +0000 (06:59 -0700)]
Merge branch 'for-linus' of git://git./linux/kernel/git/tiwai/sound-2.6

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
  ALSA: sound/aoa/fabrics/layout.c: remove unneeded kfree
  ALSA: hda - Fix error check from snd_hda_get_conn_index() in patch_cirrus.c
  ALSA: hda - Don't spew too many ELD errors
  ALSA: usb-audio - Fix missing mixer dB information
  ALSA: hda - Add "PCM" volume to vmaster slave list
  ALSA: hda - Fix duplicated capture-volume creation for ALC268 models
  ALSA: ac97: Add HP Compaq dc5100 SFF(PT003AW) to Headphone Jack Sense whitelist
  ALSA: snd_usb_caiaq: track submitted output urbs

13 years agopci: fix new kernel-doc warning in pci.c
Randy Dunlap [Sat, 20 Aug 2011 18:49:43 +0000 (11:49 -0700)]
pci: fix new kernel-doc warning in pci.c

Fix new kernel-doc warning in pci.c:

  Warning(drivers/pci/pci.c:3259): No description found for parameter 'mps'
  Warning(drivers/pci/pci.c:3259): Excess function parameter 'rq' description in 'pcie_set_mps'

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
13 years agoALSA: sound/aoa/fabrics/layout.c: remove unneeded kfree
Julia Lawall [Sat, 20 Aug 2011 06:12:41 +0000 (08:12 +0200)]
ALSA: sound/aoa/fabrics/layout.c: remove unneeded kfree

The label outnodev is only used when kzalloc has not yet taken place or has
failed, so there is no need for the call for kfree under this label.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
identifier x;
expression E1!=0,E2,E3,E4;
statement S;
iterator I;
@@

(
if (...) { ... when != kfree(x)
               when != x = E3
               when != E3 = x
*  return ...;
 }
... when != x = E2
    when != I(...,x,...) S
if (...) { ... when != x = E4
 kfree(x); ... return ...; }
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 years agoALSA: hda - Fix error check from snd_hda_get_conn_index() in patch_cirrus.c
Takashi Iwai [Sat, 20 Aug 2011 07:19:59 +0000 (09:19 +0200)]
ALSA: hda - Fix error check from snd_hda_get_conn_index() in patch_cirrus.c

snd_hda_get_conn_index() returns a negative value while the current code
stores it in an unsigned int.  It must be stored in a signed integer.

Reported-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>