Re: [PATCH RFC] mmc: sdhci: Don't get card-detect without preemption

2018-05-17 Thread Evan Green
On Wed, May 16, 2018 at 2:52 AM Adrian Hunter wrote: > On 02/05/18 02:47, Evan Green wrote: > > For a controller with SDHCI_QUIRK_NO_CARD_NO_RESET, there are several > > conditions where sdhci_do_reset is called under a spinlock with interrupts > > disabled. The card detect is often a GPIO, which

Re: [PATCH RFC] mmc: sdhci: Don't get card-detect without preemption

2018-05-16 Thread Adrian Hunter
On 02/05/18 02:47, Evan Green wrote: > For a controller with SDHCI_QUIRK_NO_CARD_NO_RESET, there are several > conditions where sdhci_do_reset is called under a spinlock with interrupts > disabled. The card detect is often a GPIO, which might sleep. Avoid > asking for the card detect status if inte

[PATCH RFC] mmc: sdhci: Don't get card-detect without preemption

2018-05-01 Thread Evan Green
For a controller with SDHCI_QUIRK_NO_CARD_NO_RESET, there are several conditions where sdhci_do_reset is called under a spinlock with interrupts disabled. The card detect is often a GPIO, which might sleep. Avoid asking for the card detect status if interrupts are disabled to prevent a warning like