]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: renesas_sdhi: fix WP detection
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 5 Mar 2018 20:48:42 +0000 (21:48 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 15 Mar 2018 08:39:10 +0000 (09:39 +0100)
commit25d22ac9ce295bb23167f42ea19772a7a71a961f
tree39603f0e30294f53e57c7fd995037f4f40435f65
parent3922861a61e86823d3d6d8a41b29c2cbea9e0f12
mmc: renesas_sdhi: fix WP detection

Commit "mmc: renesas_sdhi: use MMC_CAP2_NO_WRITE_PROTECT instead of
TMIO own flag" activated MMC_CAP2_NO_WRITE_PROTECT for Renesas SDHI
which incorrectly disabled WP altogether instead of only disabling the
internal mechanism. Since the whole WP handling has been reworked, we
can simply disable this capability to re-enable WP GPIOs.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/renesas_sdhi_internal_dmac.c
drivers/mmc/host/renesas_sdhi_sys_dmac.c