ARM: s3c24xx: Correct SD card write protect detection on Mini2440
authorCedric Roux <sed@free.fr>
Fri, 7 Sep 2018 21:54:46 +0000 (23:54 +0200)
committerKrzysztof Kozlowski <krzk@kernel.org>
Mon, 10 Sep 2018 17:11:05 +0000 (19:11 +0200)
commit4bac3cc22559c0e2ce2679131711f2be2cf6cc2b
tree3bd6cf0cdc2f051dbb56ff25d0607ee4df9b817c
parent511038fa6689feb264a7765de82565f9cf0fa88b
ARM: s3c24xx: Correct SD card write protect detection on Mini2440

The mini2440 computer uses "active high" to signal that the "write protect"
of the inserted MMC is set. The current code uses the opposite, leading to
a wrong detection of write protection. The solution is simply to use
".wprotect_invert = 1" in the description of the MMC.

Signed-off-by: Cedric Roux <sed@free.fr>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
arch/arm/mach-s3c24xx/mach-mini2440.c