]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci-pci-o2micro: Fix card detect by dealing with debouncing
authorChevron Li <chevron.li@bayhubtech.com>
Thu, 2 Jun 2022 13:25:43 +0000 (06:25 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jun 2022 06:58:44 +0000 (08:58 +0200)
commit84a0d33e4d8a9b84da8313dcf0fc32343a32d8c5
treed84f580943ec8d5172935ae81f744294adbf037a
parent367f07e94dec6a9b91b7138a4275c3f155a67944
mmc: sdhci-pci-o2micro: Fix card detect by dealing with debouncing

commit c7f7bd637467befd1b2597b0a6e220d91d86cd0a upstream.

The result from ->get_cd() may be incorrect as the card detect debouncing
isn't managed correctly. Let's fix it.

Signed-off-by: Chevron Li<chevron.li@bayhubtech.com>
Fixes: ef943f9b7250 ("mmc: sdhci-pci-o2micro: Fix O2 Host data read/write DLL Lock phase shift issue")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20220602132543.596-1-chevron.li@bayhubtech.com
[Ulf: Updated the commit message]
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