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

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

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

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 > >

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

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 >>

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

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.

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

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

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

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

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

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 >> >

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

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-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

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

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

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

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

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