]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci-of-at91: fix cd-gpios for SAMA5D2
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Sun, 15 Mar 2020 16:44:25 +0000 (17:44 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 17 Mar 2020 11:28:18 +0000 (12:28 +0100)
commit5eb6ed83c6c68a98f1d247d8f6cb98e72102d0a6
tree6dbfcca27c68dabef37b0931e986540d0e1c8457
parent181d8a85a69d271db3d5f4b7f62d290ba1c13c99
mmc: sdhci-of-at91: fix cd-gpios for SAMA5D2

SAMA5D2x doesn't drive CMD line if GPIO is used as CD line (at least
SAMA5D27 doesn't). Fix this by forcing card-detect in the module
if module-controlled CD is not used.

Fixed commit addresses the problem only for non-removable cards. This
amends it to also cover gpio-cd case.

Cc: stable@vger.kernel.org
Fixes: 78447bf3bf46 ("mmc: sdhci-of-at91: force card detect value for non removable devices")
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/8d10950d9940468577daef4772b82a071b204716.1584290561.git.mirq-linux@rere.qmqm.pl
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-at91.c