]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mmc: sdhci-of-at91: force card detect value for non removable devices
authorLudovic Desroches <ludovic.desroches@microchip.com>
Wed, 26 Jul 2017 14:02:46 +0000 (16:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Aug 2017 15:33:50 +0000 (08:33 -0700)
commit43f799ab1f7290cff684806875ac6ec8dac9686a
tree71c986529d44b9417a025ecc9d20b75f5cee1a1c
parent870a2401cc91586f1c87f6311f87a3bc8f53b1d2
mmc: sdhci-of-at91: force card detect value for non removable devices

commit 7a1e3f143176e8ebdb2f5a9b3b47abc18b879d90 upstream.

When the device is non removable, the card detect signal is often used
for another purpose i.e. muxed to another SoC peripheral or used as a
GPIO. It could lead to wrong behaviors depending the default value of
this signal if not muxed to the SDHCI controller.

Fixes: bb5f8ea4d514 ("mmc: sdhci-of-at91: introduce driver for the Atmel SDMMC")
Signed-off-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/sdhci-of-at91.c