]> 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)
commite5fd7c429141049e36a34f92a4eb2f3139d6beda
treed41a99a8675ff8759bc188988f6a822d53f25c0e
parenta3e20b5dc0bb3f88e98d8b0b271fc3bc7b157b7b
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