]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "mmc: sdhci-tegra: drop ->get_ro() implementation"
authorDmitry Osipenko <digetx@gmail.com>
Thu, 8 Aug 2019 22:24:30 +0000 (01:24 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 21 Aug 2019 12:48:30 +0000 (14:48 +0200)
commit72f998a3ef28b2998264ddb5d1c95044ca53f4ee
treebc34fbb566627834567df4484fc6c8ea71e4b94c
parent6b38d225a6294690a0d8bba8e80aab3c00f2d685
Revert "mmc: sdhci-tegra: drop ->get_ro() implementation"

The WRITE_PROTECT bit is always in a "protected mode" on Tegra and
WP-GPIO state need to be used instead. In a case of the GPIO absence,
write-enable should be assumed. External SD is writable once again as
a result of this patch because the offending commit changed behaviour for
the case of a missing WP-GPIO to fall back to WRITE_PROTECT bit-checking,
which is incorrect for Tegra.

Cc: stable@vger.kernel.org # v5.1+
Fixes: 1ade82f8b8f5 ("mmc: sdhci-tegra: drop ->get_ro() implementation")
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-tegra.c