]> 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)
commitac12320acbb6121886f9c7b82dafcf58c12de9e6
tree314b5e1969452a4dd70e46228adce424c3913ae3
parentef1f74651e9cb67632f1db8387cd10878bcae4c0
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: 215effe28989 ("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