Re: [PATCH] mmc: sdhci: call sdhci_init() before request irq

2015-09-17 Thread Ulf Hansson
On 15 September 2015 at 12:32, Haibo Chen wrote: > sdhci_init() will clear all irqs and set the needed irqs. So > logically sdhci_init() should be called before request irq. > > If not, some irqs may be triggled and handled wrongly. Take > the following into consideration, after request irq, if >

[PATCH] mmc: sdhci: call sdhci_init() before request irq

2015-09-15 Thread Haibo Chen
sdhci_init() will clear all irqs and set the needed irqs. So logically sdhci_init() should be called before request irq. If not, some irqs may be triggled and handled wrongly. Take the following into consideration, after request irq, if SDIO card interrupt enabled, a sd card in the sd slot will tr