]> git.baikalelectronics.ru Git - kernel.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)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 3 Aug 2017 08:50:55 +0000 (10:50 +0200)
commit0add7fc3e39f2e9a7c6d3580bdea8fb3df82a5f2
treea89e17edb1c1857b5c5c50a99162b57757a42413
parent39ca428cb491c5108b239365b7603145dd6df933
mmc: sdhci-of-at91: force card detect value for non removable devices

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: 22fa3e1cfb02 ("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>
Cc: <stable@vger.kernel.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-at91.c