]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: slot-gpio: Fix debounce time to use miliseconds again
authorMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 28 Sep 2018 12:20:40 +0000 (14:20 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 28 Sep 2018 15:43:48 +0000 (17:43 +0200)
commitf590e594de87ce085c35c711c3a1613e890aa4d1
tree3a21cd0536610d28dfa822f41bba3e2a5370f785
parentdc364c338a052b3e25f17a14fb0cf46c16a5cf32
mmc: slot-gpio: Fix debounce time to use miliseconds again

The debounce value passed to mmc_gpiod_request_cd() function is in
microseconds, but msecs_to_jiffies() requires the value to be in
miliseconds to properly calculate the delay, so adjust the value stored
in cd_debounce_delay_ms context entry.

Fixes: dc364c338a05 ("mmc: core: Fix debounce time to use microseconds")
Fixes: 19b289ddda9f ("mmc: core: Add tunable delay before detecting card
after card is inserted")
Cc: stable@vger.kernel.org # v4.18+
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/slot-gpio.c