]> www.infradead.org Git - users/dwmw2/linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Oct 2018 07:33:10 +0000 (09:33 +0200)
commit7cf3272144b965b07b6cc39ef5fe8e33d46c565b
tree1246d29d4dcb7785571a165c636cc4ab3f1e8a34
parent7e62c2fbc1fe943ea487f88a26c100d024283ff3
mmc: core: Fix debounce time to use microseconds

commit 1d71926bbd59facc4bdb6f13117d3a1aee8b83ba upstream.

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

Fixes: bfd694d5e21c ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/core/host.c