deliverable/linux.git
13 years agoMerge branch 'msm-core' of git://codeaurora.org/quic/kernel/dwalker/linux-msm into...
Russell King [Tue, 19 Oct 2010 18:55:59 +0000 (19:55 +0100)] 
Merge branch 'msm-core' of git://codeaurora.org/quic/kernel/dwalker/linux-msm into devel-stable

13 years agoMerge branch 'devel' of git://git.kernel.org/pub/scm/linux/kernel/git/ycmiao/pxa...
Russell King [Mon, 18 Oct 2010 14:20:21 +0000 (15:20 +0100)] 
Merge branch 'devel' of git://git./linux/kernel/git/ycmiao/pxa-linux-2.6 into devel-stable

13 years agoMerge git://git.kernel.org/pub/scm/linux/kernel/git/nico/orion into devel-stable
Russell King [Tue, 12 Oct 2010 19:11:18 +0000 (20:11 +0100)] 
Merge git://git./linux/kernel/git/nico/orion into devel-stable

13 years agomsm: smd: enable smd on qsd8x50 target
Niranjana Vishwanathapura [Wed, 6 Oct 2010 20:52:11 +0000 (13:52 -0700)] 
msm: smd: enable smd on qsd8x50 target

Add msm_smd device in the qsd8x50 board file.
Signed-off-by: Niranjana Vishwanathapura <nvishwan@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
13 years agomsm: smd: enable smd on msm7x30 target
Niranjana Vishwanathapura [Wed, 6 Oct 2010 20:52:10 +0000 (13:52 -0700)] 
msm: smd: enable smd on msm7x30 target

Add msm_smd device in the msm7x30 board file.

Signed-off-by: Niranjana Vishwanathapura <nvishwan@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
13 years agoMerge branch 'for-rmk-next' of git://git.pengutronix.de/git/imx/linux-2.6 into devel...
Russell King [Mon, 11 Oct 2010 16:30:44 +0000 (17:30 +0100)] 
Merge branch 'for-rmk-next' of git://git.pengutronix.de/git/imx/linux-2.6 into devel-stable

13 years agomx51: efikamx: add otg support
Amit Kucheria [Thu, 7 Oct 2010 00:58:25 +0000 (03:58 +0300)] 
mx51: efikamx: add otg support

Ethernet hangs off OTG

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agomx51: add support for genesi efikamx nettop
Amit Kucheria [Thu, 7 Oct 2010 00:58:12 +0000 (03:58 +0300)] 
mx51: add support for genesi efikamx nettop

Get serial port working for now

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agospi/imx: Support different fifo sizes
David Jander [Fri, 8 Oct 2010 09:24:01 +0000 (11:24 +0200)] 
spi/imx: Support different fifo sizes

The i.MX51 ECSPI has a fifo size of 64 entries instead of 8 entries as
found on the other cspi bus devices.

Cc: Jason Wang <jason77.wang@gmail.com>
Signed-off-by: David Jander <david@protonic.nl>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agoARM: iomux-mx51: Add AUD5 pinmux definitions
Sascha Hauer [Sat, 9 Oct 2010 21:09:45 +0000 (23:09 +0200)] 
ARM: iomux-mx51: Add AUD5 pinmux definitions

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agomx25/clocks: match esdhc-clocks to platform device
Wolfram Sang [Mon, 11 Oct 2010 13:04:53 +0000 (15:04 +0200)] 
mx25/clocks: match esdhc-clocks to platform device

So the correct clock will be taken for each of the two independent
controllers.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Cc: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agomxc/gpio: make _set_value work with values != 0/1
Peter Korsgaard [Mon, 11 Oct 2010 13:02:06 +0000 (15:02 +0200)] 
mxc/gpio: make _set_value work with values != 0/1

Documentation/gpio.txt specifies that the value argument to
gpio_set_value() should be handled as a boolean (E.G. != 0 is high),
so use the same logic as in _set_direction().

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agoMX35: Fix bogus L2 cache settings
Juergen Beisert [Wed, 22 Sep 2010 07:42:15 +0000 (09:42 +0200)] 
MX35: Fix bogus L2 cache settings

i.MX35 CPUs marked with "MCIMX357CJQ5C M99V CTHA0943B" are coming with bogus
L2 cache settings. If these settings are kept unmodified prior enabling the L2
cache the CPU runs amok immediately when its enabled.

This fix should not hurt already working CPUs, as they are using the written
register value already.

Its currently unknown if its possible to detect the production lot from the
software to fix only affected CPUs.

While at it, make sure that mxc_init_l2x0 is only executed on i.MX31/35

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agoARM: mx3/cpuimx35: mark otg_pdata and usbh1_pdata as maybe unused
Uwe Kleine-König [Wed, 6 Oct 2010 10:00:19 +0000 (12:00 +0200)] 
ARM: mx3/cpuimx35: mark otg_pdata and usbh1_pdata as maybe unused

This fixes

arch/arm/mach-mx3/mach-cpuimx35.c:143: warning: 'otg_pdata' defined but not used
arch/arm/mach-mx3/mach-cpuimx35.c:148: warning: 'usbh1_pdata' defined but not used

when USB_ULPI is not selected.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agoARM: imx: dynamically register fec devices
Uwe Kleine-König [Wed, 6 Oct 2010 10:00:18 +0000 (12:00 +0200)] 
ARM: imx: dynamically register fec devices

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agoARM: imx: fix/define clocks and create devices for imx dma
Uwe Kleine-König [Fri, 8 Oct 2010 14:00:11 +0000 (16:00 +0200)] 
ARM: imx: fix/define clocks and create devices for imx dma

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agoARM: mx35: Add mx35_revision function to query the silicon revision
Eric Bénard [Fri, 8 Oct 2010 14:00:10 +0000 (16:00 +0200)] 
ARM: mx35: Add mx35_revision function to query the silicon revision

Based on work done earlier by Sascha Hauer

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Eric Bénard <eric@eukrea.com>
[ukl: actually squash the two approaches together]
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agoARM: mx3: use MX3x_ prefixed version of CHIP_REV_x
Sascha Hauer [Fri, 8 Oct 2010 14:00:09 +0000 (16:00 +0200)] 
ARM: mx3: use MX3x_ prefixed version of CHIP_REV_x

Also, remove the deprecated symbols from arch/arm/mach-mx3/cpu.c

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agoeukrea_mbimxsd for cpuimx25: add CAN & SDCard support
Eric Bénard [Sat, 2 Oct 2010 15:15:29 +0000 (17:15 +0200)] 
eukrea_mbimxsd for cpuimx25: add CAN & SDCard support

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agoi.mx25: add esdhc support
Eric Bénard [Sat, 2 Oct 2010 15:15:28 +0000 (17:15 +0200)] 
i.mx25: add esdhc support

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agoeukrea_mbimxsd for cpuimx35: add CAN & SDCard support
Eric Bénard [Sat, 2 Oct 2010 15:15:27 +0000 (17:15 +0200)] 
eukrea_mbimxsd for cpuimx35: add CAN & SDCard support

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agoarm: pcm043: add esdhc-device to boardconfig
Wolfram Sang [Mon, 11 Oct 2010 10:55:23 +0000 (12:55 +0200)] 
arm: pcm043: add esdhc-device to boardconfig

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agoarm: imx35: add esdhc-device to MX35-platform
Wolfram Sang [Mon, 11 Oct 2010 10:55:22 +0000 (12:55 +0200)] 
arm: imx35: add esdhc-device to MX35-platform

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agoarm: imx: add generic esdhc device
Wolfram Sang [Mon, 11 Oct 2010 10:55:21 +0000 (12:55 +0200)] 
arm: imx: add generic esdhc device

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agoARM: pxa/balloon3: Disperse MFP config
Marek Vasut [Mon, 9 Aug 2010 04:23:28 +0000 (06:23 +0200)] 
ARM: pxa/balloon3: Disperse MFP config

Move pin config to appropriate places and use it only if needed.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Acked-By: Jonathan McDowell <noodles@earth.li>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
13 years agoARM: mmp: update cpuid of pxa168 and pxa910
Haojian Zhuang [Tue, 21 Sep 2010 08:43:57 +0000 (16:43 +0800)] 
ARM: mmp: update cpuid of pxa168 and pxa910

Correct the cpuid of pxa168 and pxa910.

Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
13 years agoARM: pxa: reduce the scope of get_memclk_frequency_10khz()
Haojian Zhuang [Mon, 20 Sep 2010 00:10:13 +0000 (20:10 -0400)] 
ARM: pxa: reduce the scope of get_memclk_frequency_10khz()

Up to now, only pxa2xx pcmcia driver is using the API. No other device driver
is using this API in PXA3xx or any other PXA silicons.

Restrict the scope only on pxa2xx and remove the implementation of pxa3xx. So
we can avoid oo much checking on cpuid after more pxa chips supported.

Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Cc: Eric Miao <eric.y.miao@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
13 years agoARM: pxa: reduce the scope of get_clk_frequency_khz()
Haojian Zhuang [Mon, 20 Sep 2010 00:09:10 +0000 (20:09 -0400)] 
ARM: pxa: reduce the scope of get_clk_frequency_khz()

get_clk_frequency_khz() is used in private cpufreq driver. In order to meet
the change of different pxa silicons, checking cpuid is introduced in
get_clk_frequency_khz(). While more pxa silicons are supported, the workload
of checking cpuid is higher.

So restrict the scope of get_clk_frequency_khz() on pxa2xx. Different pxa
silcions use different private cpufreq driver to avoid too much checking
on cpuid.

Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Cc: Eric Miao <eric.y.miao@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
13 years agoARM: pxa168/teton bga: add board support for i2c and rtc-ds1337
Mark F. Brown [Mon, 13 Sep 2010 03:51:36 +0000 (23:51 -0400)] 
ARM: pxa168/teton bga: add board support for i2c and rtc-ds1337

Defined I2C/ALARM pin definitions
DS1337 RTC alarm support is tied to RTC_INT_GPIO

Signed-off-by: Mark F. Brown <mark.brown314@gmail.com>
Acked-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
13 years agoARM: pxa168/teton bga: added keypad support
Mark F. Brown [Mon, 13 Sep 2010 03:51:35 +0000 (23:51 -0400)] 
ARM: pxa168/teton bga: added keypad support

Support for Matrix keypad ESC, ENTER, LEFT, and RIGHT

Signed-off-by: Mark F. Brown <mark.brown314@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
13 years agoARM: pxa168: added support for Teton BGA platform
Mark F. Brown [Mon, 13 Sep 2010 03:51:34 +0000 (23:51 -0400)] 
ARM: pxa168: added support for Teton BGA platform

Added board defintion, header, and debug UART support.

Signed-off-by: Mark F. Brown <mark.brown314@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
13 years agoARM: mmp: support sparse irq
Haojian Zhuang [Wed, 8 Sep 2010 13:42:42 +0000 (09:42 -0400)] 
ARM: mmp: support sparse irq

Add sparse IRQ support in ARCH_MMP.

Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
13 years agoARM: pxa: append tavorevb3 support
Haojian Zhuang [Wed, 8 Sep 2010 13:42:40 +0000 (09:42 -0400)] 
ARM: pxa: append tavorevb3 support

Bringup tavorevb3 development platform. UART and PMIC are enabled.

Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
13 years agoARM: pxa168fb: add .remove function
Haojian Zhuang [Mon, 30 Aug 2010 00:32:16 +0000 (20:32 -0400)] 
ARM: pxa168fb: add .remove function

The pxa168fb driver is missing .remove function so the framebuffer isn't
correctly shut down when the module is removed.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
13 years agoARM: pxa168/aspenite: add board support for keypad
Mark F. Brown [Fri, 3 Sep 2010 22:28:11 +0000 (18:28 -0400)] 
ARM: pxa168/aspenite: add board support for keypad

Signed-off-by: Mark F. Brown <mark.brown314@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
13 years agoARM: pxa168: added keypad wake clear event support for platform
Mark F. Brown [Fri, 3 Sep 2010 22:28:10 +0000 (18:28 -0400)] 
ARM: pxa168: added keypad wake clear event support for platform

Signed-off-by: Mark F. Brown <mark.brown314@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
13 years agoARM: pxa27x_keypad: added wakeup event handler for keypad interrupts
Mark F. Brown [Fri, 3 Sep 2010 22:28:09 +0000 (18:28 -0400)] 
ARM: pxa27x_keypad: added wakeup event handler for keypad interrupts

mach-mmp needs to clear wake event in order to clear the keypad interrupt

Signed-off-by: Mark F. Brown <mark.brown314@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
13 years agoARM: pxa168: added wake clear register support for APMU
Mark F. Brown [Fri, 3 Sep 2010 22:28:08 +0000 (18:28 -0400)] 
ARM: pxa168: added wake clear register support for APMU

Signed-off-by: Mark F. Brown <mark.brown314@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
13 years agoARM: pxa168: added keypad support
Mark F. Brown [Fri, 3 Sep 2010 22:28:07 +0000 (18:28 -0400)] 
ARM: pxa168: added keypad support

Signed-off-by: Mark F. Brown <mark.brown314@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
13 years agoARM: pxa: moved pxa27x_keypad.h to platform pxa directory
Mark F. Brown [Fri, 3 Sep 2010 22:28:06 +0000 (18:28 -0400)] 
ARM: pxa: moved pxa27x_keypad.h to platform pxa directory

mach-mmp utilizes pxa27x_keypad code so we need to move header to
platform pxa directory.

Signed-off-by: Mark F. Brown <mark.brown314@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
13 years agomsm: Platform data for msm8x60 IOMMUs
Stepan Moskovchenko [Wed, 25 Aug 2010 02:51:15 +0000 (19:51 -0700)] 
msm: Platform data for msm8x60 IOMMUs

Add the platform data for the IOMMUs found on the Qualcomm
msm8x60 SoC.

Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
13 years agomsm: Platform initialization for the IOMMU driver
Stepan Moskovchenko [Wed, 25 Aug 2010 01:32:38 +0000 (18:32 -0700)] 
msm: Platform initialization for the IOMMU driver

Register a driver for the MSM IOMMU devices and a driver
for the translation context devices. Set up the global
IOMMU registers and initialize the context banks.

Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
13 years agomsm: Add MSM IOMMU support
Stepan Moskovchenko [Wed, 25 Aug 2010 01:31:10 +0000 (18:31 -0700)] 
msm: Add MSM IOMMU support

Add support for the IOMMUs found on the upcoming Qualcomm
MSM8x60 chips. These IOMMUs allow virtualization of the
address space used by most of the multimedia cores on these
chips.

Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
13 years agomsm: add MSM8x60 FFA support
Gregory Bean [Mon, 5 Apr 2010 05:29:02 +0000 (22:29 -0700)] 
msm: add MSM8x60 FFA support

The MSM8X60 FFA contains different components than the MSM8X60 SURF,
and therefore requires a different ARCH type and machine ID.

Signed-off-by: Gregory Bean <gbean@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
13 years agomsm: MSM8X60 simulator board support
Steve Muckle [Thu, 7 Jan 2010 20:51:10 +0000 (12:51 -0800)] 
msm: MSM8X60 simulator board support

Board configuration for MSM8X60 simulation.

Signed-off-by: Steve Muckle <smuckle@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
13 years agomsm: add msm8x60_surf machine
Steve Muckle [Sat, 20 Mar 2010 00:00:08 +0000 (17:00 -0700)] 
msm: add msm8x60_surf machine

Signed-off-by: Steve Muckle <smuckle@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
13 years agomsm: physical offset for MSM8X60
Jeff Ohlstein [Thu, 6 May 2010 21:18:06 +0000 (14:18 -0700)] 
msm: physical offset for MSM8X60

The MSM8x60 has a different physical memory offset than other targets.

Signed-off-by: Jeff Ohlstein <johlstei@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
13 years agomsm: 8x60: setup correct handlers for private interrupts
Abhijeet Dharmapurikar [Mon, 1 Feb 2010 20:30:28 +0000 (12:30 -0800)] 
msm: 8x60: setup correct handlers for private interrupts

Private Peripheral interrupts could be edge triggered or level triggered
depending on the platform. Initialize handlers for these in board file.

Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
13 years agomsm: add build support for msm8x60 target
Jeff Ohlstein [Thu, 12 Aug 2010 20:02:56 +0000 (13:02 -0700)] 
msm: add build support for msm8x60 target

Signed-off-by: Jeff Ohlstein <johlstei@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
13 years agomsm: allow uart to be conditionally disabled
Daniel Walker [Wed, 18 Aug 2010 18:00:25 +0000 (11:00 -0700)] 
msm: allow uart to be conditionally disabled

Some MSM targets don't select the debug UART in this way. For those we
need to disable this selection mechanism.

Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
Signed-off-by: Jeff Ohlstein <johlstei@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
13 years agomsm: dma: add stub functions for dma features not yet present on 8x60
Daniel Walker [Wed, 18 Aug 2010 17:53:05 +0000 (10:53 -0700)] 
msm: dma: add stub functions for dma features not yet present on 8x60

Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
Signed-off-by: Jeff Ohlstein <johlstei@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
13 years agomsm: clock: add dummy clock driver
Jeff Ohlstein [Wed, 18 Aug 2010 03:04:19 +0000 (20:04 -0700)] 
msm: clock: add dummy clock driver

Need to add this until real clock support for 8x60 goes in, or else some
drivers won't compile.

Signed-off-by: Jeff Ohlstein <johlstei@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
13 years agomsm: 8x60: gic initialization fixup for RUMI
Steve Muckle [Thu, 11 Feb 2010 19:50:40 +0000 (11:50 -0800)] 
msm: 8x60: gic initialization fixup for RUMI

On RUMI platform STIs are not enabled by default, contrary to the
GIC spec. The bits for STIs in the enable/enable clear registers
are also RW instead of RO. STIs need to be enabled at initialization
time.

Signed-off-by: Steve Muckle <smuckle@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
13 years agomsm: irq: rename existing entry-macro to entry-macro-vic
Steve Muckle [Wed, 9 Dec 2009 22:03:13 +0000 (14:03 -0800)] 
msm: irq: rename existing entry-macro to entry-macro-vic

The existing MSM irq entry macro is specific to a VIC
implementation. Renaming this makes room for irq support based on
other interrupt controllers.

Signed-off-by: Steve Muckle <smuckle@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
13 years agomsm: MSM8X60 RUMI3 board support
Steve Muckle [Thu, 7 Jan 2010 20:43:24 +0000 (12:43 -0800)] 
msm: MSM8X60 RUMI3 board support

Board configuration for MSM8X60 emulation on RUMI3.

Signed-off-by: Steve Muckle <smuckle@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
13 years agomsm: timer: support 8x60 timers
Jeff Ohlstein [Tue, 5 Oct 2010 22:23:57 +0000 (15:23 -0700)] 
msm: timer: support 8x60 timers

Signed-off-by: Jeff Ohlstein <johlstei@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
13 years agomsm: irqs-8x60: interrupt map
Abhijeet Dharmapurikar [Fri, 22 Jan 2010 02:10:29 +0000 (18:10 -0800)] 
msm: irqs-8x60: interrupt map

Define the interrupt map in irq-8x60.h

Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
13 years agomsm: initial irq definitions for MSM8X60
Steve Muckle [Sat, 28 Nov 2009 21:00:13 +0000 (13:00 -0800)] 
msm: initial irq definitions for MSM8X60

IRQ assignments are different for MSM8X60 than other existing MSMs.

Signed-off-by: Steve Muckle <smuckle@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
13 years agomsm: io: MSM8X60 io support
Steve Muckle [Wed, 6 Jan 2010 22:55:24 +0000 (14:55 -0800)] 
msm: io: MSM8X60 io support

MSM8X60 has different IO mappings than previous MSMs.

Signed-off-by: Steve Muckle <smuckle@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
13 years agomsm: create config option for proc-comm
Steve Muckle [Wed, 21 Apr 2010 23:20:27 +0000 (16:20 -0700)] 
msm: create config option for proc-comm

Some builds may not support the proc-comm interface with
the baseband processor.

Signed-off-by: Steve Muckle <smuckle@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
13 years agoMerge branch 'for-russell' of git://codeaurora.org/quic/kernel/dwalker/linux-msm...
Russell King [Fri, 8 Oct 2010 09:06:58 +0000 (10:06 +0100)] 
Merge branch 'for-russell' of git://codeaurora.org/quic/kernel/dwalker/linux-msm into devel-stable

13 years agoMerge branch 'for_rmk' of git://github.com/at91linux/linux-2.6-at91 into devel-stable
Russell King [Fri, 8 Oct 2010 08:58:55 +0000 (09:58 +0100)] 
Merge branch 'for_rmk' of git://github.com/at91linux/linux-2.6-at91 into devel-stable

13 years agoARM: pxa: fix pxa3xx-u2d crash when ULPI not used
Marek Vasut [Fri, 3 Sep 2010 20:35:46 +0000 (22:35 +0200)] 
ARM: pxa: fix pxa3xx-u2d crash when ULPI not used

In case the pxa3xx-u2d driver isn't used, probing of ohci-pxa27x will cause an
ugly kernel crash (NULL pointer dereference in pxa3xx_u2d_start_hc(), because
struct u2d is NULL and clk_enable() call will crash the kernel, trying to access
it).

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
13 years agoARM: pxa168/aspenite: added initial support for TPO TD043MTEA1 LCD
Mark F. Brown [Thu, 26 Aug 2010 03:51:55 +0000 (23:51 -0400)] 
ARM: pxa168/aspenite: added initial support for TPO TD043MTEA1 LCD

Signed-off-by: Mark F. Brown <mark.brown314@gmail.com>
Cc: Haojian Zhuang <haojian.zhuang@marvell.com>
Cc: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
13 years agoARM: pxa168: added framebuffer support code
Mark F. Brown [Thu, 26 Aug 2010 03:51:54 +0000 (23:51 -0400)] 
ARM: pxa168: added framebuffer support code

Signed-off-by: Mark F. Brown <mark.brown314@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
13 years agoARM: pxa: encode IRQ number into .nr_irqs
Haojian Zhuang [Fri, 20 Aug 2010 07:23:59 +0000 (15:23 +0800)] 
ARM: pxa: encode IRQ number into .nr_irqs

Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Acked-by: Antonio Ospite <ospite@studenti.unina.it>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
13 years agoARM: pxa/cm-x300: enable USB host port2
Igor Grinberg [Tue, 27 Jul 2010 12:07:00 +0000 (15:07 +0300)] 
ARM: pxa/cm-x300: enable USB host port2

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
13 years agoARM: ohci-pxa27x: enable OHCI over U2DC for pxa3xx
Igor Grinberg [Tue, 27 Jul 2010 12:06:59 +0000 (15:06 +0300)] 
ARM: ohci-pxa27x: enable OHCI over U2DC for pxa3xx

U2D Controller of pxa3xx is able to work in host mode.
Make pxa specific ohci implementation aware of it.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
13 years agoARM: pxa: add U2D controller and ULPI driver for pxa3xx
Igor Grinberg [Tue, 27 Jul 2010 12:06:58 +0000 (15:06 +0300)] 
ARM: pxa: add U2D controller and ULPI driver for pxa3xx

USB2.0 Device Controller (U2DC) which is found in Marvell PXA3xx.
U2DC supports both High and Full speed modes.
PXA320 and PXA300 U2DC supports only UTMI interface.
PXA310 U2DC supports only ULPI interface and has the OTG capability.

U2D Controller ULPI driver introduced in this patch supports only the
PXA310 USB Host via the ULPI.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
13 years ago[ARM] Kirkwood: add LED support for netxbig_v2 boards
Simon Guinot [Thu, 7 Oct 2010 14:38:50 +0000 (16:38 +0200)] 
[ARM] Kirkwood: add LED support for netxbig_v2 boards

Signed-off-by: Simon Guinot <sguinot@lacie.com>
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
13 years agoleds: add LED driver for Big Network series LEDs
Simon Guinot [Thu, 7 Oct 2010 14:38:49 +0000 (16:38 +0200)] 
leds: add LED driver for Big Network series LEDs

This patch add a LED class driver for LEDs found on the LaCie 2Big and
5Big Network v2 boards. The LEDs are wired to a CPLD and are controlled
through a GPIO extension bus.

Signed-off-by: Simon Guinot <sguinot@lacie.com>
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
13 years agoleds: leds-ns2: fix private driver data storage
Simon Guinot [Thu, 7 Oct 2010 14:35:40 +0000 (16:35 +0200)] 
leds: leds-ns2: fix private driver data storage

dev_set_drvdata() can't be used to set the driver private data pointer.
This would overwrite the led classdev object previously registered by
led_classdev_register().

Note that despite this mistake, the driver work fine because led_dat and
led_dat->cdev are at the same memory address.

Signed-off-by: Simon Guinot <sguinot@lacie.com>
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
13 years agonet: atmel_macb Kconfig: remove long dependency line
Jean-Christophe PLAGNIOL-VILLARD [Sun, 8 Aug 2010 04:21:33 +0000 (06:21 +0200)] 
net: atmel_macb Kconfig: remove long dependency line

Many Atmel SOC are embedding a MACB controller. This patch removes the long
dependency line for this Atmel MACB ethernet driver configuration entry.
The HAVE_NET_MACB configuration option is located in the net Kconfig file
as it may be setup by ARM/AT91 and AVR32 chips.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: David Miller <davem@davemloft.net>
Cc: Haavard Skinnemoen <hskinnemoen@atmel.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Andrew Victor <linux@maxim.org.za>
13 years agoAT91: fix use of clock disable on idle for AT91x40 devices
Greg Ungerer [Tue, 21 Sep 2010 10:39:40 +0000 (20:39 +1000)] 
AT91: fix use of clock disable on idle for AT91x40 devices

The simpler AT91x40 processors do not have the same power management
controller as the new AT91 devices. They do have a simpler power
controller module that we can use to disable the CPU clock at idle
time. Add code to support that.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
13 years agoAT91: at91sam9g20ek: merge 2mmc version in one board
Jean-Christophe PLAGNIOL-VILLARD [Tue, 21 Sep 2010 16:01:37 +0000 (18:01 +0200)] 
AT91: at91sam9g20ek: merge 2mmc version in one board

The board-sam9g20ek-2slot-mmc.c was a revision of the at91sam9g20ek
since board revision C. It contains 2 sd/mmc slots.

This merge keep the support of the old machine ID
MACH_AT91SAM9G20EK_2MMC for backward compatibility.

Now we use the ATAG to pass the hardware functionality to kernel
with this board revision encoding
 bit 0:
     0 => 1 sd/mmc slot
     1 => 2 sd/mmc slots connectors (board from revision C)

system_rev tested on Barebox commit d8f3ee103a9f4bd

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
13 years agoAT91: Correct configuration define value
Nicolas Ferre [Thu, 1 Jul 2010 08:55:45 +0000 (10:55 +0200)] 
AT91: Correct configuration define value

The MTD nand driver for Atmel chips is atmel_nand and not at91_nand anymore.
Change wrong configuration variables that were remaining.

Reported-by: Christoph Egger <siccegge@cs.fau.de>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
13 years agoAT91: at91sam9m10g45ek: use the right machine id
Jean-Christophe PLAGNIOL-VILLARD [Wed, 22 Sep 2010 05:55:59 +0000 (07:55 +0200)] 
AT91: at91sam9m10g45ek: use the right machine id

Today the board use 2 machines id AT91SAM9G45EKES and AT91SAM9M10G45EK
now will use only AT91SAM9M10G45EK.

The other boards revision will be specified via system_rev.

for 9g45ekes, m10g45ekes and m10g45ek boards and revisions

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
13 years agoLinux 2.6.36-rc7
Linus Torvalds [Wed, 6 Oct 2010 20:39:52 +0000 (13:39 -0700)] 
Linux 2.6.36-rc7

13 years agoMerge branch 'upstream' of git://git.linux-mips.org/pub/scm/upstream-linus
Linus Torvalds [Wed, 6 Oct 2010 20:27:19 +0000 (13:27 -0700)] 
Merge branch 'upstream' of git://git.linux-mips.org/upstream-linus

* 'upstream' of git://git.linux-mips.org/pub/scm/upstream-linus:
  MIPS: Octeon: Place cnmips_cu2_setup in __init memory.
  MIPS: Don't place cu2 notifiers in __cpuinitdata
  MIPS: Calculate VMLINUZ_LOAD_ADDRESS based on the length of vmlinux.bin
  MIPS: Alchemy: Resolve prom section mismatches
  MIPS: Fix syscall 64 bit number comments.
  MIPS: Hookup fanotify_init, fanotify_mark, and prlimit64 syscalls.
  MIPS: TX49xx: Rename ARCH_KMALLOC_MINALIGN to ARCH_DMA_MINALIGN
  MIPS: N32: Fix getdents64 syscall for n32
  MIPS: Remove pr_<level> uses of KERN_<level>
  MIPS: PNX8550: Sort out machine halt, restart and powerdown functions.
  MIPS: GIC: Remove dependencies from Malta files.
  MIPS: Kconfig: Fix and clarify kconfig help text for VSMP and SMTC.
  MIPS: DMA: Fix computation of DMA flags from device's coherent_dma_mask.
  MIPS: Audit: Fix hang in entry.S.
  MIPS: Document why RELOC_HIDE is there.
  MIPS: Octeon: Determine if helper needs to be built
  MIPS: Use generic atomic64 for 32-bit kernels
  MIPS: RM7000: Symbol should be static
  MIPS: kspd: Adjust confusing if indentation
  MIPS: Fix a typo.

13 years agoMerge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block
Linus Torvalds [Wed, 6 Oct 2010 18:11:18 +0000 (11:11 -0700)] 
Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block

* 'for-linus' of git://git.kernel.dk/linux-2.6-block:
  writeback: always use sb->s_bdi for writeback purposes

13 years agoMerge branch 'v2.6.36-rc6-urgent-fixes' of git://xenbits.xen.org/people/sstabellini...
Linus Torvalds [Wed, 6 Oct 2010 16:51:28 +0000 (09:51 -0700)] 
Merge branch 'v2.6.36-rc6-urgent-fixes' of git://xenbits.xen.org/people/sstabellini/linux-pvhvm

* 'v2.6.36-rc6-urgent-fixes' of git://xenbits.xen.org/people/sstabellini/linux-pvhvm:
  xen: do not initialize PV timers on HVM if !xen_have_vector_callback
  xen: do not set xenstored_ready before xenbus_probe on hvm

13 years agoMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi...
Linus Torvalds [Wed, 6 Oct 2010 16:50:41 +0000 (09:50 -0700)] 
Merge branch 'for-linus' of git://git./linux/kernel/git/mszeredi/fuse

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse:
  fuse: Initialize total_len in fuse_retrieve()

13 years agomsm: qsd8x50: enable ethernet.
Gregory Bean [Wed, 29 Sep 2010 20:46:45 +0000 (13:46 -0700)] 
msm: qsd8x50: enable ethernet.

Configure the smc91x ethernet chip on the qsd8x50 SURF.

Signed-off-by: Gregory Bean <gbean@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
13 years agomsm: gpio: Add gpiomux calls to request and free.
Gregory Bean [Fri, 10 Sep 2010 22:03:37 +0000 (15:03 -0700)] 
msm: gpio: Add gpiomux calls to request and free.

Add gpiomux get and put calls to msmgpio request and free,
in order to allow gpio lines to be properly reference-counted
and power-managed.

Signed-off-by: Gregory Bean <gbean@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
13 years agomsm: add gpio driver for single-core SoCs.
Gregory Bean [Fri, 10 Sep 2010 22:03:36 +0000 (15:03 -0700)] 
msm: add gpio driver for single-core SoCs.

Install a gpiolib driver supporting the on-chip gpios for
single-core MSMs in the 7x00 family, including 7x00A, 7x25, 7x27,
7x30, 8x50, and 8x50a.

As part of the ongoing effort to converge on a common code base,
this driver is based on the Google-Android msmgpio driver, whose
authors include Brian Swetland and Arve Hjønnevåg.

Cc: Arve Hjønnevåg <arve@android.com>
Cc: H Hartley Sweeten <hartleys@visionengravers.com>
Cc: Ryan Mallon <ryan@bluewatersys.com>
Cc: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Gregory Bean <gbean@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
13 years agomsm: Featurize gpiomux.
Gregory Bean [Wed, 1 Sep 2010 23:26:12 +0000 (16:26 -0700)] 
msm: Featurize gpiomux.

Featurize gpiomux so that systems like 7x00 which do not wish to use it
do not have to be saddled with the configuration tables.

Signed-off-by: Gregory Bean <gbean@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
13 years agomsm: gpio: Remove tlmm routines obsoleted by gpiomux.
Gregory Bean [Sat, 28 Aug 2010 17:05:48 +0000 (10:05 -0700)] 
msm: gpio: Remove tlmm routines obsoleted by gpiomux.

Now that all supported gpio_tlmm_config-using boards
are using gpiomux, remove the deprecated code.

Signed-off-by: Gregory Bean <gbean@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
13 years agomsm: convert 7x30 to gpiomux.
Gregory Bean [Sat, 28 Aug 2010 17:05:47 +0000 (10:05 -0700)] 
msm: convert 7x30 to gpiomux.

Change deprecated gpio_tlmm_config calls to gpiomux calls.

Signed-off-by: Gregory Bean <gbean@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
13 years agomsm: convert 8x50 to gpiomux.
Gregory Bean [Sat, 28 Aug 2010 17:05:46 +0000 (10:05 -0700)] 
msm: convert 8x50 to gpiomux.

Change the gpio-init code from deprecated gpio_tlmm_config
to the new gpiomux api.

Signed-off-by: Gregory Bean <gbean@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
13 years agomsm: documentation: add gpiomux documentation.
Gregory Bean [Sat, 28 Aug 2010 17:05:45 +0000 (10:05 -0700)] 
msm: documentation: add gpiomux documentation.

Signed-off-by: Gregory Bean <gbean@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
13 years agomsm: add gpiomux api for gpio multiplex & configuration.
Gregory Bean [Sat, 28 Aug 2010 17:05:44 +0000 (10:05 -0700)] 
msm: add gpiomux api for gpio multiplex & configuration.

Add the 'gpiomux' api, which addresses the following shortcomings
of existing tlmm api:

- gpio power-collapse, which is managed by a peripheral processor on
  other targets, must be managed by the application processor on the 8x60.
- The enable/disable flag of the legacy gpio_tlmm_config api
  is not applicable on the 8x60, and causes confusion.
- The gpio 'direction' bits are meaningless for all func_sel
  configurations except for generic-gpio mode (func_sel 0), in which
  case the gpio_direction_* functions should be used.  Having these
  bits in the tlmm api leads to confusion and misuse of the gpiolib
  api, and they have been removed in gpiomux.
- The functional api of the legacy system ran contrary to the typical
  use-case, which is a single massive configuration at boot.  Rather
  than forcing hundreds of 'config' function calls, the new api
  allows data to be configured with a single table.

gpiomux_get and gpiomux_put are meant to be called automatically
when gpio_request and gpio_free are called, giving automatic
gpiomux/tlmm control to those drivers/lines with simple
power profiles - in the simplest cases, an entry in the gpiomux table
and the correct usage of gpiolib is all that is required to get proper
gpio power control.

Signed-off-by: Gregory Bean <gbean@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
13 years agoGIC: Dont disable INT in ack callback
Abhijeet Dharmapurikar [Wed, 25 Aug 2010 04:57:33 +0000 (21:57 -0700)] 
GIC: Dont disable INT in ack callback

Masking in the ack callback fails to work with handle_percpu_irq and handle_edge_irq.
The interrupt stays disabled after the first invocation since percpu and edge irq do
not unmask an interrupt after handling it. For handle_level_irq masking in the ack
is redundant because ack is always called after mask in the mask_ack function.

Masking in the ack function is required only when __do_IRQ was used instead of flow
handlers, but using __do_IRQ has been deprecated.

Remove the masking of interrupt from the ack callback.

Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Signed-off-by: Jeff Ohlstein <johlstei@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
13 years agopowerpc: remove unused variable
Stephen Rothwell [Wed, 6 Oct 2010 00:06:44 +0000 (11:06 +1100)] 
powerpc: remove unused variable

Since powerpc uses -Werror on arch powerpc, the build was broken like
this:

  cc1: warnings being treated as errors
  arch/powerpc/kernel/module.c: In function 'module_finalize':
  arch/powerpc/kernel/module.c:66: error: unused variable 'err'

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
13 years agoMerge branch 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
Linus Torvalds [Tue, 5 Oct 2010 20:07:43 +0000 (13:07 -0700)] 
Merge branch 'core-fixes-for-linus' of git://git./linux/kernel/git/tip/linux-2.6-tip

* 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
  rcu: rcu_read_lock_bh_held(): disabling irqs also disables bh
  generic-ipi: Fix deadlock in __smp_call_function_single

13 years agoMerge branch 'perf-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
Linus Torvalds [Tue, 5 Oct 2010 18:57:37 +0000 (11:57 -0700)] 
Merge branch 'perf-fixes-for-linus' of git://git./linux/kernel/git/tip/linux-2.6-tip

* 'perf-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
  perf trace scripting: Fix extern struct definitions
  perf ui hist browser: Fix segfault on 'a' for annotate
  perf tools: Fix build breakage
  perf, x86: Handle in flight NMIs on P4 platform
  oprofile, ARM: Release resources on failure
  oprofile: Add Support for Intel CPU Family 6 / Model 29

13 years agowait: using uninitialized member of wait queue
Evgeny Kuznetsov [Tue, 5 Oct 2010 08:47:57 +0000 (12:47 +0400)] 
wait: using uninitialized member of wait queue

The "flags" member of "struct wait_queue_t" is used in several places in
the kernel code without beeing initialized by init_wait().  "flags" is
used in bitwise operations.

If "flags" not initialized then unexpected behaviour may take place.
Incorrect flags might used later in code.

Added initialization of "wait_queue_t.flags" with zero value into
"init_wait".

Signed-off-by: Evgeny Kuznetsov <EXT-Eugeny.Kuznetsov@nokia.com>
[ The bit we care about does end up being initialized by both
   prepare_to_wait() and add_to_wait_queue(), so this doesn't seem to
   cause actual bugs, but is definitely the right thing to do -Linus ]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
13 years agomodules: Fix module_bug_list list corruption race
Linus Torvalds [Tue, 5 Oct 2010 18:29:27 +0000 (11:29 -0700)] 
modules: Fix module_bug_list list corruption race

With all the recent module loading cleanups, we've minimized the code
that sits under module_mutex, fixing various deadlocks and making it
possible to do most of the module loading in parallel.

However, that whole conversion totally missed the rather obscure code
that adds a new module to the list for BUG() handling.  That code was
doubly obscure because (a) the code itself lives in lib/bugs.c (for
dubious reasons) and (b) it gets called from the architecture-specific
"module_finalize()" rather than from generic code.

Calling it from arch-specific code makes no sense what-so-ever to begin
with, and is now actively wrong since that code isn't protected by the
module loading lock any more.

So this commit moves the "module_bug_{finalize,cleanup}()" calls away
from the arch-specific code, and into the generic code - and in the
process protects it with the module_mutex so that the list operations
are now safe.

Future fixups:
 - move the module list handling code into kernel/module.c where it
   belongs.
 - get rid of 'module_bug_list' and just use the regular list of modules
   (called 'modules' - imagine that) that we already create and maintain
   for other reasons.

Reported-and-tested-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Adrian Bunk <bunk@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: stable@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
13 years agoxen: do not initialize PV timers on HVM if !xen_have_vector_callback
Stefano Stabellini [Fri, 1 Oct 2010 16:35:46 +0000 (17:35 +0100)] 
xen: do not initialize PV timers on HVM if !xen_have_vector_callback

if !xen_have_vector_callback do not initialize PV timer unconditionally
because we still don't know how many cpus are available and if there is
more than one we won't be able to receive the timer interrupts on
cpu > 0.

This patch fixes an hang at boot when Xen does not support vector
callbacks and the guest has multiple vcpus.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Jeremy Fitzhardinge <jeremy@goop.org>
13 years agoxen: do not set xenstored_ready before xenbus_probe on hvm
Stefano Stabellini [Mon, 4 Oct 2010 15:10:06 +0000 (16:10 +0100)] 
xen: do not set xenstored_ready before xenbus_probe on hvm

Register_xenstore_notifier should guarantee that the caller gets
notified even if xenstore is already up.
Therefore we revert "do not notify callers from
register_xenstore_notifier" and set xenstored_read at the right time for
PV on HVM guests too.
In fact in case of PV on HVM guests xenstored is ready only after the
platform pci driver has completed the initialization, so do not set
xenstored_ready before the call to xenbus_probe().

This patch fixes a shutdown_event watcher registration bug that causes
"xm shutdown" not to work properly.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Jeremy Fitzhardinge <jeremy@goop.org>
13 years agoMerge branch 'for_rmk' of git://git.linaro.org/kernel/linux-linaro-next into devel...
Russell King [Mon, 4 Oct 2010 21:23:26 +0000 (22:23 +0100)] 
Merge branch 'for_rmk' of git://git.linaro.org/kernel/linux-linaro-next into devel-stable

This page took 0.066925 seconds and 5 git commands to generate.