diff options
author | Tony Lindgren <tony@atomide.com> | 2018-09-18 16:16:56 -0700 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2018-09-27 00:39:32 +0200 |
commit | 1d71926bbd59facc4bdb6f13117d3a1aee8b83ba (patch) | |
tree | 314b5e1969452a4dd70e46228adce424c3913ae3 /drivers/mmc/core | |
parent | 2ea15030c3f0554db695f85e4760da8621c183d3 (diff) | |
download | linux-1d71926bbd59facc4bdb6f13117d3a1aee8b83ba.tar.bz2 |
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: 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>
Diffstat (limited to 'drivers/mmc/core')
-rw-r--r-- | drivers/mmc/core/host.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c index abf9e884386c..f57f5de54206 100644 --- a/drivers/mmc/core/host.c +++ b/drivers/mmc/core/host.c @@ -235,7 +235,7 @@ int mmc_of_parse(struct mmc_host *host) host->caps |= MMC_CAP_NEEDS_POLL; ret = mmc_gpiod_request_cd(host, "cd", 0, true, - cd_debounce_delay_ms, + cd_debounce_delay_ms * 1000, &cd_gpio_invert); if (!ret) dev_info(host->parent, "Got CD GPIO\n"); |