Re: [PATCH] mmc: sdhci-of-at91: controller is suspended too early

2015-11-27 Thread Ludovic Desroches
On Fri, Nov 27, 2015 at 03:11:58PM +0100, Ulf Hansson wrote: > On 26 November 2015 at 17:41, Ludovic Desroches > wrote: > > When calling sdhci_add_host(), the controller is already suspended. It > > causes to read 0 in registers. > > Increment the device's usage counter before calling sdhci_add_ho

Re: [PATCH] mmc: sdhci-of-at91: controller is suspended too early

2015-11-27 Thread Ulf Hansson
On 26 November 2015 at 17:41, Ludovic Desroches wrote: > When calling sdhci_add_host(), the controller is already suspended. It > causes to read 0 in registers. > Increment the device's usage counter before calling sdhci_add_host(), > decrement it after and put it in suspend if it is possible. > >

[PATCH] mmc: sdhci-of-at91: controller is suspended too early

2015-11-26 Thread Ludovic Desroches
When calling sdhci_add_host(), the controller is already suspended. It causes to read 0 in registers. Increment the device's usage counter before calling sdhci_add_host(), decrement it after and put it in suspend if it is possible. Signed-off-by: Ludovic Desroches Fixes: "mmc: sdhci-of-at91: add