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)
commit1791b13ea4d97a6a7c162edd54485e932ad92f1b
tree0012ece1a9b0bf403f759d5f552fc34c6d8c82d1
parent7456caae37396fc1bc6f8e9461d07664b8c2f280
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