mmc: sdhci-pci-o2micro: fix card detect fail issue caused by CD# debounce timeout
authorChevron Li <chevron.li@bayhubtech.com>
Fri, 4 Nov 2022 09:55:12 +0000 (02:55 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Nov 2022 08:24:48 +0000 (09:24 +0100)
commit4a1b6f7839d3571d37ce344abdf60283298f6c83
tree0f98be940179b366e8097df5786a08600d626867
parentfd285d421563ca60b10ab46a5b2fbb8c249f63b3
mmc: sdhci-pci-o2micro: fix card detect fail issue caused by CD# debounce timeout

commit 096cc0cddf58232bded309336961784f1d1c85f8 upstream.

The SD card is recognized failed sometimes when resume from suspend.
Because CD# debounce time too long then card present report wrong.
Finally, card is recognized failed.

Signed-off-by: Chevron Li <chevron.li@bayhubtech.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20221104095512.4068-1-chevron.li@bayhubtech.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/sdhci-pci-o2micro.c