]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: Add tunable delay before detecting card after card is inserted
authorShawn Lin <shawn.lin@rock-chips.com>
Tue, 24 Apr 2018 00:42:57 +0000 (08:42 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 3 May 2018 08:33:52 +0000 (10:33 +0200)
commit215effe28989a11372d427cc0c4593c325cdfcd8
tree73f78f4ea0238bf3941c596f5e571b161c726346
parent81118ca936971a622d45231f06725adfd8607d28
mmc: core: Add tunable delay before detecting card after card is inserted

Allow to use tunable delay before detecting card after card is inserted,
which either comes from firmware node, or comes from debounce value
passed on to mmc_gpiod_request_cd(). If the platform doesn't support
debounce, then we fall back to use the debounce period as the delay,
otherwise, it behaves the same as before that a HW debounce(if set) plus
a 200ms hardcode delay before detecting the card.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/host.c
drivers/mmc/core/slot-gpio.c