diff options
author | Markus Mayer <markus.mayer@linaro.org> | 2014-04-08 15:19:43 -0700 |
---|---|---|
committer | Chris Ball <chris@printf.net> | 2014-04-22 07:06:36 -0400 |
commit | fa372a51cb5f93800f711473e5a36e0e0c9a8f00 (patch) | |
tree | 2c2666b4717fa2dce00c498d79b1810cbda44f08 /include/linux | |
parent | bb8175a8aa42d731a840cd474e348ac3367eb5a0 (diff) | |
download | linux-stable-fa372a51cb5f93800f711473e5a36e0e0c9a8f00.tar.gz linux-stable-fa372a51cb5f93800f711473e5a36e0e0c9a8f00.tar.bz2 linux-stable-fa372a51cb5f93800f711473e5a36e0e0c9a8f00.zip |
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')
-rw-r--r-- | include/linux/mmc/host.h | 2 |
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 { int rescan_disable; /* disable card detection */ int rescan_entered; /* used with nonremovable devices */ + bool trigger_card_event; /* card_event necessary */ + struct mmc_card *card; /* device attached to this host */ wait_queue_head_t wq; |