]> git.baikalelectronics.ru Git - kernel.git/commit
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:42:20 +0000 (17:42 +0100)
commiteb0a67b0420822ab6825c899b0c2b7933f28a8f7
treed43426536864d93a618253f69273fb971e64285e
parent0b33ddc44ace05308ad3b3e78bf5d9a9a1e8b310
mmc: sdhci-pci-o2micro: fix card detect fail issue caused by CD# debounce timeout

commit e7027e144c544586270b79bd6947b4deb52a3c0b 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