summaryrefslogtreecommitdiff
path: root/drivers/mtd/mtdblock_ro.c
diff options
context:
space:
mode:
authorDmitry Osipenko <digetx@gmail.com>2019-08-09 01:24:30 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2019-08-21 14:48:30 +0200
commit0f686ca933597cfcc0636253fc1740423c062ec7 (patch)
treebc34fbb566627834567df4484fc6c8ea71e4b94c /drivers/mtd/mtdblock_ro.c
parentd1abaeb3be7b5fa6d7a1fbbd2e14e3310005c4c1 (diff)
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: e8391453e27f ("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>
Diffstat (limited to 'drivers/mtd/mtdblock_ro.c')
0 files changed, 0 insertions, 0 deletions