summaryrefslogtreecommitdiff
path: root/drivers/mmc/host/vub300.c
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2019-11-08 17:09:00 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2019-11-14 16:28:56 +0100
commit62c517256ef2e79e0660fc9181a8cf9c1cde57a0 (patch)
tree9924b2a275f36a692c6e681cb02891490d8e4f05 /drivers/mmc/host/vub300.c
parentd5cf1a591a37df797e8529d5188c845368460b48 (diff)
mmc: mmc_spi: Use proper debounce time for CD GPIO
According to the comment, board files used to specify 1 ms for the debounce time. gpiod_set_debounce() needs the debounce time to be specified in units of microseconds, so make sure to multiply the value by 1000. Note that, according to the git log, the board files actually did specify 1 us for bounce times, but that seems really low. Device tree bindings for this type of GPIO typically specify the debounce times in milliseconds, so setting this default value to 1 ms seems like it would be somewhat safer. Signed-off-by: Thierry Reding <treding@nvidia.com> Acked-by: Pavel Machek <pavel@denx.de> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/vub300.c')
0 files changed, 0 insertions, 0 deletions