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

2014-03-21 Thread Andrew Bresticker
On Thu, Mar 20, 2014 at 11:45 PM, Adrian Hunter wrote: > On 20.03.2014 20:47, Andrew Bresticker wrote: >> mmc_request() reads 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

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

2014-03-20 Thread Adrian Hunter
On 20.03.2014 20:47, Andrew Bresticker wrote: > mmc_request() reads 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: kwor

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

2014-03-20 Thread Andrew Bresticker
mmc_request() reads 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 CPU: 2 PID: 4296 Comm: k