mmc: omap_hsmmc: abort runtime suspend if pending sdio irq detected
authorAndreas Fenkart <afenkart@gmail.com>
Thu, 29 May 2014 08:28:03 +0000 (10:28 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 9 Jul 2014 09:26:05 +0000 (11:26 +0200)
commitf945901f9aaff859c6b3244628c766d1939e46e7
treed41a99a8675ff8759bc188988f6a822d53f25c0e
parent5a52b08b05b01732e338aab7283b3ce4987d71fb
mmc: omap_hsmmc: abort runtime suspend if pending sdio irq detected

On multicores, an sdio irq handler could be running in parallel to
runtime suspend. In the worst case it could be waiting for the spinlock
held by the runtime suspend. When runtime suspend is complete and the
functional clock (fclk) turned off, the irq handler will continue and
cause a SIGBUS on the first register access.

Acked-by: Balaji T K <balajitk@ti.com>
Signed-off-by: Andreas Fenkart <afenkart@gmail.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/omap_hsmmc.c