]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd84358ecf09b984280c3e46c9d1bae94e0b4e071
tree2c2666b4717fa2dce00c498d79b1810cbda44f08
parentfff8fe96f2f7bad48a94bb8fa7529529ebe0f7ff
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