On Fri, Sep 28, 2018 at 2:21 PM Marek Szyprowski m.szyprowski@samsung.com wrote:
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: 1d71926bbd59 ("mmc: core: Fix debounce time to use microseconds") Fixes: bfd694d5e21c ("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
This seems correct, after some reading and scratching my head: Reviewed-by: Linus Walleij linus.walleij@linaro.org
Yours, Linus Walleij