pandora-kernel.git
13 years agoLinux-omap rebuilt: Updated with final fixes-non-critical and cleanup
Tony Lindgren [Fri, 29 Jun 2012 14:34:11 +0000 (07:34 -0700)]
Linux-omap rebuilt: Updated with final fixes-non-critical and cleanup

$ git checkout -b tmp-rebuild-1340980438 linus
$ git merge -m "Merge fixes fixes-non-critical dt testing-misc tmp-merge testing-board cbus" fixes fixes-non-critical dt testing-misc tmp-merge testing-board cbus
$ git merge -s ours master
$ git checkout master
$ git merge tmp-rebuild-1340980438

To view the changes since the last rebuild, please do
$ git diff c6ef581fe098a86c289b4d829b78f5a5416a2097..61228f2a9e3ae6c16460287702ad7a62abae510d arch/arm/*omap*/

13 years agoMerge fixes fixes-non-critical dt testing-misc tmp-merge testing-board cbus
Tony Lindgren [Fri, 29 Jun 2012 14:34:00 +0000 (07:34 -0700)]
Merge fixes fixes-non-critical dt testing-misc tmp-merge testing-board cbus

13 years agoARM:OMAP4 add Phytec phyCORE-OMAP4 board
Jan Weitzel [Fri, 29 Jun 2012 14:33:50 +0000 (07:33 -0700)]
ARM:OMAP4 add Phytec phyCORE-OMAP4 board

This adds support for the Phytec OMAP4430 board called phyCORE-OMAP4 PCM049.

Signed-off-by: Jan Weitzel <j.weitzel@phytec.de>
[tony@atomide.com: updated for timer and twl cleanup, and to select the board by default]
Signed-off-by: Tony Lindgren <tony@atomide.com>
13 years agoInitial B&N Nook Color (encore) support
Oleg Drokin [Fri, 29 Jun 2012 14:33:50 +0000 (07:33 -0700)]
Initial B&N Nook Color (encore) support

Bare-bones board file, comes with serial console, gpio keys,
MMC/SDCard and USB (peripheral) support.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
[tony@atomide.com: updated for irq and timer cleanup and to select the board by default]
Signed-off-by: Tony Lindgren <tony@atomide.com>
13 years agoMerge branch 'i2c-embedded/for-next' of git://git.pengutronix.de/git/wsa/linux into...
Tony Lindgren [Fri, 29 Jun 2012 14:30:15 +0000 (07:30 -0700)]
Merge branch 'i2c-embedded/for-next' of git://git.pengutronix.de/git/wsa/linux into tmp-merge for testing

13 years agoMerge branch 'devel-am33xx' into tmp-merge
Tony Lindgren [Fri, 29 Jun 2012 14:29:33 +0000 (07:29 -0700)]
Merge branch 'devel-am33xx' into tmp-merge

13 years agoMerge branch 'devel-pm' into tmp-merge
Tony Lindgren [Fri, 29 Jun 2012 14:29:27 +0000 (07:29 -0700)]
Merge branch 'devel-pm' into tmp-merge

13 years agoMerge branch 'devel-driver' into tmp-merge
Tony Lindgren [Fri, 29 Jun 2012 14:29:21 +0000 (07:29 -0700)]
Merge branch 'devel-driver' into tmp-merge

13 years agoMerge branch 'devel-dmtimer' into tmp-merge
Tony Lindgren [Fri, 29 Jun 2012 14:29:13 +0000 (07:29 -0700)]
Merge branch 'devel-dmtimer' into tmp-merge

13 years agoMerge branch 'cleanup' into tmp-merge
Tony Lindgren [Fri, 29 Jun 2012 14:28:24 +0000 (07:28 -0700)]
Merge branch 'cleanup' into tmp-merge

Conflicts:
arch/arm/mach-omap2/clockdomains3xxx_data.c

13 years agoARM: OMAP2+: PM: fix IRQ_NOAUTOEN removal by mis-merge omap-devel-pm-for-v3.6
Kevin Hilman [Fri, 29 Jun 2012 14:03:34 +0000 (07:03 -0700)]
ARM: OMAP2+: PM: fix IRQ_NOAUTOEN removal by mis-merge

commit 99b59df0 (ARM: OMAP3: PM: fix shared PRCM interrupt leave
disabled at boot) added IRQ_NOAUTOEN to the PRCM interrupt so it could
be enabled later if needed.  However, this commit was partially undone
when merging the IO daisy chain rework in 9a17d88e (Merge tag
'omap-devel-c-for-3.6' of
git://git.kernel.org/pub/scm/linux/kernel/git/pjw/omap-pending into
devel-pm

This patch adds back the IRQ_NOAUTOEN fix that was removed by the
merge resolution.

This also fixes the following boot-time warning that showed up after
merging the IO daisy chain rework:

[    3.849334] WARNING: at kernel/irq/manage.c:436 enable_irq+0x3c/0x78()
[    3.856231] Unbalanced enable for IRQ 297
[    3.860473] Modules linked in:
[    3.863739] [<c001a114>] (unwind_backtrace+0x0/0xf0) from [<c003c7e8>] (warn_slowpath_common+0x4c/0x64)
[    3.873687] [<c003c7e8>] (warn_slowpath_common+0x4c/0x64) from [<c003c894>] (warn_slowpath_fmt+0x30/0x40)
[    3.883819] [<c003c894>] (warn_slowpath_fmt+0x30/0x40) from [<c00993e0>] (enable_irq+0x3c/0x78)
[    3.893035] [<c00993e0>] (enable_irq+0x3c/0x78) from [<c067b1e8>] (omap3_pm_init+0x328/0x5f4)
[    3.902099] [<c067b1e8>] (omap3_pm_init+0x328/0x5f4) from [<c067161c>] (init_machine_late+0x1c/0x28)
[    3.911773] [<c067161c>] (init_machine_late+0x1c/0x28) from [<c0008648>] (do_one_initcall+0x34/0x178)
[    3.921539] [<c0008648>] (do_one_initcall+0x34/0x178) from [<c066e8f4>] (kernel_init+0xfc/0x1c0)
[    3.930847] [<c066e8f4>] (kernel_init+0xfc/0x1c0) from [<c00140b0>] (kernel_thread_exit+0x0/0x8)
[    3.940246] ---[ end trace 55a0ad32ca2ca682 ]---

Reported-by: Javier Martinez Canillas <javier@dowhile0.org>
Cc: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
13 years agoMerge tag 'omap-devel-d-for-3.6' of git://git.kernel.org/pub/scm/linux/kernel/git... omap-fixes-non-critical-for-v3.6
Tony Lindgren [Fri, 29 Jun 2012 13:07:08 +0000 (06:07 -0700)]
Merge tag 'omap-devel-d-for-3.6' of git://git./linux/kernel/git/pjw/omap-pending into fixes-non-critical

Some OMAP AM35xx fixes.

The powerdomain and clockdomain data for the AM35xx are finally fixed.
The AM35xx EMAC/MDIO Ethernet controller integration code has been
converted to use the OMAP device and hwmod framework.  Also the UART4
and HSOTGUSB warnings have been fixed.

13 years agoARM: OMAP2+: do not allow SmartReflex to be built as a module omap-devel-driver-for-v3.6
Jean Pihet [Thu, 28 Jun 2012 16:55:38 +0000 (09:55 -0700)]
ARM: OMAP2+: do not allow SmartReflex to be built as a module

Disable the module option for POWER_AVS since this is currently not
supported.

This patch fixes these error in the case POWER_AVS is set to 'm':

arch/arm/mach-omap2/built-in.o: In function `sr_class3_configure':
arch/arm/mach-omap2/smartreflex-class3.c:43: undefined reference to `sr_configure_errgen'
arch/arm/mach-omap2/built-in.o: In function `sr_class3_disable':
arch/arm/mach-omap2/smartreflex-class3.c:33: undefined reference to `sr_disable_errgen'
arch/arm/mach-omap2/smartreflex-class3.c:35: undefined reference to `sr_disable'
arch/arm/mach-omap2/built-in.o: In function `sr_class3_enable':
arch/arm/mach-omap2/smartreflex-class3.c:28: undefined reference to `sr_enable'
arch/arm/mach-omap2/built-in.o: In function `sr_class3_init':
arch/arm/mach-omap2/smartreflex-class3.c:59: undefined reference to `sr_register_class'

Reported-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Jean Pihet <j-pihet@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
[tony@atomide.com: updated to use relative paths for the build error]
Signed-off-by: Tony Lindgren <tony@atomide.com>
13 years agoARM: OMAP2+: fix CONFIG_CPU_IDLE dependency on CONFIG_PM
Kevin Hilman [Thu, 28 Jun 2012 16:45:14 +0000 (09:45 -0700)]
ARM: OMAP2+: fix CONFIG_CPU_IDLE dependency on CONFIG_PM

commit 164e0cbf60 (ARM: OMAP3/4: consolidate cpuidle Makefile) added
an OMAP-specific dependency from CPU_IDLE to CONFIG_PM.  This causes
some randconfig warnings when CONFIG_PM has unmet dependencies:

warning: (ARCH_OMAP3 && ARCH_OMAP4) selects PM which has unmet direct dependencies (PM_SLEEP || PM_RUNTIME)
warning: (ARCH_OMAP3 && ARCH_OMAP4) selects PM which has unmet direct dependencies (PM_SLEEP || PM_RUNTIME)
warning: (ARCH_OMAP3 && ARCH_OMAP4) selects PM which has unmet direct dependencies (PM_SLEEP || PM_RUNTIME)

Fix this by making the dependency on CONFIG_PM_RUNTIME (which in turn
will enable CONFIG_PM.)

Reported-by: Tony Lindgren <tony@atomide.com>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
13 years agoMerge branch 'cleanup-hwmod' into cleanup omap-cleanup-for-v3.6
Tony Lindgren [Thu, 28 Jun 2012 12:47:01 +0000 (05:47 -0700)]
Merge branch 'cleanup-hwmod' into cleanup

Conflicts:
arch/arm/mach-omap2/dsp.c

13 years agoMerge branches 'cleanup-udc' and 'cleanup-dma' into cleanup
Tony Lindgren [Thu, 28 Jun 2012 12:46:41 +0000 (05:46 -0700)]
Merge branches 'cleanup-udc' and 'cleanup-dma' into cleanup

13 years agoARM: OMAP: remove unused cpu detection macros
Paul Bolle [Tue, 26 Jun 2012 21:13:29 +0000 (23:13 +0200)]
ARM: OMAP: remove unused cpu detection macros

Now that OMAP730 and OMAP850 support is mostly unified, there's no
need for separate cpu detection macros for these architectures. At
least, currently there isn't, because both macros are unused.
cpu_is_7xx() seems to cover all possible uses.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
[tony@atomide.com: updated to also to remove related IS_OMAP_TYPE]
Signed-off-by: Tony Lindgren <tony@atomide.com>
13 years agoARM: OMAP: fix typos related to OMAP330
Paul Bolle [Tue, 26 Jun 2012 21:12:47 +0000 (23:12 +0200)]
ARM: OMAP: fix typos related to OMAP330

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Tony Lindgren <tony@atomide.com>
13 years agoMerge branch 'for_3.6/cleanup/twl-irq' of git://git.kernel.org/pub/scm/linux/kernel...
Tony Lindgren [Thu, 28 Jun 2012 07:09:26 +0000 (00:09 -0700)]
Merge branch 'for_3.6/cleanup/twl-irq' of git://git./linux/kernel/git/khilman/linux-omap-pm into fixes-non-critical

13 years agoMerge branch 'for_3.6/cleanup/pm' of git://git.kernel.org/pub/scm/linux/kernel/git...
Tony Lindgren [Thu, 28 Jun 2012 07:08:58 +0000 (00:08 -0700)]
Merge branch 'for_3.6/cleanup/pm' of git://git./linux/kernel/git/khilman/linux-omap-pm into fixes-non-critical

13 years agoARM: OMAP7XX: Remove omap730.h and omap850.h
Paul Bolle [Thu, 28 Jun 2012 07:08:10 +0000 (00:08 -0700)]
ARM: OMAP7XX:  Remove omap730.h and omap850.h

No file includes omap730.h or omap850.h. That's not surprising, as
commit e6684f7132c6e6333e96407b06910bebaa4c1935 ("OMAP7XX: Create
omap7xx.h") created a header that was "intended to replace omap730.h and
omap850.h", while all "values defined [in omap7xx.h] are identical to
those in both the old files". So it seems it was just an oversight to
keep both the old files after commit
7a8f48f8c611ac8c07023260258e2fec312b9242 ("OMAP7XX: omap_uwire.c:
Convert to omap7xx.h") converted the last file still including one of
those two old files.

Convert the last reference to omap730.h to a reference to omap7xx.h too.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Tony Lindgren <tony@atomide.com>
13 years agoARM: OMAP2+: fix naming collision of variable nr_irqs
Venkatraman S [Mon, 25 Jun 2012 10:26:39 +0000 (15:56 +0530)]
ARM: OMAP2+: fix naming collision of variable nr_irqs

Using nr_irqs as local variable name triggers the sparse warning..
./arch/arm/mach-omap2/irq.c:265:6: warning: symbol 'nr_irqs' shadows an earlier one
./linux/include/linux/irqnr.h:26:12: originally declared here

Signed-off-by: Venkatraman S <svenkatr@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
13 years agoARM: OMAP: omap2plus_defconfig: Enable EXT4 support
Javier Martinez Canillas [Sat, 23 Jun 2012 22:18:59 +0000 (00:18 +0200)]
ARM: OMAP: omap2plus_defconfig: Enable EXT4 support

On OMAP boards that includes an SD card slot, an EXT4 partition could
be used to store the root file system. So, the kernel should have
built-in support for EXT4 to be able to mount the VFS root on boot.

Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
13 years agoMerge branch 'fixes-omap4-dsp' into fixes-non-critical
Tony Lindgren [Thu, 28 Jun 2012 07:07:30 +0000 (00:07 -0700)]
Merge branch 'fixes-omap4-dsp' into fixes-non-critical

13 years agoARM: OMAP depends on MMU
Arnd Bergmann [Fri, 8 Jun 2012 00:50:51 +0000 (18:50 -0600)]
ARM: OMAP depends on MMU

There is no way to build OMAP kernels without an MMU
at this point because of dependencies on MMU-only functions.

As long as nobody is interested in fixing this, let's just disable
this platforms for nommu kernels.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
13 years agoMerge branches 'am35xx_hwmod_data_fixes_a_3.6', 'am35xx_emac_mdio_devel_3.6' and...
Paul Walmsley [Thu, 28 Jun 2012 06:13:19 +0000 (00:13 -0600)]
Merge branches 'am35xx_hwmod_data_fixes_a_3.6', 'am35xx_emac_mdio_devel_3.6' and 'am35xx_prcm_data_devel_3.6' into am35xx_devel_3.6

13 years agoarm: omap3: am35x: Set proper powerdomain states
Mark A. Greer [Thu, 28 Jun 2012 00:43:59 +0000 (18:43 -0600)]
arm: omap3: am35x: Set proper powerdomain states

The am35x family of SoCs only support the PWRSTS_ON
state so create a new set of powerdomain structures
that ensure that only the ON state is entered.

Signed-off-by: Mark A. Greer <mgreer@animalcreek.com>
13 years agoARM: OMAP AM35x: clockdomain data: Fix clockdomain dependencies
Mark A. Greer [Thu, 19 Apr 2012 20:16:46 +0000 (13:16 -0700)]
ARM: OMAP AM35x: clockdomain data: Fix clockdomain dependencies

The am35x family of SoCs do not have an IVA so
a parallel set of clockdomain dependencies are
required that are simililar to OMAP3 but without
any IVA dependencies.

Signed-off-by: Mark A. Greer <mgreer@animalcreek.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
13 years agoARM: OMAP AM35x: EMAC/MDIO integration: Add Davinci EMAC/MDIO hwmod support
Mark A. Greer [Wed, 27 Jun 2012 20:59:57 +0000 (14:59 -0600)]
ARM: OMAP AM35x: EMAC/MDIO integration: Add Davinci EMAC/MDIO hwmod support

Add hwmod support for the EMAC (and MDIO)
ethernet controller that's on the am35x
family of SoC's.

Signed-off-by: Mark A. Greer <mgreer@animalcreek.com>
[paul@pwsan.com: updated subject line; updated to apply on v3.5-rc4;
 added comments to hwmod data regarding IPSS]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
13 years agoARM: OMAP: AM35xx: fix UART4 softreset
Paul Walmsley [Wed, 27 Jun 2012 20:53:46 +0000 (14:53 -0600)]
ARM: OMAP: AM35xx: fix UART4 softreset

During kernel init, the AM3505/AM3517 UART4 cannot complete its softreset:

omap_hwmod: uart4: softreset failed (waited 10000 usec)

This also results in another warning later in the boot process:

omap_hwmod: uart4: enabled state can only be entered from initialized, idle, or disabled state

From empirical observation, the AM35xx UART4 IP block requires either
uart1_fck or uart2_fck to be enabled while UART4 resets.  Otherwise
the reset will never complete.  So this patch adds uart1_fck as an
optional clock for UART4 and adds the appropriate hwmod flag to cause
uart1_fck to be enabled during the reset process.  (The choice of
uart1_fck over uart2_fck was arbitrary.)

Unfortunately this observation raises many questions.  Is it necessary
for uart1_fck or uart2_fck to be controlled with uart4_fck for the
UART4 to work correctly?  What exactly do the AM35xx UART4 clock
tree and the related PRCM idle management FSMs look like?  If anyone
has the ability to answer these questions through empirical functional
testing, or hardware information from the AM35xx designers, it would
be greatly appreciated.

Cc: BenoƮt Cousson <b-cousson@ti.com>
Cc: Kyle Manna <kyle.manna@fuel7.com>
Cc: Mark A. Greer <mgreer@animalcreek.com>
Cc: Ranjith Lohithakshan <ranjithl@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Tested-by: Mark A. Greer <mgreer@animalcreek.com>
13 years agoARM: OMAP AM35xx: clock and hwmod data: fix UART4 data
Paul Walmsley [Wed, 27 Jun 2012 20:53:46 +0000 (14:53 -0600)]
ARM: OMAP AM35xx: clock and hwmod data: fix UART4 data

Add missing terminators to the arrays of IRQ, DMA, and address space
structure records in the AM35xx UART4 hwmod data.  Without these
terminators, the following warnings appear on boot:

omap_uart.3: failed to claim resource 58
omap_device: omap_uart: build failed (-16)
WARNING: at /home/paul/linux/arch/arm/mach-omap2/serial.c:375 omap_serial_init_port+0x198/0x284()
Could not build omap_device for omap_uart: uart4.

Also, AM35xx uart4_fck has an incorrect parent clock pointer.  Fix it
and clean up a whitespace issue.

Fix some incorrectly-named macros related to AM35xx UART4.

Cc: Kyle Manna <kyle.manna@fuel7.com>
Cc: Mark A. Greer <mgreer@animalcreek.com>
Cc: Ranjith Lohithakshan <ranjithl@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Tested-by: Mark A. Greer <mgreer@animalcreek.com>
13 years agoARM: OMAP AM35xx: clock and hwmod data: fix AM35xx HSOTGUSB hwmod
Paul Walmsley [Wed, 27 Jun 2012 20:53:46 +0000 (14:53 -0600)]
ARM: OMAP AM35xx: clock and hwmod data: fix AM35xx HSOTGUSB hwmod

Partially fix the hwmod data for the AM35xx USB OTG hwmod.  This
should resolve the following boot warning on AM35xx platforms:

omap_hwmod: am35x_otg_hs: cannot be enabled for reset (3)

While here, also fix the clkdev records, to avoid warnings about
duplicate clock aliases.

The hwmod is also connected to the wrong interconnect.  It should be
connected to the IPSS, not the L4 CORE.  But that is left for a future
fix, since it probably has a dependency on some hwmod core changes.

Cc: Felipe Balbi <balbi@ti.com>
Cc: Hema HK <hemahk@ti.com>
Cc: Mark A. Greer <mgreer@animalcreek.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Tested-by: Mark A. Greer <mgreer@animalcreek.com>
13 years agoLinux-omap rebuilt: Updated with fixes and branches from Kevin
Tony Lindgren [Wed, 27 Jun 2012 16:20:09 +0000 (09:20 -0700)]
Linux-omap rebuilt: Updated with fixes and branches from Kevin

$ git checkout -b tmp-rebuild-1340813995 linus
$ git merge -m "Merge fixes fixes-non-critical dt testing-misc tmp-merge testing-board cbus" fixes fixes-non-critical dt testing-misc tmp-merge testing-board cbus
$ git merge -s ours master
$ git checkout master
$ git merge tmp-rebuild-1340813995

To view the changes since the last rebuild, please do
$ git diff c99573a43e3233900bf18948a45cf9411cc14932..c8d36cab2c34f48b2b3385b4da148276d43d4366 arch/arm/*omap*/

13 years agoMerge fixes fixes-non-critical dt testing-misc tmp-merge testing-board cbus
Tony Lindgren [Wed, 27 Jun 2012 16:19:57 +0000 (09:19 -0700)]
Merge fixes fixes-non-critical dt testing-misc tmp-merge testing-board cbus

13 years agoMerge branch 'i2c-embedded/for-next' of git://git.pengutronix.de/git/wsa/linux into...
Tony Lindgren [Wed, 27 Jun 2012 16:19:10 +0000 (09:19 -0700)]
Merge branch 'i2c-embedded/for-next' of git://git.pengutronix.de/git/wsa/linux into tmp-merge for testing

13 years agoMerge branch 'devel-am33xx' into tmp-merge
Tony Lindgren [Wed, 27 Jun 2012 16:18:42 +0000 (09:18 -0700)]
Merge branch 'devel-am33xx' into tmp-merge

13 years agoARM:OMAP4 add Phytec phyCORE-OMAP4 board
Jan Weitzel [Wed, 27 Jun 2012 15:33:44 +0000 (08:33 -0700)]
ARM:OMAP4 add Phytec phyCORE-OMAP4 board

This adds support for the Phytec OMAP4430 board called phyCORE-OMAP4 PCM049.

Signed-off-by: Jan Weitzel <j.weitzel@phytec.de>
[tony@atomide.com: updated for timer and twl cleanup, and to select the board by default]
Signed-off-by: Tony Lindgren <tony@atomide.com>
13 years agoInitial B&N Nook Color (encore) support
Oleg Drokin [Wed, 27 Jun 2012 15:33:44 +0000 (08:33 -0700)]
Initial B&N Nook Color (encore) support

Bare-bones board file, comes with serial console, gpio keys,
MMC/SDCard and USB (peripheral) support.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
[tony@atomide.com: updated for irq and timer cleanup and to select the board by default]
Signed-off-by: Tony Lindgren <tony@atomide.com>
13 years agoMerge branch 'devel-pm' into tmp-merge
Tony Lindgren [Wed, 27 Jun 2012 15:23:47 +0000 (08:23 -0700)]
Merge branch 'devel-pm' into tmp-merge

13 years agoMerge branch 'devel-driver' into tmp-merge
Tony Lindgren [Wed, 27 Jun 2012 15:23:35 +0000 (08:23 -0700)]
Merge branch 'devel-driver' into tmp-merge

13 years agoMerge branch 'cleanup-hwmod' into tmp-merge
Tony Lindgren [Wed, 27 Jun 2012 15:23:25 +0000 (08:23 -0700)]
Merge branch 'cleanup-hwmod' into tmp-merge

Conflicts:
arch/arm/mach-omap2/dsp.c

13 years agoMerge branch 'devel-dmtimer' into tmp-merge
Tony Lindgren [Wed, 27 Jun 2012 15:19:32 +0000 (08:19 -0700)]
Merge branch 'devel-dmtimer' into tmp-merge

13 years agoMerge branches 'cleanup-udc' and 'cleanup-dma' into tmp-merge
Tony Lindgren [Wed, 27 Jun 2012 15:19:24 +0000 (08:19 -0700)]
Merge branches 'cleanup-udc' and 'cleanup-dma' into tmp-merge

13 years agoMerge branch 'fixes-non-critical' into tmp-merge
Tony Lindgren [Wed, 27 Jun 2012 15:19:13 +0000 (08:19 -0700)]
Merge branch 'fixes-non-critical' into tmp-merge

13 years agoARM: OMAP4470: Fix OMAP4470 boot failure omap-fixes-for-v3.5-rc4
Jon Hunter [Mon, 25 Jun 2012 17:38:23 +0000 (12:38 -0500)]
ARM: OMAP4470: Fix OMAP4470 boot failure

OMAP4470 currently fails to boot, printing various messages such as ...

omap_hwmod: mpu: cannot clk_get main_clk dpll_mpu_m2_ck
omap_hwmod: mpu: cannot _init_clocks
------------[ cut here ]------------
WARNING: at arch/arm/mach-omap2/omap_hwmod.c:2062 _init+0x2a0/0x2e4()
omap_hwmod: mpu: couldn't init clocks
Modules linked in:
[<c001c7fc>] (unwind_backtrace+0x0/0xf4) from [<c0043c64>] (warn_slowpath_common+0x4c/0x64)
[<c0043c64>] (warn_slowpath_common+0x4c/0x64) from [<c0043d10>] (warn_slowpath_fmt+0x30/0x40)
[<c0043d10>] (warn_slowpath_fmt+0x30/0x40) from [<c0674208>] (_init+0x2a0/0x2e4)
[<c0674208>] (_init+0x2a0/0x2e4) from [<c067428c>] (omap_hwmod_setup_one+0x40/0x60)
[<c067428c>] (omap_hwmod_setup_one+0x40/0x60) from [<c0674280>] (omap_hwmod_setup_one+0x34/0x60)
[<c0674280>] (omap_hwmod_setup_one+0x34/0x60) from [<c06726f4>] (omap_dm_timer_init_one+0x30/0x250)
[<c06726f4>] (omap_dm_timer_init_one+0x30/0x250) from [<c0672930>] (omap2_gp_clockevent_init+0x1c/0x108)
[<c0672930>] (omap2_gp_clockevent_init+0x1c/0x108) from [<c0672c60>] (omap4_timer_init+0x10/0x5c)
[<c0672c60>] (omap4_timer_init+0x10/0x5c) from [<c066c418>] (time_init+0x20/0x30)
[<c066c418>] (time_init+0x20/0x30) from [<c0668814>] (start_kernel+0x1b0/0x304)
[<c0668814>] (start_kernel+0x1b0/0x304) from [<80008044>] (0x80008044)
---[ end trace 1b75b31a2719ed1c ]---

The problem is that currently none of the clocks are being registered for
OMAP4470 devices and so on boot-up no clocks can be found and the kernel panics.

This fix allows the kernel to boot without failure using a simple RAMDISK file
system on OMAP4470 blaze board.

Per feedback from Paul and Benoit the 4470 clock data is incomplete for new
modules such as the 2D graphics block that has been added to the 4470.
Therefore add a warning to indicate that the clock data is incomplete.

Cc: Paul Walmsley <paul@pwsan.com>
Cc: Benoit Cousson <b-cousson@ti.com>
Signed-off-by: Jon Hunter <jon-hunter@ti.com>
[tony@atomide.com: updated comments]
Signed-off-by: Tony Lindgren <tony@atomide.com>
13 years agoARM: OMAP: remove unused cpu detection macros
Paul Bolle [Tue, 26 Jun 2012 21:13:29 +0000 (23:13 +0200)]
ARM: OMAP: remove unused cpu detection macros

Now that OMAP730 and OMAP850 support is mostly unified, there's no
need for separate cpu detection macros for these architectures. At
least, currently there isn't, because both macros are unused.
cpu_is_7xx() seems to cover all possible uses.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
[tony@atomide.com: updated to also to remove related IS_OMAP_TYPE]
Signed-off-by: Tony Lindgren <tony@atomide.com>
13 years agoARM: OMAP: fix typos related to OMAP330
Paul Bolle [Tue, 26 Jun 2012 21:12:47 +0000 (23:12 +0200)]
ARM: OMAP: fix typos related to OMAP330

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Tony Lindgren <tony@atomide.com>
13 years agoMerge branch 'for_3.6/cleanup/twl-irq' of git://git.kernel.org/pub/scm/linux/kernel...
Tony Lindgren [Wed, 27 Jun 2012 12:18:40 +0000 (05:18 -0700)]
Merge branch 'for_3.6/cleanup/twl-irq' of git://git./linux/kernel/git/khilman/linux-omap-pm into fixes-non-critical

13 years agoMerge branch 'for_3.6/cleanup/pm' of git://git.kernel.org/pub/scm/linux/kernel/git...
Tony Lindgren [Wed, 27 Jun 2012 12:08:14 +0000 (05:08 -0700)]
Merge branch 'for_3.6/cleanup/pm' of git://git./linux/kernel/git/khilman/linux-omap-pm into fixes-non-critical

13 years agoMerge branch 'for_3.6/pm/performance' of git://git.kernel.org/pub/scm/linux/kernel...
Tony Lindgren [Wed, 27 Jun 2012 11:50:21 +0000 (04:50 -0700)]
Merge branch 'for_3.6/pm/performance' of git://git./linux/kernel/git/khilman/linux-omap-pm into devel-pm

13 years agoMerge branch 'for_3.6/pm/sr-move' of git://git.kernel.org/pub/scm/linux/kernel/git...
Tony Lindgren [Tue, 26 Jun 2012 13:55:23 +0000 (06:55 -0700)]
Merge branch 'for_3.6/pm/sr-move' of git://git./linux/kernel/git/khilman/linux-omap-pm into devel-driver

13 years agoOMAP7XX: Remove omap730.h and omap850.h
Paul Bolle [Mon, 18 Jun 2012 09:58:05 +0000 (11:58 +0200)]
OMAP7XX:  Remove omap730.h and omap850.h

No file includes omap730.h or omap850.h. That's not surprising, as
commit e6684f7132c6e6333e96407b06910bebaa4c1935 ("OMAP7XX: Create
omap7xx.h") created a header that was "intended to replace omap730.h and
omap850.h", while all "values defined [in omap7xx.h] are identical to
those in both the old files". So it seems it was just an oversight to
keep both the old files after commit
7a8f48f8c611ac8c07023260258e2fec312b9242 ("OMAP7XX: omap_uwire.c:
Convert to omap7xx.h") converted the last file still including one of
those two old files.

Convert the last reference to omap730.h to a reference to omap7xx.h too.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Tony Lindgren <tony@atomide.com>
13 years agoARM: OMAP2+: fix naming collision of variable nr_irqs
Venkatraman S [Mon, 25 Jun 2012 10:26:39 +0000 (15:56 +0530)]
ARM: OMAP2+: fix naming collision of variable nr_irqs

Using nr_irqs as local variable name triggers the sparse warning..
./arch/arm/mach-omap2/irq.c:265:6: warning: symbol 'nr_irqs' shadows an earlier one
./linux/include/linux/irqnr.h:26:12: originally declared here

Signed-off-by: Venkatraman S <svenkatr@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
13 years agoARM: OMAP: omap2plus_defconfig: Enable EXT4 support
Javier Martinez Canillas [Sat, 23 Jun 2012 22:18:59 +0000 (00:18 +0200)]
ARM: OMAP: omap2plus_defconfig: Enable EXT4 support

On OMAP boards that includes an SD card slot, an EXT4 partition could
be used to store the root file system. So, the kernel should have
built-in support for EXT4 to be able to mount the VFS root on boot.

Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
13 years agoMerge branch 'fixes-omap4-dsp' into fixes-non-critical
Tony Lindgren [Tue, 26 Jun 2012 10:43:28 +0000 (03:43 -0700)]
Merge branch 'fixes-omap4-dsp' into fixes-non-critical

13 years agoARM: OMAP2+: nand: fix build error when CONFIG_MTD_ONENAND_OMAP2=n
Kevin Hilman [Tue, 26 Jun 2012 10:29:57 +0000 (03:29 -0700)]
ARM: OMAP2+: nand: fix build error when CONFIG_MTD_ONENAND_OMAP2=n

commit 8259573b (ARM: OMAP2+: nand: Make board_onenand_init() visible
to board code) broke the build for configs with OneNAND disabled.  By
removing the static in the header file, it created a duplicate definition
in the .c and the .h files, resuling in a build error:

/work/kernel/omap/dev/arch/arm/mach-omap2/board-flash.c:102:111: error: redefinition of 'board_onenand_init'
/work/kernel/omap/dev/arch/arm/mach-omap2/board-flash.h:56:51: note: previous definition of 'board_onenand_init' was here
make[2]: *** [arch/arm/mach-omap2/board-flash.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [arch/arm/mach-omap2] Error 2
make: *** [sub-make] Error 2

Fix this by removing the duplicate dummy entry from the C file.

Cc: Enric Balletbò i Serra <eballetbo@gmail.com>
Cc: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
13 years agoARM: OMAP2: Use hwmod to initialize mmc for 2420
Tony Lindgren [Tue, 26 Jun 2012 10:14:20 +0000 (03:14 -0700)]
ARM: OMAP2: Use hwmod to initialize mmc for 2420

This allows us to pass dma request lines in platform data to
MMC driver the same way as we already do for omap2430 and later.

Also note that we need to only build this code if MMC_OMAP
is selected, so change Makefile accordingly and place it near
the MMC_OMAP_HS in the Makefile.

Signed-off-by: Tony Lindgren <tony@atomide.com>
13 years agoARM: OMAP3: PM: cpuidle: optimize the clkdm idle latency in C1 state
Jean Pihet [Fri, 1 Jun 2012 15:11:08 +0000 (17:11 +0200)]
ARM: OMAP3: PM: cpuidle: optimize the clkdm idle latency in C1 state

For a power domain to idle all the clock domains in it must idle.
This patch implements an optimization of the cpuidle code by
denying and later allowing only the first registered clock domain
of a power domain, and so optimizes the latency of the low power code.

The functions _cpuidle_allow_idle and _cpuidle_deny_idle are
not used anymore and so are removed.

Signed-off-by: Jean Pihet <j-pihet@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
13 years agoARM: OMAP3: PM: cpuidle: optimize the PER latency in C1 state
Jean Pihet [Fri, 1 Jun 2012 15:11:07 +0000 (17:11 +0200)]
ARM: OMAP3: PM: cpuidle: optimize the PER latency in C1 state

One of the main contributors of the low power code latency is
the PER power domain. To optimize the high-performance and
low-latency C1 state, prevent any PER state which is lower
than the CORE state in C1.

Reported and suggested by Kevin Hilman.

Reported-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Jean Pihet <j-pihet@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
13 years agoARM: OMAP3: PM: cpuidle: default to C1 in next_valid_state
Jean Pihet [Fri, 1 Jun 2012 15:11:06 +0000 (17:11 +0200)]
ARM: OMAP3: PM: cpuidle: default to C1 in next_valid_state

If the next state is no found in the next_valid_state function,
fallback to the default value of C1 (which is state 0).
This prevents the use of a bogus state -1 in the rest of the cpuidle
code.

Signed-off-by: Jean Pihet <j-pihet@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
13 years agoARM: OMAP3: PM: cleanup cam_pwrdm leftovers
Kevin Hilman [Tue, 19 Jun 2012 16:54:38 +0000 (09:54 -0700)]
ARM: OMAP3: PM: cleanup cam_pwrdm leftovers

commit e7410cf7 (OMAP3: PM: move device-specific special cases from PM
core into CPUidle) moved mangement of cam_pwrdm to CPUidle but left
some remnants behind, namely the call to clkcm_allo_idle() for the
clockdomains in the MPU pwrdm.  Remove these since they are not
necessary and cause unwanted latency in the idle path.

Acked-by: Tero Kristo <Tero Kristo <t-kristo@ti.com>
Reviewed-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
13 years agoARM: OMAP3: PM: call pre/post transition per powerdomain
Kevin Hilman [Fri, 11 May 2012 22:47:17 +0000 (15:47 -0700)]
ARM: OMAP3: PM: call pre/post transition per powerdomain

We only need to call the pre/post transtion methods when we know the
power state is changing.  First, split up the pre/post transition
calls to be per-powerdomain, and then make them conditional on whether
the power domain is actually changing states.

Reviewed-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
13 years agoARM: OMAP2+: powerdomain: allow pre/post transtion to be per pwrdm
Kevin Hilman [Fri, 11 May 2012 23:00:24 +0000 (16:00 -0700)]
ARM: OMAP2+: powerdomain: allow pre/post transtion to be per pwrdm

Iteration over all power domains in the idle path is unnecessary since
only power domains that are transitioning need to be accounted for.
Also PRCM register accesses are known to be expensive, so the
additional latency added to the idle path is signficiant.

In order allow the pre/post transitions to be isolated and called
per-pwrdm, change the API so passing in a specific power domain will
trigger the pre/post transtion accounting for only that specific power
domain.  Passing NULL means iterating over all power domains as is
current behavior.

Reviewed-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Grazvydas Ignotas <notasas@gmail.com>
Acked-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
13 years agoLinux-omap rebuilt: updated to -rc4
Tony Lindgren [Mon, 25 Jun 2012 15:32:58 +0000 (08:32 -0700)]
Linux-omap rebuilt: updated to -rc4

$ git checkout -b tmp-rebuild-1340638365 linus
$ git merge -m "Merge fixes fixes-non-critical dt testing-misc tmp-merge testing-board cbus" fixes fixes-non-critical dt testing-misc tmp-merge testing-board cbus
$ git merge -s ours master
$ git checkout master
$ git merge tmp-rebuild-1340638365

To view the changes since the last rebuild, please do
$ git diff 3c56ce07072eef35a30f71fce9748adcbb31ce8d..d4896f5b90be2bf6010dd134eb6d98ee15d5110c arch/arm/*omap*/

13 years agoMerge fixes fixes-non-critical dt testing-misc tmp-merge testing-board cbus
Tony Lindgren [Mon, 25 Jun 2012 15:32:47 +0000 (08:32 -0700)]
Merge fixes fixes-non-critical dt testing-misc tmp-merge testing-board cbus

13 years agoMerge branch 'i2c-embedded/for-next' of git://git.pengutronix.de/git/wsa/linux into...
Tony Lindgren [Mon, 25 Jun 2012 15:32:18 +0000 (08:32 -0700)]
Merge branch 'i2c-embedded/for-next' of git://git.pengutronix.de/git/wsa/linux into tmp-merge for testing

13 years agoARM: OMAP2: Use hwmod to initialize mmc for 2420
Tony Lindgren [Mon, 25 Jun 2012 15:19:14 +0000 (08:19 -0700)]
ARM: OMAP2: Use hwmod to initialize mmc for 2420

This allows us to pass dma request lines in platform data to
MMC driver the same way as we already do for omap2430 and later.

Signed-off-by: Tony Lindgren <tony@atomide.com>
13 years agoMerge branch 'devel-pm' into tmp-merge
Tony Lindgren [Mon, 25 Jun 2012 14:55:29 +0000 (07:55 -0700)]
Merge branch 'devel-pm' into tmp-merge

13 years agoMerge branch 'devel-driver' into tmp-merge
Tony Lindgren [Mon, 25 Jun 2012 14:55:23 +0000 (07:55 -0700)]
Merge branch 'devel-driver' into tmp-merge

13 years agoMerge branch 'cleanup-hwmod' into tmp-merge
Tony Lindgren [Mon, 25 Jun 2012 14:55:17 +0000 (07:55 -0700)]
Merge branch 'cleanup-hwmod' into tmp-merge

Conflicts:
arch/arm/mach-omap2/dsp.c

13 years agoMerge branch 'devel-dmtimer' into tmp-merge
Tony Lindgren [Mon, 25 Jun 2012 14:54:58 +0000 (07:54 -0700)]
Merge branch 'devel-dmtimer' into tmp-merge

13 years agoMerge branch 'devel-am33xx' into tmp-merge
Tony Lindgren [Mon, 25 Jun 2012 14:54:52 +0000 (07:54 -0700)]
Merge branch 'devel-am33xx' into tmp-merge

13 years agoMerge branches 'cleanup-udc' and 'cleanup-dma' into tmp-merge
Tony Lindgren [Mon, 25 Jun 2012 14:54:42 +0000 (07:54 -0700)]
Merge branches 'cleanup-udc' and 'cleanup-dma' into tmp-merge

13 years agoMerge tag 'omap-devel-c-for-3.6' of git://git.kernel.org/pub/scm/linux/kernel/git...
Tony Lindgren [Mon, 25 Jun 2012 14:41:17 +0000 (07:41 -0700)]
Merge tag 'omap-devel-c-for-3.6' of git://git./linux/kernel/git/pjw/omap-pending into devel-pm

Reimplement the OMAP PRCM I/O chain code.  Needed for I/O wakeups to
work correctly.

Conflicts:
arch/arm/mach-omap2/prm2xxx_3xxx.c

13 years agoMerge tag 'omap-devel-b-for-3.6' of git://git.kernel.org/pub/scm/linux/kernel/git...
Tony Lindgren [Mon, 25 Jun 2012 14:32:51 +0000 (07:32 -0700)]
Merge tag 'omap-devel-b-for-3.6' of git://git./linux/kernel/git/pjw/omap-pending into devel-driver

Convert the OMAP HDQ1W driver to use runtime PM.  Make it available on
all OMAP2+ chips that appear to have it integrated.  Fix a problem
preventing it from being used on OMAP4.

13 years agoARM: omap4: Fix standalone OMAP4 build break for board_onenand_init
Rajendra Nayak [Fri, 22 Jun 2012 11:44:21 +0000 (17:14 +0530)]
ARM: omap4: Fix standalone OMAP4 build break for board_onenand_init

Commit 8259573b (ARM: OMAP2+: nand: Make board_onenand_init() visible
to board code) caused the the following error:

CC      arch/arm/mach-omap2/board-flash.o
arch/arm/mach-omap2/board-flash.c:102: error: redefinition of 'board_onenand_init'
arch/arm/mach-omap2/board-flash.h:56: note: previous definition of 'board_onenand_init' was here
make[1]: *** [arch/arm/mach-omap2/board-flash.o] Error 1
make: *** [arch/arm/mach-omap2] Error 2

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
[tony@atomide.com: updated description for the regression commit]
Signed-off-by: Tony Lindgren <tony@atomide.com>
13 years agoLinux 3.5-rc4 v3.5-rc4
Linus Torvalds [Sun, 24 Jun 2012 19:53:04 +0000 (12:53 -0700)]
Linux 3.5-rc4

13 years agoFix typo in printed messages
Anatol Pomozov [Sat, 23 Jun 2012 22:54:34 +0000 (15:54 -0700)]
Fix typo in printed messages

Coult -> Could

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
13 years agoMerge git://git.kernel.org/pub/scm/virt/kvm/kvm
Linus Torvalds [Sun, 24 Jun 2012 18:02:09 +0000 (11:02 -0700)]
Merge git://git.kernel.org/pub/scm/virt/kvm/kvm

Pull KVM fixes from Avi Kivity:
 "Fixing a scheduling-while-atomic bug in the ppc code, and a bug which
  allowed pci bridges to be assigned to guests."

* git://git.kernel.org/pub/scm/virt/kvm/kvm:
  KVM: PPC: Book3S HV: Drop locks around call to kvmppc_pin_guest_page
  KVM: Fix PCI header check on device assignment

13 years agoMerge tag 'rdma-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband
Linus Torvalds [Sun, 24 Jun 2012 18:00:07 +0000 (11:00 -0700)]
Merge tag 'rdma-fixes' of git://git./linux/kernel/git/roland/infiniband

Pull InfiniBand/RDMA fixes from Roland Dreier:
 - Fixes to new ocrdma driver
 - Typo in test in CMA

* tag 'rdma-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband:
  RDMA/cma: QP type check on received REQs should be AND not OR
  RDMA/ocrdma: Fix off by one in ocrdma_query_gid()
  RDMA/ocrdma: Fixed RQ error CQE polling
  RDMA/ocrdma: Correct queue SGE calculation
  RDMA/ocrdma: Correct reported max queue sizes
  RDMA/ocrdma: Fixed GID table for vlan and events

13 years agoMerge tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm...
Linus Torvalds [Sun, 24 Jun 2012 17:57:59 +0000 (10:57 -0700)]
Merge tag 'fixes-for-linus' of git://git./linux/kernel/git/arm/arm-soc

Pull ARM SoC fixes from Olof Johansson:
 "Nothing very controversial in here.  Most of the fixes are for OMAP
  this time around, with some orion/kirkwood and a tegra patch mixed in."

* tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
  ARM: Orion: Fix Virtual/Physical mixup with watchdog
  ARM: Kirkwood: clk_register_gate_fn: add fn assignment
  ARM: Orion5x - Restore parts of io.h, with rework
  ARM: OMAP4: hwmod data: Force HDMI in no-idle while enabled
  ARM: OMAP2+: mux: fix sparse warning
  ARM: OMAP2+: CM: increase the module disable timeout
  ARM: OMAP4: clock data: add clockdomains for clocks used as main clocks
  ARM: OMAP4: hwmod data: fix 32k sync timer idle modes
  ARM: OMAP4+: hwmod: fix issue causing IPs not going back to Smart-Standby
  ARM: OMAP: Fix Beagleboard DVI reset gpio
  arm/dts: OMAP2: Fix interrupt controller binding
  ARM: OMAP2: Fix tusb6010 GPIO interrupt for n8x0
  ARM: OMAP2+: Fix MUSB ifdefs for platform init code
  ARM: tegra: make tegra_cpu_reset_handler_enable() __init
  ARM: OMAP: PM: Lock clocks list while generating summary
  ARM: iconnect: Remove include of removed linux/spi/orion_spi.h

13 years agoMerge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux
Linus Torvalds [Sun, 24 Jun 2012 17:57:15 +0000 (10:57 -0700)]
Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux

Pull drm fixes from Dave Airlie:
 "Nothing major in here, one radeon SI fix for tiling, and one uninit
  var fix, two minor header file fixes."

* 'drm-fixes' of git://people.freedesktop.org/~airlied/linux:
  drm: drop comment about this header being autogenerated.
  drm/edid: don't return stack garbage from supports_rb
  vga_switcheroo: Add include guard
  drm/radeon: SI tiling fixes for display

13 years agoMerge branches 'cma' and 'ocrdma' into for-linus
Roland Dreier [Sun, 24 Jun 2012 11:59:59 +0000 (04:59 -0700)]
Merge branches 'cma' and 'ocrdma' into for-linus

13 years agoARM: Orion: Fix Virtual/Physical mixup with watchdog
Andrew Lunn [Fri, 22 Jun 2012 06:54:02 +0000 (08:54 +0200)]
ARM: Orion: Fix Virtual/Physical mixup with watchdog

The orion watchdog is expecting to be passed the physcial address of
the hardware, and will ioremap() it to give a virtual address it will
use as the base address for the hardware. However, when creating the
platform resource record, a virtual address was being used.

Add the necassary #define's so we can pass the physical address as
expected.

Tested on Kirkwood and Orion5x.

Cc: stable <stable@vger.kernel.org>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Olof Johansson <olof@lixom.net>
13 years agoARM: Kirkwood: clk_register_gate_fn: add fn assignment
Marc Kleine-Budde [Fri, 22 Jun 2012 06:54:01 +0000 (08:54 +0200)]
ARM: Kirkwood: clk_register_gate_fn: add fn assignment

In commit:
    98d9986 ARM: Kirkwood: Replace clock gating
the kirkwood clock gating has been reworked. A custom variant of
clock gating, that calls a custom function before gating the clock
off, has been introduced. However in clk_register_gate_fn() this
custom function "fn" is never assigned.

This patch adds the missing fn assignment.

Cc: stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@blackshift.org>
Tested-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Olof Johansson <olof@lixom.net>
13 years agoARM: Orion5x - Restore parts of io.h, with rework
Andrew Lunn [Fri, 22 Jun 2012 18:57:57 +0000 (20:57 +0200)]
ARM: Orion5x - Restore parts of io.h, with rework

Commit 4d5fc58dbe34b78157c05b319669bb3e064ba8bd (ARM: remove bunch of
now unused mach/io.h files) removed the orion5x io.h. Unfortunately,
this is still needed for the definition of IO_SPACE_LIMIT which
overrides the default 64K. All Orion based systems have 1Mbyte of IO
space per PCI[e] bus, and try to request_resource() this size. Orion5x
has two such PCI buses.

It is likely that the original, removed version, was broken. This
version might be less broken. However, it has not been tested on
hardware with a PCI card, let alone hardware with a PCI card with IO
capabilities.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
13 years agoMerge tag 'omap-fixes-a-for-3.5rc' of git://git.kernel.org/pub/scm/linux/kernel/git...
Olof Johansson [Sat, 23 Jun 2012 23:16:29 +0000 (16:16 -0700)]
Merge tag 'omap-fixes-a-for-3.5rc' of git://git./linux/kernel/git/pjw/omap-pending into fixes

From Paul Walmsley (as per Tony Lindgren's request):
 "Some uncontroversial OMAP clock, hwmod, and compiler warning fixes for 3.5-rc"

* tag 'omap-fixes-a-for-3.5rc' of git://git.kernel.org/pub/scm/linux/kernel/git/pjw/omap-pending:
  ARM: OMAP4: hwmod data: Force HDMI in no-idle while enabled
  ARM: OMAP2+: mux: fix sparse warning
  ARM: OMAP2+: CM: increase the module disable timeout
  ARM: OMAP4: clock data: add clockdomains for clocks used as main clocks
  ARM: OMAP4: hwmod data: fix 32k sync timer idle modes
  ARM: OMAP4+: hwmod: fix issue causing IPs not going back to Smart-Standby
  ARM: OMAP: PM: Lock clocks list while generating summary

13 years agoMerge tag 'omap-fixes-for-v3.5-rc3' of git://git.kernel.org/pub/scm/linux/kernel...
Olof Johansson [Sat, 23 Jun 2012 23:11:50 +0000 (16:11 -0700)]
Merge tag 'omap-fixes-for-v3.5-rc3' of git://git./linux/kernel/git/tmlind/linux-omap into fixes

From Tony Lindgren:
"Here are a few fixes with the biggest one being fix for Beagle DVI
 reset. All of them are regression fixes, except for the missing omap2
 interrupt controller binding that somehow got missed earlier."

* tag 'omap-fixes-for-v3.5-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap:
  ARM: OMAP: Fix Beagleboard DVI reset gpio
  arm/dts: OMAP2: Fix interrupt controller binding
  ARM: OMAP2: Fix tusb6010 GPIO interrupt for n8x0
  ARM: OMAP2+: Fix MUSB ifdefs for platform init code

13 years agoMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph...
Linus Torvalds [Sat, 23 Jun 2012 00:47:08 +0000 (17:47 -0700)]
Merge branch 'for-linus' of git://git./linux/kernel/git/sage/ceph-client

Pull Ceph fixes from Sage Weil:
 "There are a couple of fixes from Yan for bad pointer dereferences in
  the messenger code and when fiddling with page->private after page
  migration, a fix from Alex for a use-after-free in the osd client
  code, and a couple fixes for the message refcounting and shutdown
  ordering."

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client:
  libceph: flush msgr queue during mon_client shutdown
  rbd: Clear ceph_msg->bio_iter for retransmitted message
  libceph: use con get/put ops from osd_client
  libceph: osd_client: don't drop reply reference too early
  ceph: check PG_Private flag before accessing page->private

13 years agoMerge tag 'for-linus-Jun-21-2012' of git://oss.sgi.com/xfs/xfs
Linus Torvalds [Fri, 22 Jun 2012 18:07:55 +0000 (11:07 -0700)]
Merge tag 'for-linus-Jun-21-2012' of git://oss.sgi.com/xfs/xfs

Pull XFS fixes from Ben Myers:
 - Fix stale data exposure with unwritten extents
 - Fix a warning in xfs_alloc_vextent with ODEBUG
 - Fix overallocation and alignment of pages for xfs_bufs
 - Fix a cursor leak
 - Fix a log hang
 - Fix a crash related to xfs_sync_worker
 - Rename xfs log structure from struct log to struct xlog so we can use
   crash dumps effectively

* tag 'for-linus-Jun-21-2012' of git://oss.sgi.com/xfs/xfs:
  xfs: rename log structure to xlog
  xfs: shutdown xfs_sync_worker before the log
  xfs: Fix overallocation in xfs_buf_allocate_memory()
  xfs: fix allocbt cursor leak in xfs_alloc_ag_vextent_near
  xfs: check for stale inode before acquiring iflock on push
  xfs: fix debug_object WARN at xfs_alloc_vextent()
  xfs: xfs_vm_writepage clear iomap_valid when !buffer_uptodate (REV2)

13 years agoMerge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
Linus Torvalds [Fri, 22 Jun 2012 17:58:57 +0000 (10:58 -0700)]
Merge branch 'perf-urgent-for-linus' of git://git./linux/kernel/git/tip/tip

Pull perf updates from Ingo Molnar.

* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  ftrace: Make all inline tags also include notrace
  perf: Use css_tryget() to avoid propping up css refcount
  perf tools: Fix synthesizing tracepoint names from the perf.data headers
  perf stat: Fix default output file
  perf tools: Fix endianity swapping for adds_features bitmask

13 years agoARM: OMAP3: PM: Remove IO Daisychain control from cpuidle
Vishwanath BS [Wed, 2 May 2012 08:44:40 +0000 (02:44 -0600)]
ARM: OMAP3: PM: Remove IO Daisychain control from cpuidle

As IO Daisy chain sequence is triggered via hwmod mux, there is no need to
control it from cpuidle path for OMAP3.

Also as omap3_disable_io_chain is no longer being used, just remove the
function.

Signed-off-by: Vishwanath BS <vishwanath.bs@ti.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Reviewed-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
13 years agoARM: OMAP3PLUS: hwmod: reconfigure IO Daisychain during hwmod mux
Vishwanath BS [Fri, 22 Jun 2012 14:40:04 +0000 (08:40 -0600)]
ARM: OMAP3PLUS: hwmod: reconfigure IO Daisychain during hwmod mux

IO Daisychain feature has to be triggered whenever there is a change in
device's mux configuration (See section 3.9.4 in OMAP4 Public TRM vP).

Now devices can idle independent of the powerdomain, there can be a
window where device is idled and corresponding powerdomain can be
ON/INACTIVE state. In such situations, since both module wake up is
enabled at padlevel as well as io daisychain sequence is triggered,
there will be 2 PRCM interrupts (Module async wake up via swakeup and
IO Pad interrupt). But as PRCM Interrupt handler clears the Module
Padlevel WKST bit in the first interrupt, module specific interrupt
handler will not triggered for the second time

Also look at detailed explanation given by Rajendra at
http://www.spinics.net/lists/linux-serial/msg04480.html

Signed-off-by: Vishwanath BS <vishwanath.bs@ti.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Reviewed-by: Rajendra Nayak <rnayak@ti.com>
[paul@pwsan.com: remove dependency on pm.c & pm.h; add kerneldoc]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
13 years agoARM: OMAP3+: PRM: Enable IO wake up
Tero Kristo [Fri, 22 Jun 2012 14:40:03 +0000 (08:40 -0600)]
ARM: OMAP3+: PRM: Enable IO wake up

Enable IO Wake up for OMAP3/4 as part of PRM Init. Currently this has been
managed in cpuidle path which is not the right place. Subsequent patch
will remove IO Daisy chain handling in cpuidle path once daisy chain is
handled as part of hwmod mux. This patch also moves the OMAP4 IO wakeup
enable code from the trigger function to init time setup.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Reviewed-by: Rajendra Nayak <rnayak@ti.com>
[paul@pwsan.com: harmonize function names with other PRM functions; add
 kerneldoc; resolve checkpatch warnings]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
13 years agoARM: OMAP4: PRM: Add IO Daisychain support
Rajendra Nayak [Fri, 22 Jun 2012 14:40:03 +0000 (08:40 -0600)]
ARM: OMAP4: PRM: Add IO Daisychain support

IO daisychain is a mechanism that allows individual IO pads to generate
wakeup events on their own based on a switch of an input signal level.
This allows the hardware module behind the pad to be powered down, but
still have device level capability to detect IO events, and once this
happens the module can be powered back up to resume IO. See section
3.9.4 in OMAP4430 Public TRM for details.

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Vishwanath BS <vishwanath.bs@ti.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
[paul@pwsan.com: use the shared MAX_IOPAD_LATCH_TIME declaration; renamed
 omap4_trigger_io_chain() to conform to other PRM function names;
 added kerneldoc; resolved checkpatch warnings]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
13 years agoARM: OMAP3: PM: Move IO Daisychain function to omap3 prm file
Vishwanath BS [Fri, 22 Jun 2012 14:40:02 +0000 (08:40 -0600)]
ARM: OMAP3: PM: Move IO Daisychain function to omap3 prm file

Since IO Daisychain modifies only PRM registers, it makes sense to move
it to PRM File. Also changed the timeout value for IO chain enable to
100us and added a wait for status disable at the end.

Thanks to Nishanth Menon <nm@ti.com> for contributing a fix to the
timeout code waiting for WUCLKOUT to go high.

Signed-off-by: Vishwanath BS <vishwanath.bs@ti.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Cc: Nishanth Menon <nm@ti.com>
Reviewed-by: Rajendra Nayak <rnayak@ti.com>
[paul@pwsan.com: renamed omap3_trigger_io_chain() to better describe the
 end result and to match other PRM functions; removed
 omap3_disable_io_chain(); moved MAX_IOPAD_LATCH_TIME to prcm-common as it
 will also be used by the OMAP4 code; removed unnecessary barrier;
 added kerneldoc; added credit for fix from Nishanth]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
13 years agoARM: OMAP3: PM: correct enable/disable of daisy io chain
Mohan V [Fri, 22 Jun 2012 14:40:02 +0000 (08:40 -0600)]
ARM: OMAP3: PM: correct enable/disable of daisy io chain

Currently the enabling and disabling of IO Daisy chain is not
according to the TRM. The below steps are followed to enable/
disable the IO chain, based loosely on the "Sec 3.5.7.2.2
I/O Wake-Up Mechanism" section in OMAP3630 Public TRM[1].

Steps to enable IO chain:
[a] Set PM_WKEN_WKUP.EN_IO bit
[b] Set the PM_WKEN_WKUP.EN_IO_CHAIN bit
[c] Poll for PM_WKST_WKUP.ST_IO_CHAIN.
[d] When ST_IO_CHAIN bit set to 1, clear PM_WKEN_WKUP.EN_IO_CHAIN
[e] Clear ST_IO_CHAIN bit.

Steps to disable IO chain:
[a] Clear PM_WKEN_WKUP.EN_IO_CHAIN bit
[b] Clear PM_WKEN_WKUP.EN_IO bit
[c] Clear PM_WKST_WKUP.ST_IO bit by writing 1 to it.

Step [e] & [c] in each case can be skipped, as these are handled
by the PRCM interrupt handler later.

[1] http://focus.ti.com/pdfs/wtbu/OMAP36xx_ES1.x_PUBLIC_TRM_vV.zip

Signed-off-by: Mohan V <mohanv@ti.com>
Signed-off-by: Vishwanath BS <vishwanath.bs@ti.com>
[paul@pwsan.com: modified commit message to clarify that these steps are
 based loosely on the TRM section, rather than documented exactly]
Reviewed-by: Rajendra Nayak <rnayak@ti.com>
[paul@pwsan.com: resolved new warnings from checkpatch]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
13 years agoARM: OMAP2+: PRM: fix compile for OMAP4-only build
Kevin Hilman [Fri, 22 Jun 2012 14:40:02 +0000 (08:40 -0600)]
ARM: OMAP2+: PRM: fix compile for OMAP4-only build

For OMAP4 only builds, the omap2_prm_* functions have dummy wrappers
to detect incorrect usage.  However, several unrelated omap3 PRM
functions have made it inside the #else clause of the #ifdef wrapping
the omap2_prm stubs, causing them to disappear on OMAP4-only builds.

This was unnoticed until the IO chain support was added and introduced
a new function in this section which is referenced by omap_hwmod.c:

arch/arm/mach-omap2/omap_hwmod.c: In function '_reconfigure_io_chain':
arch/arm/mach-omap2/omap_hwmod.c:1665:3: error: implicit declaration of function 'omap3xxx_prm_reconfigure_io_chain' [-Werror=implicit-function-declaration]

Fix by using the #ifdef to only wrap the omap2_prm functions that
need stubs on OMAP4-only builds.

Cc: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
[paul@pwsan.com: fixed checkpatch warnings for patch description]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
13 years agodrm: drop comment about this header being autogenerated.
Dave Airlie [Fri, 22 Jun 2012 10:04:55 +0000 (11:04 +0100)]
drm: drop comment about this header being autogenerated.

This comment is well out of date.

Signed-off-by: Dave Airlie <airlied@redhat.com>
13 years agoMerge tag 'omap-fixes-a-for-3.5rc' of git://git.kernel.org/pub/scm/linux/kernel/git...
Tony Lindgren [Fri, 22 Jun 2012 09:10:29 +0000 (02:10 -0700)]
Merge tag 'omap-fixes-a-for-3.5rc' of git://git./linux/kernel/git/pjw/omap-pending

Some uncontroversial OMAP clock, hwmod, and compiler warning fixes for 3.5-rc