aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mmc
diff options
context:
space:
mode:
authorMarkus Mayer <markus.mayer@linaro.org>2014-04-08 18:19:43 -0400
committerChris Ball <chris@printf.net>2014-04-22 07:06:36 -0400
commitfa372a51cb5f93800f711473e5a36e0e0c9a8f00 (patch)
tree2c2666b4717fa2dce00c498d79b1810cbda44f08 /include/linux/mmc
parentbb8175a8aa42d731a840cd474e348ac3367eb5a0 (diff)
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>
Diffstat (limited to 'include/linux/mmc')
-rw-r--r--include/linux/mmc/host.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h
index 35354207e71f..0cf705c83998 100644
--- a/include/linux/mmc/host.h
+++ b/include/linux/mmc/host.h
@@ -319,6 +319,8 @@ struct mmc_host {
319 int rescan_disable; /* disable card detection */ 319 int rescan_disable; /* disable card detection */
320 int rescan_entered; /* used with nonremovable devices */ 320 int rescan_entered; /* used with nonremovable devices */
321 321
322 bool trigger_card_event; /* card_event necessary */
323
322 struct mmc_card *card; /* device attached to this host */ 324 struct mmc_card *card; /* device attached to this host */
323 325
324 wait_queue_head_t wq; 326 wait_queue_head_t wq;