Re: [PATCH V2] mmc: sdhci: don't read cd-gpio while holding spinlock

2014-03-25 Thread Adrian Hunter
On 24.03.2014 18:18, Andrew Bresticker wrote: > On Sun, Mar 23, 2014 at 11:19 PM, Adrian Hunter > wrote: >> On 24.03.2014 03:43, Andrew Bresticker wrote: >>> sdhci_request() and sdhci_card_event() read the cd-gpio via >>> mmc_gpio_get_cd(), which can sleep, while holding host->lock. >>> This may

Re: [PATCH V2] mmc: sdhci: don't read cd-gpio while holding spinlock

2014-03-24 Thread Andrew Bresticker
On Sun, Mar 23, 2014 at 11:19 PM, Adrian Hunter wrote: > On 24.03.2014 03:43, Andrew Bresticker wrote: >> sdhci_request() and sdhci_card_event() read the cd-gpio via >> mmc_gpio_get_cd(), which can sleep, while holding host->lock. >> This may result in the following BUG: >> >> BUG: spinlock wron

Re: [PATCH V2] mmc: sdhci: don't read cd-gpio while holding spinlock

2014-03-23 Thread Adrian Hunter
On 24.03.2014 03:43, Andrew Bresticker wrote: > sdhci_request() and sdhci_card_event() read the cd-gpio via > mmc_gpio_get_cd(), which can sleep, while holding host->lock. > This may result in the following BUG: > > BUG: spinlock wrong CPU on CPU#2, kworker/u8:16/4296 > lock: 0xea6b9c80, .magi

[PATCH V2] mmc: sdhci: don't read cd-gpio while holding spinlock

2014-03-23 Thread Andrew Bresticker
sdhci_request() and sdhci_card_event() read the cd-gpio via mmc_gpio_get_cd(), which can sleep, while holding host->lock. This may result in the following BUG: BUG: spinlock wrong CPU on CPU#2, kworker/u8:16/4296 lock: 0xea6b9c80, .magic: dead4ead, .owner: kworker/u8:16/4296, .owner_cpu: 0 C