Re: [PATCH v2] ARM: s3c24xx: Correct SD card write protect detection on Mini2440

2018-09-07 Thread Krzysztof Kozlowski
On Thu, 6 Sep 2018 at 23:27, Cedric Roux wrote: > > 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 =

Re: [PATCH v2] ARM: s3c24xx: Correct SD card write protect detection on Mini2440

2018-09-07 Thread Krzysztof Kozlowski
On Thu, 6 Sep 2018 at 23:27, Cedric Roux wrote: > > 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 =

[PATCH v2] ARM: s3c24xx: Correct SD card write protect detection on Mini2440

2018-09-06 Thread Cedric Roux
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

[PATCH v2] ARM: s3c24xx: Correct SD card write protect detection on Mini2440

2018-09-06 Thread Cedric Roux
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