mini2440 MMC correct write protect detection 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@xxxxxxx> --- arch/arm/mach-s3c24xx/mach-mini2440.c.orig 2018-09-04 22:15:20.696087528 +0200 +++ arch/arm/mach-s3c24xx/mach-mini2440.c 2018-09-04 22:15:32.708088023 +0200 @@ -232,6 +232,7 @@ static struct s3c2410fb_mach_info mini24 /* MMC/SD */ static struct s3c24xx_mci_pdata mini2440_mmc_cfg __initdata = { + .wprotect_invert = 1, .gpio_detect = S3C2410_GPG(8), .gpio_wprotect = S3C2410_GPH(8), .set_power = NULL,