]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitacedf9591116e0be196e71c65c4ed8311818d30f
treed41a99a8675ff8759bc188988f6a822d53f25c0e
parent41cebfa1813d137a83a853c7fd05551488a120d9
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