mmc: Delay the card_event callback into the mmc_rescan worker
authorMarkus Mayer <markus.mayer@linaro.org>
Tue, 8 Apr 2014 22:19:43 +0000 (15:19 -0700)
committerChris Ball <chris@printf.net>
Tue, 22 Apr 2014 11:06:36 +0000 (07:06 -0400)
commitfa372a51cb5f93800f711473e5a36e0e0c9a8f00
tree2c2666b4717fa2dce00c498d79b1810cbda44f08
parentbb8175a8aa42d731a840cd474e348ac3367eb5a0
mmc: Delay the card_event callback into the mmc_rescan worker

This change removes the callback from atomic context which it doesn't
need to be in, and puts it in line with the debounced rescan.

This code is based on these e-mail threads with Christian Daudt:

  https://lkml.org/lkml/2013/8/19/539
  https://lkml.org/lkml/2014/3/19/79

Signed-off-by: Markus Mayer <markus.mayer@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <chris@printf.net>
drivers/mmc/core/core.c
drivers/mmc/core/slot-gpio.c
include/linux/mmc/host.h