]> 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)
commitf457b7ee86e8bdefb7bcac2737c1292a642c4972
tree0012ece1a9b0bf403f759d5f552fc34c6d8c82d1
parent9145faf15fd7a2df3df2e63b9656bddc9a097f86
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