]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: Fix debounce time to use microseconds
authorTony Lindgren <tony@atomide.com>
Tue, 18 Sep 2018 23:16:56 +0000 (16:16 -0700)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 26 Sep 2018 22:39:32 +0000 (00:39 +0200)
commitdc364c338a052b3e25f17a14fb0cf46c16a5cf32
tree314b5e1969452a4dd70e46228adce424c3913ae3
parenta5300d3906020689bbc3099737e4e5774b66312f
mmc: core: Fix debounce time to use microseconds

The debounce value in device tree is in milliseconds but needs to be in
microseconds for mmc_gpiod_request_cd().

Fixes: 19b289ddda9f ("mmc: core: Add tunable delay before detecting card
after card is inserted")
Cc: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Cc: stable@vger.kernel.org # v4.18+
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/host.c