summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorYangbo Lu <yangbo.lu@freescale.com>2015-07-10 11:36:45 +0800
committerNitin Garg <nitin.garg@nxp.com>2016-01-14 10:59:31 -0600
commit61b5a1cec2491ec75d8245b7e8f09bd3299052f7 (patch)
tree9d5e25375162ae2a7f2f5dc0d90bb6a6aa5f11a4 /include/linux
parent0ca37b142532539890946adbf0b3975ab5c598cc (diff)
mmc: sdio: avoid using NULL sdio_irq_thread pointer
For Freescale QorIQ LS1021AQDS board, there is a SDIO interrupt in the process of resume without inserting SD adapter because of some unknown issue. But the driver doesn't assign sdio_irq_thread pointer. This will block the resume of kernel. This patch is used to avoid using NULL sdio_irq_thread pointer. Signed-off-by: Yangbo Lu <yangbo.lu@freescale.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> (cherry picked from commit 9b902cdec6d1248881ffb1a1b8ea69aa2c90d7cc)
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mmc/host.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h
index 1369e54faeb7..83b81fd865f3 100644
--- a/include/linux/mmc/host.h
+++ b/include/linux/mmc/host.h
@@ -412,7 +412,8 @@ static inline void mmc_signal_sdio_irq(struct mmc_host *host)
{
host->ops->enable_sdio_irq(host, 0);
host->sdio_irq_pending = true;
- wake_up_process(host->sdio_irq_thread);
+ if (host->sdio_irq_thread)
+ wake_up_process(host->sdio_irq_thread);
}
void sdio_run_irqs(struct mmc_host *host);