Re: [PATCH v2 1/2] ARM: DRA7: Add support for soc_is_dra74x() and soc_is_dra72x() variants

2014-08-27 Thread Paul Walmsley
On Wed, 27 Aug 2014, Nishanth Menon wrote: > On Mon, Jul 28, 2014 at 12:34 AM, Lokesh Vutla wrote: > > On Monday 28 July 2014 10:59 AM, Paul Walmsley wrote: > >> On Mon, 28 Jul 2014, Lokesh Vutla wrote: > >> > >>> From: Rajendra Nayak > >>> > >>> Use the corresponding compatibles to identify the

[GIT PULL] ARM: OMAP2+: DRA72x/DRA74x basic support

2014-08-27 Thread Paul Walmsley
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Tony, The following changes since commit 52addcf9d6669fa439387610bc65c92fa0980cef: Linux 3.17-rc2 (2014-08-25 15:36:20 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/pjw/omap-pending.git tags/fo

Re: [PATCH 1/5] usb: phy: twl4030-usb: Remove unused irq_enabled

2014-08-27 Thread Felipe Balbi
Hi, On Wed, Aug 27, 2014 at 04:28:07PM -0700, Tony Lindgren wrote: > It's not being used any longer. > > Signed-off-by: Tony Lindgren > --- > drivers/phy/phy-twl4030-usb.c | 2 -- > drivers/usb/phy/phy-twl6030-usb.c | 2 -- > 2 files changed, 4 deletions(-) > > diff --git a/drivers/phy/phy

[PATCH 2/5] usb: phy: twl4030-usb: Simplify phy init to use runtime PM

2014-08-27 Thread Tony Lindgren
We can now let the interrupt and delayed work do all that's needed with runtime PM. Signed-off-by: Tony Lindgren --- drivers/phy/phy-twl4030-usb.c | 20 +++- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/drivers/phy/phy-twl4030-usb.c b/drivers/phy/phy-twl4030-usb

[PATCH 1/5] usb: phy: twl4030-usb: Remove unused irq_enabled

2014-08-27 Thread Tony Lindgren
It's not being used any longer. Signed-off-by: Tony Lindgren --- drivers/phy/phy-twl4030-usb.c | 2 -- drivers/usb/phy/phy-twl6030-usb.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/drivers/phy/phy-twl4030-usb.c b/drivers/phy/phy-twl4030-usb.c index 9cd33a4..bc28ecc 100644 --- a/dri

[PATCH 4/5] usb: phy: twl4030-usb: Remove asleep and rely on runtime PM

2014-08-27 Thread Tony Lindgren
There's no longer need for tracking the phy state in the driver with asleep, we can now rely on runtime PM. Signed-off-by: Tony Lindgren --- drivers/phy/phy-twl4030-usb.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/drivers/phy/phy-twl4030-usb.c b/drivers/ph

[PATCH 5/5] usb: phy: twl4030-usb: Use mutex instead of spinlock for protecting the data

2014-08-27 Thread Tony Lindgren
We're using threaded irq on a I2C bus and we're sleeping in twl4030_usb_irq() as it calls twl4030_usb_linkstat() which calls the i2c functions. If we ever need to lock for longer I2C transaction sequences a mutex will allow us to do that easily. Signed-off-by: Tony Lindgren --- drivers/phy/phy-t

[PATCH 3/5] usb: phy: twl4030-usb: Move code from twl4030_phy_power to the runtime PM calls

2014-08-27 Thread Tony Lindgren
We don't need twl4030_phy_power() any longer now that we have the runtime PM calls. Let's get rid of it as it's confusing. No functional changes, just move the code and use res instead of ret as we are not returning that value. Signed-off-by: Tony Lindgren --- drivers/phy/phy-twl4030-usb.c | 72

[PATCH 0/5] Clean-up for twl4030-usb

2014-08-27 Thread Tony Lindgren
Hi, Here are few more patches for v3.18 to clean up twl4030-usb. These are based on the two regression fixes I sent earlier: [PATCH] usb: phy: twl4030-usb: Fix regressions to runtime PM on omaps [PATCH] usb: phy: twl4030-usb: Fix lost interrupts after ID pin goes down For testing with v3.17-rc2

Re: [GIT PULL] omap fixes against v3.17-rc2

2014-08-27 Thread Olof Johansson
On Tue, Aug 26, 2014 at 03:14:13PM -0700, Tony Lindgren wrote: > The following changes since commit 52addcf9d6669fa439387610bc65c92fa0980cef: > > Linux 3.17-rc2 (2014-08-25 15:36:20 -0700) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/li

Re: [PATCH V2 4/7] ARM: OMAP2+: powerdomain: introduce logic for finding valid power domain

2014-08-27 Thread Kevin Hilman
Nishanth Menon writes: > powerdomain configuration in OMAP is done using PWRSTCTRL register for > each power domain. However, PRCM lets us write any value we'd like to > the logic and power domain target states, however the SoC integration > tends to actually function only at a few discrete state

Re: [PATCH 15/15] tty: serial: 8250: omap: add dma support

2014-08-27 Thread Tony Lindgren
* Sebastian Andrzej Siewior [140827 12:54]: > On 08/21/2014 08:44 PM, Tony Lindgren wrote: > >>> Also, with DMA enabled, looks like omap deeper idle states are > >>> blocked as the DMA stays reserved. After I commented out the > >>> DMA info for my console UART, PM started working. > >> > >> Hmm.

Re: [PATCH 08/10] ARM: OMAP5/DRA7: PM: cpuidle MPU CSWR support

2014-08-27 Thread Kevin Hilman
Santosh Shilimkar writes: > On Wednesday 27 August 2014 03:35 PM, Nishanth Menon wrote: >> On Wed, Aug 27, 2014 at 2:13 PM, Kevin Hilman >> wrote: >>> + Daniel (cpuidle maintainer) >> [...] +static int omap_enter_idle_smp(struct cpuidle_device *dev, +struct

Re: [PATCH 15/15] tty: serial: 8250: omap: add dma support

2014-08-27 Thread Sebastian Andrzej Siewior
On 08/21/2014 08:44 PM, Tony Lindgren wrote: >>> Also, with DMA enabled, looks like omap deeper idle states are >>> blocked as the DMA stays reserved. After I commented out the >>> DMA info for my console UART, PM started working. >> >> Hmm. This would explain something. This would mean that I shou

Re: [PATCH 07/10] ARM: OMAP5 / DRA7: Enable CPU RET on suspend

2014-08-27 Thread Nishanth Menon
On 08/27/2014 02:43 PM, Santosh Shilimkar wrote: > On Wednesday 27 August 2014 03:41 PM, Tony Lindgren wrote: >> * Nishanth Menon [140827 12:05]: >>> On 08/27/2014 01:58 PM, Kevin Hilman wrote: Nishanth Menon writes: > From: Rajendra Nayak > > On OMAP5 / DRA7, prevent a CPU

Re: [PATCH 07/10] ARM: OMAP5 / DRA7: Enable CPU RET on suspend

2014-08-27 Thread Santosh Shilimkar
On Wednesday 27 August 2014 03:41 PM, Tony Lindgren wrote: > * Nishanth Menon [140827 12:05]: >> On 08/27/2014 01:58 PM, Kevin Hilman wrote: >>> Nishanth Menon writes: >>> From: Rajendra Nayak On OMAP5 / DRA7, prevent a CPU powerdomain OFF and resulting MPU OSWR and instead a

Re: [PATCH 07/10] ARM: OMAP5 / DRA7: Enable CPU RET on suspend

2014-08-27 Thread Tony Lindgren
* Nishanth Menon [140827 12:05]: > On 08/27/2014 01:58 PM, Kevin Hilman wrote: > > Nishanth Menon writes: > > > >> From: Rajendra Nayak > >> > >> On OMAP5 / DRA7, prevent a CPU powerdomain OFF and resulting MPU OSWR > >> and instead attempt a CPU RET and side effect, MPU RET in suspend. > >> >

Re: [PATCH 08/10] ARM: OMAP5/DRA7: PM: cpuidle MPU CSWR support

2014-08-27 Thread Santosh Shilimkar
On Wednesday 27 August 2014 03:35 PM, Nishanth Menon wrote: > On Wed, Aug 27, 2014 at 2:13 PM, Kevin Hilman > wrote: >> + Daniel (cpuidle maintainer) > [...] >>> +static int omap_enter_idle_smp(struct cpuidle_device *dev, >>> +struct cpuidle_driver *drv, >>> +

Re: [PATCH 08/10] ARM: OMAP5/DRA7: PM: cpuidle MPU CSWR support

2014-08-27 Thread Nishanth Menon
On Wed, Aug 27, 2014 at 2:13 PM, Kevin Hilman wrote: > + Daniel (cpuidle maintainer) [...] >> +static int omap_enter_idle_smp(struct cpuidle_device *dev, >> +struct cpuidle_driver *drv, >> +int index) >> +{ >> + struct idle_statedata *cx

Re: [PATCH 00/10] ARM: OMAP5 / DRA7: Add framework for suspend and cpuidle

2014-08-27 Thread Kevin Hilman
Nishanth Menon writes: > The following series are various fixes and improvements for > supporting suspend-to-ram. This depends on the following for basic > functionality: > series 1/6 where powerdomain fixes were involved. I had a look through this series, and it looks good overall. I think Da

Re: [PATCH 08/10] ARM: OMAP5/DRA7: PM: cpuidle MPU CSWR support

2014-08-27 Thread Kevin Hilman
+ Daniel (cpuidle maintainer) Nishanth Menon writes: > From: Santosh Shilimkar > > Add OMAP5/DRA74/72 CPUIDLE support. > > This patch adds MPUSS low power states in cpuidle. > > C1 - CPU0 WFI + CPU1 WFI + MPU ON > C2 - CPU0 RET + CPU1 RET + MPU CSWR > > Tested on DRA74/72-EVM fo

Re: [PATCH 07/10] ARM: OMAP5 / DRA7: Enable CPU RET on suspend

2014-08-27 Thread Nishanth Menon
On 08/27/2014 01:58 PM, Kevin Hilman wrote: > Nishanth Menon writes: > >> From: Rajendra Nayak >> >> On OMAP5 / DRA7, prevent a CPU powerdomain OFF and resulting MPU OSWR >> and instead attempt a CPU RET and side effect, MPU RET in suspend. >> >> Signed-off-by: Rajendra Nayak >> [n...@ti.com: u

Re: [PATCH 07/10] ARM: OMAP5 / DRA7: Enable CPU RET on suspend

2014-08-27 Thread Kevin Hilman
Nishanth Menon writes: > From: Rajendra Nayak > > On OMAP5 / DRA7, prevent a CPU powerdomain OFF and resulting MPU OSWR > and instead attempt a CPU RET and side effect, MPU RET in suspend. > > Signed-off-by: Rajendra Nayak > [n...@ti.com: update to do save_state only on DRA7] > Signed-off-by: N

[PATCH V2 4/7] ARM: OMAP2+: powerdomain: introduce logic for finding valid power domain

2014-08-27 Thread Nishanth Menon
powerdomain configuration in OMAP is done using PWRSTCTRL register for each power domain. However, PRCM lets us write any value we'd like to the logic and power domain target states, however the SoC integration tends to actually function only at a few discrete states. These valid states are already

Re: [PATCH 02/10] ARM: OMAP5 / DRA7: PM: Set MPUSS-EMIF clock-domain static dependency

2014-08-27 Thread Kevin Hilman
Nishanth Menon writes: > From: Santosh Shilimkar > > With EMIF clock-domain put under hardware supervised control, memory > corruption and untraceable crashes are observed on OMAP5. Further > investigation revealed that there is a weakness in the PRCM on this > specific dynamic depedency. hmm,

Re: [PATCH 0/6] ARM: OMAP3+: PRM: fix up prm_handling

2014-08-27 Thread Santosh Shilimkar
On Friday 22 August 2014 09:51 AM, Nishanth Menon wrote: > The following series are various fixes and improvements for > PRM for I/O Daisy chain support in OMAP4+ with device tree. > > This is part 2/6 series which eventually enables framework for > suspend-to-ram and cpuidle for OMAP5 and DRA7 >

Re: [PATCH 4/7] ARM: OMAP2+: powerdomain: introduce logic for finding valid power domain

2014-08-27 Thread Kevin Hilman
On Wed, Aug 27, 2014 at 11:35 AM, Nishanth Menon wrote: > On Wed, Aug 27, 2014 at 1:27 PM, Kevin Hilman > wrote: >> Nishanth Menon writes: >> >>> powerdomain configuration in OMAP is done using PWRSTCTRL register for >>> each power domain. However, PRCM lets us write any value we'd like to >>> t

Re: [PATCH 0/7] ARM: OMAP4+: powerdomain fixes

2014-08-27 Thread Santosh Shilimkar
On Friday 22 August 2014 09:49 AM, Nishanth Menon wrote: > Hi, > > The following series are various fixes and improvements for > powerdomain support in OMAP4+. > > This is part 1/6 series which eventually enables framework for > suspend-to-ram and cpuidle for OMAP5 and DRA7 > > Each of series is

Re: [PATCH 4/7] ARM: OMAP2+: powerdomain: introduce logic for finding valid power domain

2014-08-27 Thread Nishanth Menon
On Wed, Aug 27, 2014 at 1:27 PM, Kevin Hilman wrote: > Nishanth Menon writes: > >> powerdomain configuration in OMAP is done using PWRSTCTRL register for >> each power domain. However, PRCM lets us write any value we'd like to >> the logic and power domain target states, however the SoC integrati

Re: [PATCH 0/7] ARM: OMAP4+: powerdomain fixes

2014-08-27 Thread Kevin Hilman
Nishanth Menon writes: > The following series are various fixes and improvements for > powerdomain support in OMAP4+. Ah, here I see "fixes and improvements" since I was about to nipick that the series contains more than just fixes. Anyways, the series looks good to me. After fixing up the BUG

Re: [PATCH 4/7] ARM: OMAP2+: powerdomain: introduce logic for finding valid power domain

2014-08-27 Thread Kevin Hilman
Nishanth Menon writes: > powerdomain configuration in OMAP is done using PWRSTCTRL register for > each power domain. However, PRCM lets us write any value we'd like to > the logic and power domain target states, however the SoC integration > tends to actually function only at a few discrete state

Re: [PATCH v2 21/26] irqchip: or1k-pic: convert to handle_domain_irq

2014-08-27 Thread Stefan Kristiansson
On Tue, Aug 26, 2014 at 11:03:36AM +0100, Marc Zyngier wrote: > Use the new handle_domain_irq method to handle interrupts. > > Signed-off-by: Marc Zyngier This (and the other two openrisc related patches in this series) works fine in my setup at least. Acked-by: Stefan Kristiansson -- To unsub

Re: [PATCH v2 1/2] ARM: DRA7: Add support for soc_is_dra74x() and soc_is_dra72x() variants

2014-08-27 Thread Nishanth Menon
On Mon, Jul 28, 2014 at 12:34 AM, Lokesh Vutla wrote: > On Monday 28 July 2014 10:59 AM, Paul Walmsley wrote: >> On Mon, 28 Jul 2014, Lokesh Vutla wrote: >> >>> From: Rajendra Nayak >>> >>> Use the corresponding compatibles to identify the devices. >>> >>> Signed-off-by: Rajendra Nayak >>> Signe

Re: [PATCH] ARM: OMAP2+: hwmod: Rearm wake-up interrupts for DT when MUSB is idled

2014-08-27 Thread Tony Lindgren
* Paul Walmsley [140827 09:38]: > On Mon, 25 Aug 2014, Tony Lindgren wrote: > > > Looks like MUSB cable removal can cause wake-up interrupts to > > stop working for device tree based booting at least for UART3 > > even as nothing is dynamically remuxed. This can be fixed by > > calling reconfigur

OMAP baseline test results for v3.17-rc1

2014-08-27 Thread Paul Walmsley
Here are some basic OMAP test results for Linux v3.17-rc1. Logs and other details at: http://www.pwsan.com/omap/testlogs/test_v3.17-rc1/20140821122707/ Test summary Build: zImage: Pass (16/16): multi_v7_defconfig, omap2plus_defconfig, omap2plus_defconfig_

OMAP baseline test results for v3.17-rc2

2014-08-27 Thread Paul Walmsley
Here are some basic OMAP test results for Linux v3.17-rc2. Logs and other details at: http://www.pwsan.com/omap/testlogs/test_v3.17-rc2/20140825183438/ Test summary Build: uImage+dtb: Pass (10/10): omap2plus_defconfig_am33xx_only/am335x-bone, omap2plus_de

Re: [PATCH] ARM: OMAP2+: hwmod: Rearm wake-up interrupts for DT when MUSB is idled

2014-08-27 Thread Paul Walmsley
On Mon, 25 Aug 2014, Tony Lindgren wrote: > Looks like MUSB cable removal can cause wake-up interrupts to > stop working for device tree based booting at least for UART3 > even as nothing is dynamically remuxed. This can be fixed by > calling reconfigure_io_chain() for device tree based booting >

[RFI] OMAP4 ISS: l3_interrupt_handler Errors due to wrong initialized iss_fck?

2014-08-27 Thread Martin Hinteregger
Hi, I am trying to get both CSI2 interfaces up and running through the ISS on the v3.16 kernel for the TI OMAP4 Blaze platform (omap4430 ES 2.3 revision). Trough a omap_device_build() call (using the "iss" omap_hwmod) I call the iss_probe function. It devm_clk_get's both the iss_ctrlclk and th

Re: [PATCH] clk: ti: change clock init to use generic of_clk_init

2014-08-27 Thread Jyri Sarha
On 08/21/2014 04:49 PM, Tero Kristo wrote: Previously, the TI clock driver initialized all the clocks hierarchically under each separate clock provider node. Now, each clock that requires IO access will instead check their parent node to find out which IO range to use. This patch allows the TI c

Re: [PATCHv2 27/27] OMAPDSS: connector-analog-tv: Add DT support

2014-08-27 Thread Tomi Valkeinen
On 26/08/14 19:58, Laurent Pinchart wrote: > Hi Tomi, > > On Monday 16 December 2013 16:56:34 Tomi Valkeinen wrote: >> Signed-off-by: Tomi Valkeinen >> --- >> .../video/omap2/displays-new/connector-analog-tv.c | 66 ++- >> 1 file changed, 65 insertions(+), 1 deletion(-) >> >> dif

Re: [PATCH v2 00/26] genirq: fix use of irq_find_mapping outside of legal RCU context

2014-08-27 Thread Marc Zyngier
Hi Thomas, On Tue, Aug 26 2014 at 10:34:51 pm BST, Thomas Gleixner wrote: > On Tue, 26 Aug 2014, Marc Zyngier wrote: > >> A number of irqchip drivers are directly calling irq_find_mapping, >> which may use a rcu_read_lock call when walking the radix tree. >> >> Turns out that if you hit that po

Re: [PATCH v14 1/6] mmc: omap_hsmmc: Enable SDIO interrupt

2014-08-27 Thread Florian Vaussard
Hi Andreas, On 08/24/2014 07:46 PM, Andreas Fenkart wrote: > Hi Florian > > 2014-08-24 10:26 GMT+02:00 Florian Vaussard : >> Hi Andreas, >> >> On 05/29/2014 10:28 AM, Andreas Fenkart wrote: >>> There have been various patches floating around for enabling >>> the SDIO IRQ for hsmmc, but none of th

Re: [PATCH v14 1/6] mmc: omap_hsmmc: Enable SDIO interrupt

2014-08-27 Thread Florian Vaussard
Hi Tony, Andreas, On 08/24/2014 08:41 PM, Tony Lindgren wrote: > * Florian Vaussard [140824 01:29]: >> --- a/arch/arm/boot/dts/omap3-overo-base.dtsi >> +++ b/arch/arm/boot/dts/omap3-overo-base.dtsi >> @@ -119,7 +119,7 @@ >> OMAP3_CORE1_IOPAD(0x2158, PIN_INPUT_PULLUP | MUX_MOD