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)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 14 Jun 2022 20:52:53 +0000 (13:52 -0700)
commite591fcf6b4e39335c9b128b17738fcd2fdd278ae
treeba91395b08e9f7e31dfd0e271c8ffa34bd80f910
parentb13baccc3850ca8b8cccbf8ed9912dbaa0fdf7f3
mmc: sdhci-pci-o2micro: Fix card detect by dealing with debouncing

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