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)
commite060d376cc6185dde7e852c028de36614e2201fa
tree39603f0e30294f53e57c7fd995037f4f40435f65
parent97a0c3134f0594389fac704759f83c38ac7d1c17
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