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>
Fri, 25 Nov 2022 16:45:53 +0000 (17:45 +0100)
commit440653a180f53cbc57e1895c8c14ebb349cf5fd8
tree6a742a954ad5ce88a082528634345032edc44c85
parent8e70b141317826c5c1f377b082497a83bfe9094e
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