]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: dw_mmc: convert card tasklet to workqueue
authorJames Hogan <james.hogan@imgtec.com>
Fri, 24 Jun 2011 12:55:55 +0000 (13:55 +0100)
committerChris Ball <cjb@laptop.org>
Wed, 20 Jul 2011 21:20:58 +0000 (17:20 -0400)
commitc9e253538641dbd495a21b8d3006fcfe7eda268f
tree0012ece1a9b0bf403f759d5f552fc34c6d8c82d1
parentbea380565d12262d82209b7a33e6cb21a573e0e3
mmc: dw_mmc: convert card tasklet to workqueue

Convert the card insert/remove tasklet to a workqueue, and call the
setpower platform specific callback without the spinlock held. This
means neither of the setpower or get_cd callbacks are called from atomic
context which allows them to sleep.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Acked-by: Will Newton <will.newton@imgtec.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/dw_mmc.c
include/linux/mmc/dw_mmc.h