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:49:28 +0000 (08:49 -0700)
commit347be00b56f72a5a6759930dc7269cb3b1fbbad6
treeb8114599dba0b35817eb114655f20bc8105ffe48
parentf7d3e54fb40cfc6f829b8f8ad3aab026714f2ffc
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