Re: [PATCH] mmc: sdhci-of-at91: fix wakeup issue when using runtime pm

2016-03-16 Thread Ulf Hansson
On 10 March 2016 at 11:30, Ludovic Desroches wrote: > It was impossible to wake-up on card detect event because when sdhci > controller is runtime suspend, it is assumed that all the clocks are > disabled so we can't get irqs. > If the device is removable and there is no gpio to manage the card >

Re: [PATCH] mmc: sdhci-of-at91: fix wakeup issue when using runtime pm

2016-03-11 Thread Ludovic Desroches
On Thu, Mar 10, 2016 at 11:30:58AM +0100, Ludovic Desroches wrote: > It was impossible to wake-up on card detect event because when sdhci > controller is runtime suspend, it is assumed that all the clocks are > disabled so we can't get irqs. > If the device is removable and there is no gpio to mana

[PATCH] mmc: sdhci-of-at91: fix wakeup issue when using runtime pm

2016-03-10 Thread Ludovic Desroches
It was impossible to wake-up on card detect event because when sdhci controller is runtime suspend, it is assumed that all the clocks are disabled so we can't get irqs. If the device is removable and there is no gpio to manage the card detection then card detection polling is used. Signed-off-by:

Re: [PATCH] mmc: sdhci-of-at91: fix wakeup issue when using runtime pm

2016-03-09 Thread Ludovic Desroches
+ PM mailing list since the discussion is mixing PM and sdhci On Tue, Mar 08, 2016 at 10:56:31PM +0100, Ulf Hansson wrote: > +Ludovic > > On 8 March 2016 at 22:54, Ulf Hansson wrote: > > On 4 March 2016 at 14:48, Ludovic Desroches > > wrote: [snip] > >> > >> Coming back to the initial discus

Re: [PATCH] mmc: sdhci-of-at91: fix wakeup issue when using runtime pm

2016-03-08 Thread Ulf Hansson
+Ludovic On 8 March 2016 at 22:54, Ulf Hansson wrote: > On 4 March 2016 at 14:48, Ludovic Desroches > wrote: >> Hi Ulf, >> >> On Fri, Mar 04, 2016 at 10:09:37AM +0100, Ulf Hansson wrote: >>> On 17 February 2016 at 11:35, Ludovic Desroches >> >> [snip] >> >>> > I am wondering if I should take ac

Re: [PATCH] mmc: sdhci-of-at91: fix wakeup issue when using runtime pm

2016-03-08 Thread Ulf Hansson
On 4 March 2016 at 14:48, Ludovic Desroches wrote: > Hi Ulf, > > On Fri, Mar 04, 2016 at 10:09:37AM +0100, Ulf Hansson wrote: >> On 17 February 2016 at 11:35, Ludovic Desroches > > [snip] > >> > I am wondering if I should take account of sdio irq enabled or not here. >> > >> > I have a sdio device

Re: [PATCH] mmc: sdhci-of-at91: fix wakeup issue when using runtime pm

2016-03-04 Thread Ludovic Desroches
Hi Ulf, On Fri, Mar 04, 2016 at 10:09:37AM +0100, Ulf Hansson wrote: > On 17 February 2016 at 11:35, Ludovic Desroches [snip] > > I am wondering if I should take account of sdio irq enabled or not here. > > > > I have a sdio device which drives me crazy because of power management. > > The drive

Re: [PATCH] mmc: sdhci-of-at91: fix wakeup issue when using runtime pm

2016-03-04 Thread Ulf Hansson
+ Ludovic On 4 March 2016 at 10:09, Ulf Hansson wrote: > On 17 February 2016 at 11:35, Ludovic Desroches > wrote: >> On Tue, Feb 16, 2016 at 04:22:04PM +0100, Ludovic Desroches wrote: >>> On Tue, Feb 16, 2016 at 03:38:29PM +0100, Ulf Hansson wrote: >>> > On 13 February 2016 at 10:56, Ludovic Des

Re: [PATCH] mmc: sdhci-of-at91: fix wakeup issue when using runtime pm

2016-03-04 Thread Ulf Hansson
On 17 February 2016 at 11:35, Ludovic Desroches wrote: > On Tue, Feb 16, 2016 at 04:22:04PM +0100, Ludovic Desroches wrote: >> On Tue, Feb 16, 2016 at 03:38:29PM +0100, Ulf Hansson wrote: >> > On 13 February 2016 at 10:56, Ludovic Desroches >> > wrote: >> > > When suspending the sdhci host, the o

Re: [PATCH] mmc: sdhci-of-at91: fix wakeup issue when using runtime pm

2016-02-25 Thread Ludovic Desroches
On Sat, Feb 13, 2016 at 10:56:40AM +0100, Ludovic Desroches wrote: > When suspending the sdhci host, the only hardware event that could wake > up the host is a sdio irq if they are enabled. If we want to wakeup on > card detect events, a gpio as to be used. > If we don't want to use a gpio but the

Re: [PATCH] mmc: sdhci-of-at91: fix wakeup issue when using runtime pm

2016-02-17 Thread Ludovic Desroches
On Tue, Feb 16, 2016 at 04:22:04PM +0100, Ludovic Desroches wrote: > On Tue, Feb 16, 2016 at 03:38:29PM +0100, Ulf Hansson wrote: > > On 13 February 2016 at 10:56, Ludovic Desroches > > wrote: > > > When suspending the sdhci host, the only hardware event that could wake > > > up the host is a sdio

Re: [PATCH] mmc: sdhci-of-at91: fix wakeup issue when using runtime pm

2016-02-16 Thread Ludovic Desroches
On Tue, Feb 16, 2016 at 03:38:29PM +0100, Ulf Hansson wrote: > On 13 February 2016 at 10:56, Ludovic Desroches > wrote: > > When suspending the sdhci host, the only hardware event that could wake > > up the host is a sdio irq if they are enabled. If we want to wakeup on > > card detect events, a g

Re: [PATCH] mmc: sdhci-of-at91: fix wakeup issue when using runtime pm

2016-02-16 Thread Ulf Hansson
On 13 February 2016 at 10:56, Ludovic Desroches wrote: > When suspending the sdhci host, the only hardware event that could wake > up the host is a sdio irq if they are enabled. If we want to wakeup on > card detect events, a gpio as to be used. > If we don't want to use a gpio but the card detect

[PATCH] mmc: sdhci-of-at91: fix wakeup issue when using runtime pm

2016-02-13 Thread Ludovic Desroches
When suspending the sdhci host, the only hardware event that could wake up the host is a sdio irq if they are enabled. If we want to wakeup on card detect events, a gpio as to be used. If we don't want to use a gpio but the card detect pio of the controller then we need to keep enabled the clock of