Re: [PATCH 0/14] Remove sysdev suspend/resume and shutdown operations

2011-04-18 Thread Greg KH
On Sun, Apr 17, 2011 at 11:01:53PM +0200, Rafael J. Wysocki wrote: Hi, The following series of patches fixes bugs related to the introduction of struct syscore_ops later in this cycle, replaces sysdev suspend/resume operations in all of the architectures still using them with struct

Re: [RFC PATCH] Consolidate SRAM support

2011-04-18 Thread Tony Lindgren
* Russell King - ARM Linux li...@arm.linux.org.uk [110416 16:06]: On Sat, Apr 16, 2011 at 09:01:26PM +0800, Haojian Zhuang wrote: On Fri, Apr 15, 2011 at 9:06 PM, Russell King - ARM Linux This uses the physical address, and unlike Davinci's dma address usage, it always wants to have

[PATCH v2] ARM: omap2: mtd split nand_scan in ident and tail

2011-04-18 Thread Jan Weitzel
nand_scan calls nand_scan_tail and here we got a ecc.layout and calculate oobavail for this layout. After calling nand_scan, we change the layout pointer if OMAP_ECC_HAMMING_CODE_HW_ROMCODE is set. This results in not calcluated oobavail. Mountig as jffs2 is not possible. To fix that nand_scan

Re: [PATCH v2] ARM: omap2: mtd split nand_scan in ident and tail

2011-04-18 Thread Vimal Singh
On Mon, Apr 18, 2011 at 12:20 PM, Jan Weitzel j.weit...@phytec.de wrote: nand_scan calls nand_scan_tail and here we got a ecc.layout and calculate oobavail for this layout. After calling nand_scan, we change the layout pointer if OMAP_ECC_HAMMING_CODE_HW_ROMCODE is set. This results in not

Re: [RFC PATCH] Consolidate SRAM support

2011-04-18 Thread Tomi Valkeinen
On Mon, 2011-04-18 at 09:48 +0300, Tony Lindgren wrote: * Russell King - ARM Linux li...@arm.linux.org.uk [110416 16:06]: On Sat, Apr 16, 2011 at 09:01:26PM +0800, Haojian Zhuang wrote: On Fri, Apr 15, 2011 at 9:06 PM, Russell King - ARM Linux This uses the physical address, and

Re: [PATCH v2] OMAP: iovmm: fix SW flags passed by user

2011-04-18 Thread Hiroshi DOYU
From: ext Ramirez Luna, Omar omar.rami...@ti.com Subject: Re: [PATCH v2] OMAP: iovmm: fix SW flags passed by user Date: Fri, 15 Apr 2011 10:49:42 -0500 Hi Hiroshi, On Fri, Mar 25, 2011 at 3:04 PM, Omar Ramirez Luna omar.rami...@ti.com wrote: Commit d038aee24dcd5a2a0d8547f5396f67ae9698ac8e

[GIT PULL] OMAP DSS fixes for 39 rc

2011-04-18 Thread Tomi Valkeinen
Hi Paul, Here are a few OMAP DSS fixes for the next rc. Tomi The following changes since commit a6360dd37e1a144ed11e6548371bade559a1e4df: Linux 2.6.39-rc3 (2011-04-11 17:21:51 -0700) are available in the git repository at: git://gitorious.org/linux-omap-dss2/linux.git for-paul-39-rc

Re: [PATCH] OMAP: iommu flush page table entries from L1 and L2 cache

2011-04-18 Thread Arnd Bergmann
On Friday 15 April 2011, Russell King - ARM Linux wrote: On Thu, Apr 14, 2011 at 04:52:48PM -0500, Fernando Guzman Lugo wrote: From: Ramesh Gupta grgu...@ti.com This patch is to flush the iommu page table entries from L1 and L2 caches using dma_map_single. This also simplifies the

Re: [RFC PATCH] Consolidate SRAM support

2011-04-18 Thread Tony Lindgren
* Tomi Valkeinen tomi.valkei...@ti.com [110418 09:57]: On Mon, 2011-04-18 at 09:48 +0300, Tony Lindgren wrote: * Russell King - ARM Linux li...@arm.linux.org.uk [110416 16:06]: On Sat, Apr 16, 2011 at 09:01:26PM +0800, Haojian Zhuang wrote: On Fri, Apr 15, 2011 at 9:06 PM, Russell King -

Re: [GIT PULL] OMAP DSS fixes for 39 rc

2011-04-18 Thread Paul Mundt
On Mon, Apr 18, 2011 at 10:12:41AM +0300, Tomi Valkeinen wrote: Here are a few OMAP DSS fixes for the next rc. Pulled and pushed out, thanks. -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [PATCH 2/14] PM: Add missing syscore_suspend() and syscore_resume() calls

2011-04-18 Thread Ian Campbell
On Sun, 2011-04-17 at 23:06 +0200, Rafael J. Wysocki wrote: From: Rafael J. Wysocki r...@sisk.pl Device suspend/resume infrastructure is used not only by the suspend and hibernate code in kernel/power, but also by , APM, Xen and the kexec jump feature. However, commit

Re: [RFC PATCH v2] Consolidate SRAM support

2011-04-18 Thread Russell King - ARM Linux
This is the second revision of this patch. I've not moved it out of ARM yet as I haven't had a positive response from SH yet. It's now called pv_pool (for phys/virt pool) rather than sram_pool, and I've included MXC's iram support in this. Hopefully, if OMAP can remove the FB stuff from SRAM we

Re: [PATCH] Fixed gpio polarity of gpio USB-phy reset.

2011-04-18 Thread Samuel Ortiz
Hi Juergen, On Thu, Apr 14, 2011 at 09:31:43AM +0200, Juergen Kilb wrote: With commit 19403165 a main part of ehci-omap.c moved to drivers/mfd/omap-usb-host.c created by commit 17cdd29d. Due to this reorganisation the polarity used to reset the external USB phy changed and USB host doesn't

Re: [RFC PATCH v2] Consolidate SRAM support

2011-04-18 Thread Haojian Zhuang
On Mon, Apr 18, 2011 at 4:52 PM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: This is the second revision of this patch.  I've not moved it out of ARM yet as I haven't had a positive response from SH yet. It's now called pv_pool (for phys/virt pool) rather than sram_pool, and I've

Re: [PATCH v2] OMAP2PLUS: DSS2: Clean up omap_display_init()

2011-04-18 Thread Tomi Valkeinen
On Mon, 2011-04-18 at 09:32 +0530, Archit Taneja wrote: Currently, omap_display_init() maintains arrays for hwmod name(oh_name) and the correspnding platform_device name(dev_name) needed by omap_device_build(). A variable oh_count keeps a track of the number of devices to build from oh_name

Re: [PATCH 10/14] PM / MIPS: Use struct syscore_ops instead of sysdevs for PM

2011-04-18 Thread Ralf Baechle
This patch breaks the Alchemy kernel compile; below patch on top of it fixes that again. Signed-off-by: Ralf Baechle r...@linux-mips.org --- arch/mips/alchemy/common/irq.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: linux-mips/arch/mips/alchemy/common/irq.c

Re: [PATCH] OMAP: iommu flush page table entries from L1 and L2 cache

2011-04-18 Thread Tony Lindgren
* Arnd Bergmann a...@arndb.de [110418 10:26]: On Friday 15 April 2011, Russell King - ARM Linux wrote: On Thu, Apr 14, 2011 at 04:52:48PM -0500, Fernando Guzman Lugo wrote: From: Ramesh Gupta grgu...@ti.com This patch is to flush the iommu page table entries from L1 and L2 caches

Re: [PATCH 0/2] OMAP: convert boards that use SMSC911x to use gpmc-smsc911x

2011-04-18 Thread Tony Lindgren
* Mike Rapoport m...@compulab.co.il [110417 01:21]: There are several OMAP boards that use SMSC911x Ethernet controller. Convert them all to use gpmc-smsc911x for device registration. Mike Rapoport (2): OMAP: gpmc-smsc911x: always set irq flags to IORESOURCE_IRQ_LOWLEVEL OMAP: convert

Re: [RFC PATCH v2] Consolidate SRAM support

2011-04-18 Thread Tony Lindgren
* Russell King - ARM Linux li...@arm.linux.org.uk [110418 11:50]: This is the second revision of this patch. I've not moved it out of ARM yet as I haven't had a positive response from SH yet. It's now called pv_pool (for phys/virt pool) rather than sram_pool, and I've included MXC's iram

Re: [PATCH] OMAP: iommu flush page table entries from L1 and L2 cache

2011-04-18 Thread Arnd Bergmann
On Monday 18 April 2011, Tony Lindgren wrote: * Arnd Bergmann a...@arndb.de [110418 10:26]: On Friday 15 April 2011, Russell King - ARM Linux wrote: On Thu, Apr 14, 2011 at 04:52:48PM -0500, Fernando Guzman Lugo wrote: From: Ramesh Gupta grgu...@ti.com This patch is to flush the

Re: Can i submit BN Nook Color generic kernel support patches?

2011-04-18 Thread Tony Lindgren
* Kevin Hilman khil...@ti.com [110408 17:27]: Hello, Abimanyu Gottumukkala m...@abimanyu.in writes: I am working on porting BN Nook color source to generic kernel (non Android). Can i submit my ported code to omap-linux git? Absolutely! Support for new platforms is always welcome.

Re: [PATCH v9 4/9] OMAP3: PM: TWL4030 power scripts for OMAP3 boards

2011-04-18 Thread Tony Lindgren
Hi, * Lesly A M lesl...@ti.com [110414 15:25]: Power bus message sequence for TWL4030 to enter sleep/wakeup/warm_reset. TWL4030 power scripts which can be used by different OMAP3 boards with the power companion chip (TWL4030 series). The twl4030 generic script can be used by any board

OMAP3530 serial hang

2011-04-18 Thread Mario Demontis
Hello I'm using Embest Devkit8000 with 2.6.37 kernel and I'm experiencing issues with serial port. I have a modem (gprs8000) attached to /dev/ttyO0 and during operation it randomly freezes (sometimes I have to wait long time, say, about 1-2 hours). After the freeze I cannot use that port

Re: [PATCH v9 4/9] OMAP3: PM: TWL4030 power scripts for OMAP3 boards

2011-04-18 Thread Manuel, Lesly Arackal
Hi Tony, On Mon, Apr 18, 2011 at 6:02 PM, Tony Lindgren t...@atomide.com wrote: Hi, * Lesly A M lesl...@ti.com [110414 15:25]: Power bus message sequence for TWL4030 to enter sleep/wakeup/warm_reset. TWL4030 power scripts which can be used by different OMAP3 boards with the power companion

Re: [PATCH] OMAP: iommu flush page table entries from L1 and L2 cache

2011-04-18 Thread Kyungmin Park
On Mon, Apr 18, 2011 at 8:58 PM, Arnd Bergmann a...@arndb.de wrote: On Monday 18 April 2011, Tony Lindgren wrote: * Arnd Bergmann a...@arndb.de [110418 10:26]: On Friday 15 April 2011, Russell King - ARM Linux wrote: On Thu, Apr 14, 2011 at 04:52:48PM -0500, Fernando Guzman Lugo wrote:

Re: [PATCH v9 4/9] OMAP3: PM: TWL4030 power scripts for OMAP3 boards

2011-04-18 Thread Tony Lindgren
* Manuel, Lesly Arackal lesl...@ti.com [110418 15:52]: To me it seems this should go into drivers/mfd instead. The script may contain omap specific values, but can be a loadable driver module. - subsys_initcall(twl_init) - twl_probe() - twl4030_power_init() -

Re: [PATCH] OMAP: iommu flush page table entries from L1 and L2 cache

2011-04-18 Thread Arnd Bergmann
On Monday 18 April 2011, Hiroshi DOYU wrote: From: ext Tony Lindgren t...@atomide.com have a generic replacement for this code we should start using it. I'm afraid that there's no general IOMMU APIs yet, or already? If there is, migrating to those general IOMMU API is the way, but still

Re: [PATCH] OMAP: iommu flush page table entries from L1 and L2 cache

2011-04-18 Thread Arnd Bergmann
On Monday 18 April 2011, Kyungmin Park wrote: On Mon, Apr 18, 2011 at 8:58 PM, Arnd Bergmann a...@arndb.de wrote: One missing piece is still a way for a platform to provide both the iommu and the dma-mapping API in a unified driver. Right now, you have to export both interface for a

Re: Status of arch/arm in linux-next

2011-04-18 Thread Tony Lindgren
* Mark Brown broo...@opensource.wolfsonmicro.com [110418 16:54]: On Mon, Apr 18, 2011 at 11:10:52AM +0300, Tony Lindgren wrote: * Mark Brown broo...@opensource.wolfsonmicro.com [110416 19:54]: ...this is the negative side of the message - what we're not willing to accept. What's the

[PATCH 5/7] OMAP2+: GPIO: make workaround_enabled bank specific

2011-04-18 Thread Varadarajan, Charulatha
From: Charulatha V ch...@ti.com Make workaround_enabled flag bank-specific instead of using a single flag for all the banks together. This would be helpful while making use of runtime framework in OMAP GPIO driver which would make the driver handle each GPIO bank independently. Also rename

[v2 0/7] OMAP: GPIO: Use PM runtime framework

2011-04-18 Thread Varadarajan, Charulatha
From: Charulatha V ch...@ti.com Use PM runtime framework in OMAP GPIO driver. Patch series is based on mainline rc3 following commit commit a1b49cb7e2a7961ec3aa8b64860bf480d4ec9077 Merge branch 'i2c-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging Changes in

[PATCH 2/7] OMAP: GPIO: Use flag to identify wkup dmn GPIO

2011-04-18 Thread Varadarajan, Charulatha
From: Charulatha V ch...@ti.com In omap3, save/restore context is implemented for GPIO banks 2-6 as GPIO bank1 is in wakeup domain. Instead of identifying bank's power domain by bank id, make use of a flag losses_context which is filled by pwrdm_can_ever_lose_context() during dev_init. For

[PATCH 3/7] OMAP4: GPIO: Save/restore context

2011-04-18 Thread Varadarajan, Charulatha
From: Charulatha V ch...@ti.com Modify the omap_gpio_save/restore_context to support OMAP4 architecture so that the OMAP GPIO driver need not be modified when OMAP4 off mode support is available. Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/plat-omap/gpio.c | 131

[PATCH 1/7] OMAP: GPIO: Make gpio_context part of gpio_bank structure

2011-04-18 Thread Varadarajan, Charulatha
From: Charulatha V ch...@ti.com gpio_context array, which is used to save gpio bank's context, is used only for OMAP3 architecture. Move gpio_context as part of gpio_bank structure so that it can be specific to each gpio bank and can be used for any OMAP architecture TODO: extend the gpio

[PATCH 6/7] OMAP: GPIO: Cleanup prepare_for_idle/resume

2011-04-18 Thread Varadarajan, Charulatha
From: Charulatha V ch...@ti.com Use a function named gpio_bank_handle_idle() in omap_gpio_prepare_for_idle() to do the following: * debounce clock disable * if the next powerdomain state for the bank is off-mode: - remove triggering for all non-wakeup GPIOs (this is handled by a new

[PATCH 4/7] OMAP: GPIO: handle save/restore ctx in GPIO driver

2011-04-18 Thread Varadarajan, Charulatha
From: Charulatha V ch...@ti.com Modify omap_gpio_prepare_for_idle() omap_gpio_resume_after_idle() functions to handle save context restore context respectively in the OMAP GPIO driver itself instead of calling these functions from pm specific files. For this, in gpio_prepare_for_idle(), use

[PATCH 7/7] OMAP: GPIO: use PM runtime framework

2011-04-18 Thread Varadarajan, Charulatha
From: Charulatha V ch...@ti.com Call runtime pm APIs pm_runtime_get_sync() and pm_runtime_put_sync() for enabling/disabling the clocks, sysconfig settings and remove usage of clock FW APIs. Note: OMAP16xx OMAP2 has interface and functional clocks whereas OMAP3 4 has interface and debounce

Re: Status of arch/arm in linux-next

2011-04-18 Thread Mark Brown
On Mon, Apr 18, 2011 at 05:41:14PM +0300, Tony Lindgren wrote: * Mark Brown broo...@opensource.wolfsonmicro.com [110418 16:54]: I do think that a flat lines of code criterion isn't terribly helpful as it isn't *really* what we're trying to optimise and will needlessly peanalise newer

RE: [PATCH] arm: omap2: enable smc instruction for sleep34xx

2011-04-18 Thread Anderö, Oskar
(+ some extra CC's) Subject: [PATCH] arm: omap2: enable smc instruction for sleep34xx This fixes broken build when using gcc 4.5. Signed-off-by: Oskar Andero oskar.and...@sonyericsson.com --- arch/arm/mach-omap2/Makefile |2 +- 1 files changed, 1 insertions(+), 1 deletions(-)

RE: [RFC PATCH v2] Consolidate SRAM support

2011-04-18 Thread Nori, Sekhar
Hi Russell, On Mon, Apr 18, 2011 at 14:22:59, Russell King - ARM Linux wrote: This is the second revision of this patch. I've not moved it out of ARM yet as I haven't had a positive response from SH yet. I was able to test this on DaVinci (DA850 suspend-to-RAM) with the following additional

Re: [RFC PATCH v2] Consolidate SRAM support

2011-04-18 Thread Russell King - ARM Linux
On Mon, Apr 18, 2011 at 09:42:10PM +0530, Nori, Sekhar wrote: I was able to test this on DaVinci (DA850 suspend-to-RAM) with the following additional changes: There was a sram_free call remaining in pm.c file. Hmm, wonder why my build for DaVinci didn't pick that up. Thanks for that and

[PATCH v2 1/3] OMAP3: l3: fix for irq 10: nobody cared message

2011-04-18 Thread Omar Ramirez Luna
If an error occurs in the L3 on any other initiator than MPU, the interrupt goes unhandled given that the 'base' register was calculated with the initialized err_source value (which coincidentally points to MPU) and not with the actual source of the error. Removed parenthesis that are not needed

[PATCH v2 3/3] OMAP3/4: l3: minor cleanup for parenthesis and extra spaces

2011-04-18 Thread Omar Ramirez Luna
Removing extra lines, spaces and unneeded parenthesis. Collapsing an if statement to detect the type of error. l3_smx: - Fixing the message printed on error. So now: looks like: No Error Error seen...No Error seen... In-Band Error Error seen...

[PATCH v2 0/3] OMAP: l3: fixes and cleanup

2011-04-18 Thread Omar Ramirez Luna
Based on the comments received for the first patch: OMAP3: l3: fix for irq 10: nobody cared message[1], and quick skimming through the code. Although there are still parenthesis that are not needed because of operator precedence, they were left for clarity. E.g.: (error 32) 0x; clear =

[PATCH 1/3] cbus: tahvo: Fix build breakage caused by deprecated initializer removal

2011-04-18 Thread Jarkko Nikula
Use DEFINE_SPINLOCK() for static spinlock initialization as the commit d04fa5a locking: Remove deprecated lock initializers removes the deprecated SPIN_LOCK_UNLOCKED. Since tahvo_lock is not used elsewhere than tahvo.c it can be removed from tahvo.h too. Signed-off-by: Jarkko Nikula

[PATCH 2/3] cbus: retu: Fix build breakage caused by recent genirq commits

2011-04-18 Thread Jarkko Nikula
Convert retu.c to use updated irq function names after the genirq cleanup commits 0c6f8a8 genirq: Remove compat code and a0cd9ca genirq: Namespace cleanup. Signed-off-by: Jarkko Nikula jhnik...@gmail.com --- drivers/cbus/retu.c | 12 ++-- 1 files changed, 6 insertions(+), 6

[PATCH 3/3] omap: Fix board-nokia770.c and board-n8x0 cbus build breakage

2011-04-18 Thread Jarkko Nikula
Fix a build breakage in CBUS initialization code in Nokia 770 and N8x0 boards that appeared after commit 0c6f8a8 genirq: Remove compat code. Signed-off-by: Jarkko Nikula jhnik...@gmail.com --- Build breakage that is only in linux-omap-2.6/cbus branch. --- arch/arm/mach-omap1/board-nokia770.c |

Re: [PATCH 10/14] PM / MIPS: Use struct syscore_ops instead of sysdevs for PM

2011-04-18 Thread Rafael J. Wysocki
On Monday, April 18, 2011, Ralf Baechle wrote: This patch breaks the Alchemy kernel compile; below patch on top of it fixes that again. Signed-off-by: Ralf Baechle r...@linux-mips.org Thanks! If you don't mind, I'd like to fold your patch into [10/14]. Rafael ---

Re: [PATCH 9/14] PM / Blackfin: Use struct syscore_ops instead of sysdevs for PM

2011-04-18 Thread Rafael J. Wysocki
On Monday, April 18, 2011, Mike Frysinger wrote: On Sun, Apr 17, 2011 at 17:11, Rafael J. Wysocki wrote: Convert some Blackfin architecture's code to using struct syscore_ops objects for power management instead of sysdev classes and sysdevs. This simplifies the code and reduces the

Re: [RFC PATCH] Consolidate SRAM support

2011-04-18 Thread Linus Walleij
2011/4/15 Russell King - ARM Linux li...@arm.linux.org.uk: We have two SoCs using SRAM, both with their own allocation systems, and both with their own ways of copying functions into the SRAM. Let's unify this before we have additional SoCs re-implementing this obviously common functionality

Re: [PATCH 10/14] PM / MIPS: Use struct syscore_ops instead of sysdevs for PM

2011-04-18 Thread Lars-Peter Clausen
On 04/17/2011 11:12 PM, Rafael J. Wysocki wrote: From: Rafael J. Wysocki r...@sisk.pl Convert some MIPS architecture's code to using struct syscore_ops objects for power management instead of sysdev classes and sysdevs. This simplifies the code and reduces the kernel's memory footprint.