]> 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)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 16 Nov 2022 12:58:55 +0000 (13:58 +0100)
commite7027e144c544586270b79bd6947b4deb52a3c0b
tree2b54240971339cebc2e06265ab5cf2149e0b0384
parentfccf85931bd0a45f01e1e4a83481b53f0466d3bf
mmc: sdhci-pci-o2micro: fix card detect fail issue caused by CD# debounce timeout

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>
drivers/mmc/host/sdhci-pci-o2micro.c