]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ENGR00292140 mmc: sdhci: fix possible sleep in atomic in sdio_irq enable function
authorDong Aisheng <b29396@freescale.com>
Mon, 16 Dec 2013 06:42:14 +0000 (14:42 +0800)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:18:01 +0000 (21:18 -0600)
commit63f1013acf24b8df85e7c45dbb3f634a6f59ca47
tree52ff3bffa9fb8a80dfffb3a1b486083f832d0c46
parentd67fb6e481e5db46efdcb005cda7620b69f7158d
ENGR00292140 mmc: sdhci: fix possible sleep in atomic in sdio_irq enable function

The sdhci_runtime_pm_get API is able to sleep, so should not call it in
sdhci_enable_sdio_irq_nolock which is executed with spin_lock_irqsave in
sdhci_enable_sdio_irq.
Move it out of spin lock to fix this issue.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
(cherry picked from commit 2aa0640de623c8f4ef908210da30aeece30dbd91)
drivers/mmc/host/sdhci.c