Re: [PATCH] ARM: OMAP2+: omap_twl: Change TWL4030_MODULE_PM_RECEIVER to TWL_MODULE_PM_RECEIVER

2012-11-15 Thread Peter Ujfalusi
Hi Tony, On 11/13/2012 10:32 AM, Peter Ujfalusi wrote: To facilitate upcoming cleanup in twl stack. No functional change. Would you please consider this patch for 3.8? It would shorten the time I'll need to progress on the cleanup regarding to twl-core greatly. Thank you, Péter

Re: [PATCHv2] i2c: omap: Move the remove constraint

2012-11-15 Thread Jean Pihet
Hi Shubhrajyoti, On Thu, Nov 15, 2012 at 8:34 AM, Shubhrajyoti D shubhrajy...@ti.com wrote: Currently we just queue the transfer and release the qos constraints, however we donot wait for the transfer Typo: donot to complete to release the constraint. Move the remove constraint after the bus

32kHz clock removal causes problems omap_hsmmc

2012-11-15 Thread Luciano Coelho
Hi, Since the 32KHz clock was removed from the twl-regulator (0e8e5c34 regulator: twl: Remove references to 32kHz clock from DT bindings), we've been having problems with our wl12xx chip that is connected through the omap_hsmmc. Our card simply doesn't get added to the system and we get lots of

[PATCHv3] i2c: omap: Move the remove constraint

2012-11-15 Thread Shubhrajyoti D
Currently we just queue the transfer and release the qos constraints, however we do not wait for the transfer to complete to release the constraint. Move the remove constraint after the bus busy as we are sure that the transfers are completed by then. Acked-by: Jean Pihet j-pi...@ti.com

Re: [PATCHv2] i2c: omap: Move the remove constraint

2012-11-15 Thread Shubhrajyoti Datta
On Thu, Nov 15, 2012 at 1:46 PM, Jean Pihet jean.pi...@newoldbits.com wrote: Hi Shubhrajyoti, On Thu, Nov 15, 2012 at 8:34 AM, Shubhrajyoti D shubhrajy...@ti.com wrote: Currently we just queue the transfer and release the qos constraints, however we donot wait for the transfer Typo: donot

Re: [PATCHv2] i2c: omap: Move the remove constraint

2012-11-15 Thread Jean Pihet
On Thu, Nov 15, 2012 at 9:51 AM, Shubhrajyoti Datta omaplinuxker...@gmail.com wrote: On Thu, Nov 15, 2012 at 1:46 PM, Jean Pihet jean.pi...@newoldbits.com wrote: Hi Shubhrajyoti, On Thu, Nov 15, 2012 at 8:34 AM, Shubhrajyoti D shubhrajy...@ti.com wrote: Currently we just queue the transfer

Re: [PATCH] ARM: add get_user() support for 8 byte types

2012-11-15 Thread Arnd Bergmann
On Tuesday 13 November 2012, Russell King - ARM Linux wrote: You're missing something; that is one of the greatest powers of open source. The many eyes (and minds) effect. Someone out there probably has a solution to whatever problem, the trick is to find that person. :) I think we have a

Re: [PATCH] ARM: Fix errata 751472 handling on Cortex-A9 r1p*

2012-11-15 Thread Russell King - ARM Linux
On Wed, Nov 14, 2012 at 02:21:59PM -0800, Tony Lindgren wrote: No idea if assuming that zero value for the diagnostic register is safe.. What's the default value of the diagnostic register supposed to be? No, that's not safe. What if your pre-kernel code has asked the secure monitor to set

Re: [PATCH 3/3] ASoC: OMAP: HDMI: Obtain DMA port from resources

2012-11-15 Thread Tomi Valkeinen
On 2012-11-15 04:33, Ricardo Neri wrote: Hi Mark, On 11/14/2012 05:08 PM, Mark Brown wrote: On Wed, Nov 14, 2012 at 11:07:09AM -0600, Ricardo Neri wrote: On 11/13/2012 09:27 PM, Mark Brown wrote: Presumably this needs some other corresponding change in the resource setup to go in

Re: [PATCH] i2c: omap: don't save a value only needed for read-clearing

2012-11-15 Thread Shubhrajyoti Datta
On Thu, Nov 15, 2012 at 12:20 AM, Wolfram Sang w.s...@pengutronix.de wrote: This makes one of my code analyzers happy and makes me a part of the anything open source which we could all be using ? :-) 'my' as in 'one of those I am using'. It was cppcheck which found that flaw. Its use for

Re: [PATCH v3] mtd: omap: nand: Remove 0xFF's that prefixed 16bit NAND addresses

2012-11-15 Thread Artem Bityutskiy
On Mon, 2012-10-29 at 15:51 -0400, Christopher Harvey wrote: In 16bit NAND mode the GPMC would send the address 0xNN as 0xFFNN instead of 0x00NN on the bus. The 0xFFs were actually uninitialized bits that were left unset in the GPMC command output register. The reason they weren't initialized

Re: [PATCH] ARM: Fix errata 751472 handling on Cortex-A9 r1p*

2012-11-15 Thread Catalin Marinas
On Thu, Nov 15, 2012 at 12:54:48AM +, Rob Herring wrote: On 11/14/2012 04:21 PM, Tony Lindgren wrote: * Rob Herring robherri...@gmail.com [121114 13:59]: On 11/14/2012 02:32 PM, Tony Lindgren wrote: Checking for the bit already set should work in this case, I'll post a patch for

Re: [PATCH 3/3] ASoC: OMAP: HDMI: Obtain DMA port from resources

2012-11-15 Thread Tomi Valkeinen
On 2012-11-15 11:45, Tomi Valkeinen wrote: On 2012-11-15 04:33, Ricardo Neri wrote: Hi Mark, On 11/14/2012 05:08 PM, Mark Brown wrote: On Wed, Nov 14, 2012 at 11:07:09AM -0600, Ricardo Neri wrote: On 11/13/2012 09:27 PM, Mark Brown wrote: Presumably this needs some other corresponding

Re: [PATCH] ARM: Fix errata 751472 handling on Cortex-A9 r1p*

2012-11-15 Thread Siarhei Siamashka
On Thu, Nov 15, 2012 at 1:01 PM, Catalin Marinas catalin.mari...@arm.com wrote: On Thu, Nov 15, 2012 at 12:54:48AM +, Rob Herring wrote: On 11/14/2012 04:21 PM, Tony Lindgren wrote: * Rob Herring robherri...@gmail.com [121114 13:59]: On 11/14/2012 02:32 PM, Tony Lindgren wrote:

Re: [PATCH] i2c: omap: don't save a value only needed for read-clearing

2012-11-15 Thread Felipe Balbi
Hi, On Thu, Nov 15, 2012 at 03:34:10PM +0530, Shubhrajyoti Datta wrote: On Thu, Nov 15, 2012 at 12:20 AM, Wolfram Sang w.s...@pengutronix.de wrote: This makes one of my code analyzers happy and makes me a part of the anything open source which we could all be using ? :-) 'my' as in

Re: [PATCH] ARM: add get_user() support for 8 byte types

2012-11-15 Thread Rob Clark
On Thu, Nov 15, 2012 at 3:19 AM, Arnd Bergmann a...@arndb.de wrote: On Tuesday 13 November 2012, Russell King - ARM Linux wrote: You're missing something; that is one of the greatest powers of open source. The many eyes (and minds) effect. Someone out there probably has a solution to

GCC 4.7 stops to compile the current git kernel

2012-11-15 Thread Igor Mazanov
Hello, After a conversion to common clock framework GCC 4.7 stops to compile the current kernel with the following error: CC arch/arm/mach-omap2/clockdomain.o In file included from arch/arm/mach-omap2/clockdomain.c:25:0: arch/arm/mach-omap2/clockdomain.c: In function

[PATCH] mfd: fix spelling of OMAP in Kconfig

2012-11-15 Thread Peter Meerwald
From: Peter Meerwald p.meerw...@bct-electronic.com Signed-off-by: Peter Meerwald p.meerw...@bct-electronic.com --- drivers/mfd/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig index acab3ef..a0fc8c0 100644 ---

Re: GCC 4.7 stops to compile the current git kernel

2012-11-15 Thread Felipe Balbi
Hi, On Thu, Nov 15, 2012 at 05:11:14PM +0400, Igor Mazanov wrote: Hello, After a conversion to common clock framework GCC 4.7 stops to compile the current kernel with the following error: CC arch/arm/mach-omap2/clockdomain.o In file included from

Re: [PATCH] ARM: Fix errata 751472 handling on Cortex-A9 r1p*

2012-11-15 Thread Russell King - ARM Linux
On Thu, Nov 15, 2012 at 02:41:43PM +0200, Siarhei Siamashka wrote: BTW, I always wondered about what could be preventing TI and the other silicon vendors from using something like an SMC API based on asymmetric cryptography? The answer is... nothing. But it didn't happen and we're stuck with

Re: [PATCH] ARM: add get_user() support for 8 byte types

2012-11-15 Thread Arnd Bergmann
On Thursday 15 November 2012, Rob Clark wrote: On Thu, Nov 15, 2012 at 3:19 AM, Arnd Bergmann a...@arndb.de wrote: On Tuesday 13 November 2012, Russell King - ARM Linux wrote: You're missing something; that is one of the greatest powers of open source. The many eyes (and minds) effect.

Re: [PATCH] ARM: add get_user() support for 8 byte types

2012-11-15 Thread Rob Clark
On Thu, Nov 15, 2012 at 7:39 AM, Arnd Bergmann a...@arndb.de wrote: On Thursday 15 November 2012, Rob Clark wrote: On Thu, Nov 15, 2012 at 3:19 AM, Arnd Bergmann a...@arndb.de wrote: On Tuesday 13 November 2012, Russell King - ARM Linux wrote: You're missing something; that is one of the

Re: [PATCH] ARM: Fix errata 751472 handling on Cortex-A9 r1p*

2012-11-15 Thread Catalin Marinas
On Thu, Nov 15, 2012 at 12:41:43PM +, Siarhei Siamashka wrote: On Thu, Nov 15, 2012 at 1:01 PM, Catalin Marinas catalin.mari...@arm.com wrote: On Thu, Nov 15, 2012 at 12:54:48AM +, Rob Herring wrote: On 11/14/2012 04:21 PM, Tony Lindgren wrote: * Rob Herring robherri...@gmail.com

Re: [PATCH 04/13] MFD/rtc/gpio: twl: No need to allocate bigger buffer for write

2012-11-15 Thread Linus Walleij
On Tue, Nov 13, 2012 at 9:28 AM, Peter Ujfalusi peter.ujfal...@ti.com wrote: Since the twl-core has been converted to use regmap it is no longer needed to allocate bigger buffer for data when writing to twl. CC: Grant Likely grant.lik...@secretlab.ca CC: Linus Walleij

Re: [PATCH] ARM: Fix errata 751472 handling on Cortex-A9 r1p*

2012-11-15 Thread Rob Herring
On 11/15/2012 05:01 AM, Catalin Marinas wrote: On Thu, Nov 15, 2012 at 12:54:48AM +, Rob Herring wrote: On 11/14/2012 04:21 PM, Tony Lindgren wrote: * Rob Herring robherri...@gmail.com [121114 13:59]: On 11/14/2012 02:32 PM, Tony Lindgren wrote: Checking for the bit already set should

[PATCH 00/16] OMAP USB Host cleanup

2012-11-15 Thread Roger Quadros
Hi, This patchset addresses the following - Avoid addressing clocks one by one by name and use a for loop + bunch of cleanups. - Get number of channels/ports dynamically either from revision register or from platform data. Avoids getting clocks that are not present. - Add OMAP5 and HSIC mode

[PATCH 01/16] mfd: omap-usb-tll: Avoid creating copy of platform data

2012-11-15 Thread Roger Quadros
Just a pointer to the platform data should suffice. Signed-off-by: Roger Quadros rog...@ti.com --- drivers/mfd/omap-usb-tll.c |9 - 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/mfd/omap-usb-tll.c b/drivers/mfd/omap-usb-tll.c index 4b7757b..d1750a4 100644 ---

[PATCH 03/16] mfd: omap-usb-tll: introduce and use mode_needs_tll()

2012-11-15 Thread Roger Quadros
This is a handy macro to check if the port requires the USB TLL module or not. Use it to Enable the TLL module and manage the clocks. Signed-off-by: Roger Quadros rog...@ti.com --- drivers/mfd/omap-usb-tll.c | 20 1 files changed, 12 insertions(+), 8 deletions(-) diff

[PATCH 05/16] mfd: omap-usb-tll: Add OMAP5 revision and HSIC support

2012-11-15 Thread Roger Quadros
The TLL module on OMAP5 has 3 channels. HSIC mode requires the TLL channel to be in Transparent UTMI mode. Signed-off-by: Roger Quadros rog...@ti.com --- drivers/mfd/omap-usb-tll.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/drivers/mfd/omap-usb-tll.c

[PATCH 10/16] mfd: omap-usb-host: Intialize all available ports

2012-11-15 Thread Roger Quadros
OMAPs till date can have upto 3 ports. We need to initialize the port mode in HOSTCONFIG register for all of them. Signed-off-by: Roger Quadros rog...@ti.com --- drivers/mfd/omap-usb-host.c | 31 --- 1 files changed, 12 insertions(+), 19 deletions(-) diff --git

[PATCH 13/16] mfd: omap-usb-host: Get rid of unnecessary spinlock

2012-11-15 Thread Roger Quadros
We don't really need a spinlock here, so get rid of it. Signed-off-by: Roger Quadros rog...@ti.com --- drivers/mfd/omap-usb-host.c | 16 1 files changed, 0 insertions(+), 16 deletions(-) diff --git a/drivers/mfd/omap-usb-host.c b/drivers/mfd/omap-usb-host.c index

[PATCH 15/16] ARM: OMAP4: omap4panda: Don't enable USB PHY clock from board

2012-11-15 Thread Roger Quadros
Instead of enabling the USB PHY clock in the board file we provide the PHY clock details to the driver via board platform data so that driver code can manage the clock. Signed-off-by: Roger Quadros rog...@ti.com --- arch/arm/mach-omap2/board-omap4panda.c | 14 +++--- 1 files changed, 3

[PATCH 16/16] ARM: OMAP: omap4panda: Power down the USB PHY and ETH when not in use

2012-11-15 Thread Roger Quadros
From: Andy Green andy.gr...@linaro.org This patch changes the management of the two GPIO for hub reset (actually controls enable of ULPI PHY and hub reset) and hub power (controls power to hub + eth). Because the only connection from the ULPI PHY output is to the hub+eth chip, there is no

[PATCH 14/16] mfd: omap-usb-host: Support an auxiliary clock per port

2012-11-15 Thread Roger Quadros
Boards like Panda require an auxiliary clock to clock the PHY that is connected to one of the USB ports. This patch enables board support code to provide the name and the rate of such a clock for each of the USB ports. omap-usb-host driver can then manage the clock. Signed-off-by: Roger Quadros

[PATCH 11/16] mfd: omap-usb-host: Manage HSIC clocks for HSIC mode

2012-11-15 Thread Roger Quadros
Enable the optional HSIC clocks (60MHz and 480MHz) for the ports that are configured in HSIC mode. Signed-off-by: Roger Quadros rog...@ti.com --- drivers/mfd/omap-usb-host.c | 56 +- 1 files changed, 54 insertions(+), 2 deletions(-) diff --git

[PATCH 12/16] ARM: OMAP2+: clock data: Merge utmi_px_gfclk into usb_host_hs_utmi_px_clk

2012-11-15 Thread Roger Quadros
There is no such clock as utmi_p1_gfclk. It is only a clock selector bit to select th the parent of usb_host_hs_utmi_p1_clk. So we get rid of utmi_p1_gfclk and utmi_p2_gfclk by merging them into usb_host_hs_utmi_p1_clk and usb_host_hs_utmi_p2_clk respectively. CC: Benoit Cousson b-cous...@ti.com

[PATCH 09/16] mfd: omap-usb-host: override number of ports from platform data

2012-11-15 Thread Roger Quadros
For some platforms e.g. OMAP5, we cannot rely on USBHOST revision to determine the number of ports available. In such cases we have to rely on platform data (or FDT) to give us the right number of ports. Signed-off-by: Roger Quadros rog...@ti.com --- arch/arm/mach-omap2/usb-host.c|1

[PATCH 08/16] mfd: omap-usb-host: know about number of ports from revision register

2012-11-15 Thread Roger Quadros
prevents getting clocks that don't exist on the platform. Signed-off-by: Roger Quadros rog...@ti.com --- drivers/mfd/omap-usb-host.c | 47 --- 1 files changed, 35 insertions(+), 12 deletions(-) diff --git a/drivers/mfd/omap-usb-host.c

[PATCH 06/16] mfd: omap-usb-host: cleanup clock management code

2012-11-15 Thread Roger Quadros
All ports have similarly named port clocks so we can bunch them into a port data structure and use for loop to enable/disable the clocks. Signed-off-by: Roger Quadros rog...@ti.com --- drivers/mfd/omap-usb-host.c | 208 +-- 1 files changed, 101

[PATCH 07/16] mfd: omap_usb_host: Avoid creating copy of platform_data

2012-11-15 Thread Roger Quadros
We can just hold the pointer to the platform data instead of creating a copy of it. Also get rid of the unnecessary missing platform data checks in runtime_suspend/resume. We are already checking for missing platform data in probe. Signed-off-by: Roger Quadros rog...@ti.com ---

[PATCH 02/16] mfd: omap-usb-tll: Clean up clock handling

2012-11-15 Thread Roger Quadros
Every channel has a functional clock that is similarly named. It makes sense to use a for loop to manage these clocks as OMAPs can come with upto 3 channels. Signed-off-by: Roger Quadros rog...@ti.com --- drivers/mfd/omap-usb-tll.c | 130 +--- 1 files

[PATCH 04/16] mfd: omap-usb-tll: Move port clock handling out of runtime ops

2012-11-15 Thread Roger Quadros
The port clocks are not required to access the port registers, they are only needed when the PORT is used. So we move the port clock handling code to omap_tll_enable/disable(). Also get of unnecessary spinlock code in probe function and check for missing platform data. Signed-off-by: Roger

Re: [PATCH] ARM: Fix errata 751472 handling on Cortex-A9 r1p*

2012-11-15 Thread Catalin Marinas
On Thu, Nov 15, 2012 at 02:31:33PM +, Rob Herring wrote: On 11/15/2012 05:01 AM, Catalin Marinas wrote: On Thu, Nov 15, 2012 at 12:54:48AM +, Rob Herring wrote: On 11/14/2012 04:21 PM, Tony Lindgren wrote: * Rob Herring robherri...@gmail.com [121114 13:59]: On 11/14/2012 02:32 PM,

Re: [PATCH] ARM: add get_user() support for 8 byte types

2012-11-15 Thread Arnd Bergmann
On Thursday 15 November 2012, Rob Clark wrote: I still haven't heard a conclusive argument why we need to use get_user() rather than copy_from_user() in the DRM code. Is this about a fast path where you want to shave off a few cycles for each call, or does this simplify the code structure,

Re: AM335x: Beaglebone stops to boot with current git kernel

2012-11-15 Thread Jean Pihet
Hi Tony, On Wed, Nov 14, 2012 at 6:51 PM, Tony Lindgren t...@atomide.com wrote: * Jean Pihet jean.pi...@newoldbits.com [121114 08:43]: The patch should change the name of the hwmod entry as well, can you fold this change in the current patch? This was caused by the merge of omap-for-v3.8/pm

Re: [PATCH v3] mtd: omap: nand: Remove 0xFF's that prefixed 16bit NAND addresses

2012-11-15 Thread Christopher Harvey
On Thu, Nov 15, 2012 at 01:02:09PM +0200, Artem Bityutskiy wrote: On Mon, 2012-10-29 at 15:51 -0400, Christopher Harvey wrote: In 16bit NAND mode the GPMC would send the address 0xNN as 0xFFNN instead of 0x00NN on the bus. The 0xFFs were actually uninitialized bits that were left unset in

[PATCH 0/4] Device tree support for OMAP USB Host

2012-11-15 Thread Roger Quadros
Provides a means for the OMAP USB host subsystem to be initialized from Device tree. This is a first step for device tree migration where we specify only the board specific stuff. Things like I/O address space and interrupts are not yet specified in the device tree but can be

[PATCH 1/4] ARM: OMAP: usb-host: Device tree support for USB Host

2012-11-15 Thread Roger Quadros
Provides a means for the OMAP USB host subsystem to be initialized from Device tree. This is a first step for device tree migration where we specify only the board specific stuff. Things like I/O address space and interrupts are not yet specified in the device tree but can be done as a next step.

[PATCH 3/4] ARM/dts: omap4-panda: Add USB Host support

2012-11-15 Thread Roger Quadros
Get USB Host working. On Panda, two GPIOs are used, one for HUB/PHY reset and other for Hub power. We model them as fixed regulators. The regulator for RESET is made to depend on regulator for Hub power so that the Hub power is enabled by the regulator framework before RESET is removed. Tested on

[PATCH 4/4] regulator: fixed: Properly use input_supply parameter from device tree

2012-11-15 Thread Roger Quadros
The device tree node will provide the input supply name as a string. Use that to populate the supply_name parameter of the regulator descriptor. Also correct the documentation to reflect the same. Signed-off-by: Roger Quadros rog...@ti.com CC: Laxman Dewangan ldewan...@nvidia.com CC: Mark Brown

[PATCH 2/4] ARM: OMAP4: USB: Add pin mux configuration for panda board

2012-11-15 Thread Roger Quadros
From: Keshava Munegowda keshava_mgo...@ti.com The port1 of omap4 panda board is used in ULPI PHY mode. The pin mux of usbhs (usbb1) port 1 is configured accordingly. Signed-off-by: Keshava Munegowda keshava_mgo...@ti.com --- arch/arm/boot/dts/omap4-panda.dts | 18 ++ 1 files

Re: [PATCH] ARM: OMAP4: hwmod data: ipu and dsp to use parent clocks instead of leaf clocks

2012-11-15 Thread Omar Ramirez Luna
Hi, On 14 November 2012 09:44, Paul Walmsley p...@pwsan.com wrote: Hi On Tue, 13 Nov 2012, Omar Ramirez Luna wrote: This prevents hwmod _enable_clocks...omap2_dflt_clk_enable path from enabling modulemode inside CLKCTRL using its clk-enable_reg field. Instead is left to

Re: [PATCH] ARM: Fix errata 751472 handling on Cortex-A9 r1p*

2012-11-15 Thread Måns Rullgård
Catalin Marinas catalin.mari...@arm.com writes: On Thu, Nov 15, 2012 at 12:41:43PM +, Siarhei Siamashka wrote: BTW, I always wondered about what could be preventing TI and the other silicon vendors from using something like an SMC API based on asymmetric cryptography? My understanding is

Re: [PATCH v3] mtd: omap: nand: Remove 0xFF's that prefixed 16bit NAND addresses

2012-11-15 Thread Artem Bityutskiy
On Thu, 2012-11-15 at 09:48 -0500, Christopher Harvey wrote: On Thu, Nov 15, 2012 at 01:02:09PM +0200, Artem Bityutskiy wrote: On Mon, 2012-10-29 at 15:51 -0400, Christopher Harvey wrote: In 16bit NAND mode the GPMC would send the address 0xNN as 0xFFNN instead of 0x00NN on the bus. The

[PATCH] remoteproc: fix error path of -find_vqs

2012-11-15 Thread Ohad Ben-Cohen
Eliminate an erroneous invocation of rproc_shutdown inside the error path of rproc_virtio_find_vqs. Reported-by: Ido Yariv i...@wizery.com Signed-off-by: Ohad Ben-Cohen o...@wizery.com --- drivers/remoteproc/remoteproc_virtio.c | 18 -- 1 file changed, 12 insertions(+), 6

Re: [PATCH] ARM: Fix errata 751472 handling on Cortex-A9 r1p*

2012-11-15 Thread Rob Herring
On 11/15/2012 08:37 AM, Catalin Marinas wrote: On Thu, Nov 15, 2012 at 02:31:33PM +, Rob Herring wrote: On 11/15/2012 05:01 AM, Catalin Marinas wrote: On Thu, Nov 15, 2012 at 12:54:48AM +, Rob Herring wrote: On 11/14/2012 04:21 PM, Tony Lindgren wrote: * Rob Herring

Re: [PATCH v3] mtd: omap: nand: Remove 0xFF's that prefixed 16bit NAND addresses

2012-11-15 Thread Christopher Harvey
On Thu, Nov 15, 2012 at 05:18:44PM +0200, Artem Bityutskiy wrote: On Thu, 2012-11-15 at 09:48 -0500, Christopher Harvey wrote: On Thu, Nov 15, 2012 at 01:02:09PM +0200, Artem Bityutskiy wrote: On Mon, 2012-10-29 at 15:51 -0400, Christopher Harvey wrote: In 16bit NAND mode the GPMC would

[PATCH 00/32] OMAPDSS: create compat layer

2012-11-15 Thread Tomi Valkeinen
Hi, This series is about improving omapdss API for omapdrm. We have two separate, exclusive, users of omapdss: 1) omapfb + omap_vout and 2) omapdrm. Because omapfb and omap_vout are independent drivers, we've built layers in omapdss to manage the two simultaneous callers. These layers are not

[PATCH 01/32] OMAPDSS: remove declarations for non-existing functions

2012-11-15 Thread Tomi Valkeinen
Remove dispc_mgr_is_channel_enabled() and dss_mgr_get_timings() declarations, as the function doesn't exist. Signed-off-by: Tomi Valkeinen tomi.valkei...@ti.com --- drivers/video/omap2/dss/dss.h |2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/video/omap2/dss/dss.h

[PATCH 02/32] OMAPDSS: DPI: fix crash with dpi_verify_dsi_pll()

2012-11-15 Thread Tomi Valkeinen
If the DSI support has not been compiled in or the SoC doesn't have DSI hardware, dpi_get_dsidev() returns NULL. This NULL is passed to dpi_verify_dsi_pll() causing a crash. The bug was added with commit 0e8276ef75f5c7811b038d1d23b2b42c16efc5ac (OMAPDSS: DPI: always use DSI PLL if available). Fix

[PATCH 03/32] OMAPDSS: don't WARN if there's no DSI device

2012-11-15 Thread Tomi Valkeinen
dsi_get_dsidev_from_id() gives a WARN if DSI support is not compiled in. This warning is not right, as it's valid to call dsi_get_dsidev_from_id() to see if there is DSI support or not. Remove the WARN(). Signed-off-by: Tomi Valkeinen tomi.valkei...@ti.com --- drivers/video/omap2/dss/dss.h |

[PATCH 04/32] OMAPDSS: DISPC: add no_framedone_tv feat

2012-11-15 Thread Tomi Valkeinen
OMAP2/3 do not have FRAMEDONETV irq, but later omaps do. We currently always return 0 from dispc_mgr_get_framedone_irq() for TV output to be compatible with OMAP2/3. This patch implements no_framedone_tv dispc-feature that is used in dispc_mgr_get_framedone_irq to return either 0 for OMAP2/3, or

[PATCH 06/32] OMAPDSS: DISPC: Remove blocking code from dispc_wb_enable()

2012-11-15 Thread Tomi Valkeinen
WB will not be used with compat-mode, i.e. from omapfb. This means we don't need the current complex dispc_wb_enable function, but can have a simple register write version of the function. This patch removes all the extra code from dispc_wb_enable() Signed-off-by: Tomi Valkeinen

[PATCH 07/32] OMAPDSS: cleanup WB enable/is_enabled functions

2012-11-15 Thread Tomi Valkeinen
Instead of doing direct register reads/writes, dispc_wb_enable() and dispc_wb_is_enabled() functions can use the common overlay functions to set and check the enable bit. Signed-off-by: Tomi Valkeinen tomi.valkei...@ti.com --- drivers/video/omap2/dss/dispc.c |4 ++-- 1 file changed, 2

[PATCH 05/32] OMAPDSS: DISPC: use get_framedone_irq in disable_digit_out

2012-11-15 Thread Tomi Valkeinen
dispc_mgr_disable_digit_out() needs to wait until the DIGIT output is turned off. This is done with either VSYNC irq on OMAP2/3 and FRAMEDONETV on OMAP4+. It currently uses a rather hacky way to decide what irq to use. This patch changes dispc_mgr_disable_digit_out to use

[PATCH 08/32] OMAPDSS: DISPC: use WARN_ON() in dispc_mgr_go

2012-11-15 Thread Tomi Valkeinen
dispc_mgr_go() should never be called with manager output disabled or if the GO bit is already set. Change the current silent returns to WARN_ONs. Signed-off-by: Tomi Valkeinen tomi.valkei...@ti.com --- drivers/video/omap2/dss/dispc.c | 16 ++-- 1 file changed, 2 insertions(+), 14

[PATCH 09/32] OMAPDSS: DISPC: pclk lclk rates for writeback

2012-11-15 Thread Tomi Valkeinen
Change the dispc_plane_pclk_rate and dispc_plane_lclk_rate functions to return 0 if the given plane is the writeback plane. The clocks are not valid for WB, but returning 0 from these functions instead of running into BUG() will simplify the code that uses these functions. Signed-off-by: Tomi

[PATCH 10/32] OMAPDSS: DISPC: pass pclk to calc_core_clk()

2012-11-15 Thread Tomi Valkeinen
In order to make the scaling calculations independent of the current hardware configuration (e.g. which manager is connected to this output), we need to change the calc funcs to get all the variables needed for the calculations via parameters. This patch changes calc_core_clk() function to get

[PATCH 11/32] OMAPDSS: DISPC: pass pclk lclk to check_horiz_timing_omap3

2012-11-15 Thread Tomi Valkeinen
In order to make the scaling calculations independent of the current hardware configuration (e.g. which manager is connected to this output), we need to change the calc funcs to get all the variables needed for the calculations via parameters. This patch changes check_horiz_timing_omap3() to get

[PATCH 12/32] OMAPDSS: DISPC: pass pclk lclk to calc_scaling

2012-11-15 Thread Tomi Valkeinen
In order to make the scaling calculations independent of the current hardware configuration (e.g. which manager is connected to this output), we need to change the calc funcs to get all the variables needed for the calculations via parameters. This patch changes calc_scaling to get pclk and lclk

[PATCH 13/32] OMAPDSS: DISPC: pass pclk lclk to dispc_ovl_calc_scaling

2012-11-15 Thread Tomi Valkeinen
In order to make the scaling calculations independent of the current hardware configuration (e.g. which manager is connected to this output), we need to change the calc funcs to get all the variables needed for the calculations via parameters. This patch changes dispc_ovl_calc_scaling to get pclk

[PATCH 14/32] OMAPDSS: create display-sysfs.c

2012-11-15 Thread Tomi Valkeinen
Move display sysfs related code from display.c to display-sysfs.c, for clarity. The sysfs code will only be used for compat mode. Signed-off-by: Tomi Valkeinen tomi.valkei...@ti.com --- drivers/video/omap2/dss/Makefile|3 +- drivers/video/omap2/dss/display-sysfs.c | 321

[PATCH 15/32] OMAPDSS: add dss_get_core_pdev()

2012-11-15 Thread Tomi Valkeinen
Add dss_get_core_pdev() which returns the platform device for dss core device. The following patches use the core pdev to register sysfs files in the compat code. Signed-off-by: Tomi Valkeinen tomi.valkei...@ti.com --- drivers/video/omap2/dss/core.c |5 + drivers/video/omap2/dss/dss.h |

[PATCH 16/32] OMAPDSS: add omapdss_compat_init()

2012-11-15 Thread Tomi Valkeinen
Add two new exported functions, omapdss_compat_init and omapdss_compat_uninit, which are to be used by omapfb, omap_vout to enable compatibility mode for omapdss. The functions are called by omapdss internally for now, and moved to other drivers later. The compatibility mode is implemented fully

[PATCH 17/32] OMAPDSS: move ovl ovl-mgr init to apply.c

2012-11-15 Thread Tomi Valkeinen
Overlay and overlay_manager structs will only be needed in the compat mode. This patch moves initialization of overlay and overlay_manager structs to apply.c, so that they are handled in omapdss_compat_init(). Signed-off-by: Tomi Valkeinen tomi.valkei...@ti.com ---

[PATCH 20/32] OMAPDSS: add manager ops

2012-11-15 Thread Tomi Valkeinen
The output drivers need some operations from the overlay managers, like enable and set_timings. These will affect the dispc registers, and need to be synchronized with the composition-side changes with overlays and overlay managers. We want to handle these calls in the apply.c in the

[PATCH 21/32] OMAPDSS: manage framedone irq with mgr ops

2012-11-15 Thread Tomi Valkeinen
Some of the output drivers need to handle FRAMEDONE interrupt from DISPC. This creates a direct dependency to dispc code, and we need to avoid this to make the compat code to work. Instead of the output drivers registering for dispc interrupts, we create new mgr-ops that are used to register a

[PATCH 23/32] OMAPDSS: move omap_dispc_wait_for_irq_interruptible_timeout to dispc-compat.c

2012-11-15 Thread Tomi Valkeinen
We have two functions to wait for a dispc interrupt: int omap_dispc_wait_for_irq_timeout(u32 irqmask, unsigned long timeout); int omap_dispc_wait_for_irq_interruptible_timeout(u32 irqmask, Of these, the former is not used at all, and can be removed. The latter is only used by the compat layer,

[PATCH 18/32] OMAPDSS: move ovl-mgr function setup to apply.c

2012-11-15 Thread Tomi Valkeinen
Most of the functions that are assigned to the fields in ovl-mgr struct are in apply.c. By moving the function pointer setup into apply.c we can make these functions static. Signed-off-by: Tomi Valkeinen tomi.valkei...@ti.com --- drivers/video/omap2/dss/apply.c | 58

[PATCH 22/32] OMAPDSS: move blocking mgr enable/disable to compat layer

2012-11-15 Thread Tomi Valkeinen
dispc_mgr_enable_sync and dispc_mgr_disable_sync are only used with the compat mode. Non-compat will use the simpler enable and disable functions. This patch moves the synchronous enable/disable code to the compat layer. A new file is created, dispc-compat.c, which contains low level dispc compat

[PATCH 24/32] OMAPDSS: move irq handling to dispc-compat

2012-11-15 Thread Tomi Valkeinen
The whole dispc irq handling system we currently have is only needed for compat layer, and thus can be moved from dispc.c to the compat layer. This is quite straigtforward, but we need to add new dispc functions to request and free the actual hardware irq: dispc_request_irq() and

[PATCH 25/32] OMAPDSS: DISPC: add dispc_ovl_check()

2012-11-15 Thread Tomi Valkeinen
This patch adds a new function, dispc_ovl_check(), which can be used to verify scaling configuration for an overlay. The function gets both the overlay and overlay manager as parameters, so that the caller does not need to configure the hardware before using this function. Signed-off-by: Tomi

[PATCH 26/32] OMAPDSS: DPI: use dispc's check_timings

2012-11-15 Thread Tomi Valkeinen
dpi.c uses dss_mgr_check_timings() to verify video timings, but that function is in the compat layer. Change dpi.c to use the dispc's check instead. Signed-off-by: Tomi Valkeinen tomi.valkei...@ti.com --- drivers/video/omap2/dss/dpi.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 27/32] OMAPDSS: move display sysfs init to compat layer

2012-11-15 Thread Tomi Valkeinen
Move creation of the sysfs files for displays to the compat layer. Signed-off-by: Tomi Valkeinen tomi.valkei...@ti.com --- drivers/video/omap2/dss/apply.c | 14 ++ drivers/video/omap2/dss/display.c |8 2 files changed, 14 insertions(+), 8 deletions(-) diff --git

[PATCH 28/32] OMAPDSS: separate compat files in the Makefile

2012-11-15 Thread Tomi Valkeinen
Separate the core DSS files and compat layer files in the Makefile for clarity. Signed-off-by: Tomi Valkeinen tomi.valkei...@ti.com --- drivers/video/omap2/dss/Makefile |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/video/omap2/dss/Makefile

[PATCH 29/32] OMAPDSS: export dss_mgr_ops functions

2012-11-15 Thread Tomi Valkeinen
Export dss_mgr_ops related functions. Signed-off-by: Tomi Valkeinen tomi.valkei...@ti.com --- drivers/video/omap2/dss/dss.h| 30 -- drivers/video/omap2/dss/output.c |9 + include/video/omapdss.h | 29 + 3 files

[PATCH 30/32] OMAPDSS: export dss_feat functions

2012-11-15 Thread Tomi Valkeinen
Export dss_features related functions. Signed-off-by: Tomi Valkeinen tomi.valkei...@ti.com --- drivers/video/omap2/dss/dss_features.c |5 + drivers/video/omap2/dss/dss_features.h |4 include/video/omapdss.h|7 +++ 3 files changed, 12 insertions(+), 4

[PATCH 19/32] OMAPDSS: move ovl function setup to apply.c

2012-11-15 Thread Tomi Valkeinen
Most of the functions that are assigned to the fields in ovl struct are in apply.c. By moving the function pointer setup into apply.c we can make these functions static. Signed-off-by: Tomi Valkeinen tomi.valkei...@ti.com --- drivers/video/omap2/dss/apply.c | 37

[PATCH 31/32] OMAPDSS: export dispc functions

2012-11-15 Thread Tomi Valkeinen
Export DISPC functions. Signed-off-by: Tomi Valkeinen tomi.valkei...@ti.com --- drivers/video/omap2/dss/dispc.c | 23 +++ drivers/video/omap2/dss/dss.h | 36 +--- include/video/omapdss.h | 39

[PATCH 32/32] OMAPDSS: use omapdss_compat_init() in other drivers

2012-11-15 Thread Tomi Valkeinen
omapdss_compat_init() and omapdss_compat_uninit() is called internally by omapdss. This patch moves the calls to omapfb, omap_vout and omapdrm drivers. omapdrm driver can later remove the call after non-compat support has been implemented in omapdrm. Signed-off-by: Tomi Valkeinen

Re: [PATCH] ARM: Fix errata 751472 handling on Cortex-A9 r1p*

2012-11-15 Thread Catalin Marinas
On Thu, Nov 15, 2012 at 03:37:08PM +, Rob Herring wrote: On 11/15/2012 08:37 AM, Catalin Marinas wrote: On Thu, Nov 15, 2012 at 02:31:33PM +, Rob Herring wrote: Does that work for Versatile Express CA9? It needs ARM_ERRATA_751472. On VE Linux runs in secure mode, so it's fine.

[PATCH] mach-omap2/board-igep0020.c: Fix reboot problem

2012-11-15 Thread Matthias Brugger
When rebooting an OMAP3530 at 125 MHz, the reboot hangs. This patch adds a generic power save script, which resets the TWL4030 when a warm reset occures. This way the OMAP3530 does not hang on reboot. Signed-off-by: Matthias Brugger matthias@gmail.com --- arch/arm/mach-omap2/board-igep0020.c

Re: [PATCH 3/3] ASoC: OMAP: HDMI: Obtain DMA port from resources

2012-11-15 Thread Ricardo Neri
Hi Mark, On 11/14/2012 10:10 PM, Mark Brown wrote: On Wed, Nov 14, 2012 at 08:33:11PM -0600, Ricardo Neri wrote: On 11/14/2012 05:08 PM, Mark Brown wrote: Don't do this. With a change like this which must be made at the same time over multiple subsystems it is very important that you send

Re: [GIT PULL 1/6] omap cleanup fixes for v3.8 merge window

2012-11-15 Thread Arnd Bergmann
On Tuesday 13 November 2012, Tony Lindgren wrote: The following changes since commit edf8dde393f879fc2d8c22d4bc01ff8d37b80e1a: Merge branch 'linus' into omap-for-v3.8/cleanup-headers-prepare-multiplatform-v3 (2012-11-09 14:58:01 -0800) are available in the git repository at:

Re: AM335x: Beaglebone stops to boot with current git kernel

2012-11-15 Thread Tony Lindgren
* Jean Pihet jean.pi...@newoldbits.com [121115 06:49]: Hi Tony, On Wed, Nov 14, 2012 at 6:51 PM, Tony Lindgren t...@atomide.com wrote: * Jean Pihet jean.pi...@newoldbits.com [121114 08:43]: The patch should change the name of the hwmod entry as well, can you fold this change in the

Re: [PATCH v3] mtd: omap: nand: Remove 0xFF's that prefixed 16bit NAND addresses

2012-11-15 Thread Ivan Djelic
On Thu, Nov 15, 2012 at 03:18:44PM +, Artem Bityutskiy wrote: On Thu, 2012-11-15 at 09:48 -0500, Christopher Harvey wrote: On Thu, Nov 15, 2012 at 01:02:09PM +0200, Artem Bityutskiy wrote: On Mon, 2012-10-29 at 15:51 -0400, Christopher Harvey wrote: In 16bit NAND mode the GPMC would

Re: [PATCH] arm-dt: Enable DT proc updates.

2012-11-15 Thread Grant Likely
On Wed, 31 Oct 2012 21:04:24 -0500, Rob Herring robherri...@gmail.com wrote: On 10/31/2012 10:57 AM, Pantelis Antoniou wrote: This simple patch enables dynamic changes of the DT tree on runtime to be visible to the device-tree proc interface. Signed-off-by: Pantelis Antoniou

Re: [PATCH] spi: Export OF interfaces.

2012-11-15 Thread Grant Likely
On Wed, 31 Oct 2012 17:57:33 +0200, Pantelis Antoniou pa...@antoniou-consulting.com wrote: Export an interface that other in-kernel users can utilize. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com I'm not going to apply this before an in-kernel user exists for this. I know

Re: [PATCH] mach-omap2/board-igep0020.c: Fix reboot problem

2012-11-15 Thread Robert Nelson
On Thu, Nov 15, 2012 at 10:06 AM, Matthias Brugger matthias@googlemail.com wrote: When rebooting an OMAP3530 at 125 MHz, the reboot hangs. This patch adds a generic power save script, which resets the TWL4030 when a warm reset occures. This way the OMAP3530 does not hang on reboot.

Re: [GIT PULL 1/5] omap non critical fixes for v3.8 merge window

2012-11-15 Thread Arnd Bergmann
On Thursday 15 November 2012, Tony Lindgren wrote: The following changes since commit 3d70f8c617a436c7146ecb81df2265b4626dfe89: Linux 3.7-rc4 (2012-11-04 11:07:39 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap

  1   2   >