]> asedeno.scripts.mit.edu Git - linux.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)
commitbfd694d5e21c2f0d344db6afeaf993bb0f299545
tree73f78f4ea0238bf3941c596f5e571b161c726346
parent52a70098ffb9a1cb1ec377f5e63b137db5d1ccbd
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