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 07:03:19 +0000 (09:03 +0200)
commit7df8c497214b32b5de70215ab7897e7844477aa5
treee0a0e45b6e01fd251c63c35d29f6e931d2327259
parent161ec2a0807ddd58bc0f24f3e1e7e3d4fef5297f
mmc: sdhci-pci-o2micro: Fix card detect by dealing with debouncing

commit e591fcf6b4e39335c9b128b17738fcd2fdd278ae 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: 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/sdhci-pci-o2micro.c