All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mini2440 MMC correct write protect detection
@ 2018-09-04 20:36 ` Cedric Roux
  0 siblings, 0 replies; 14+ messages in thread
From: Cedric Roux @ 2018-09-04 20:36 UTC (permalink / raw)
  To: Kukjin Kim, Krzysztof Kozlowski, linux-arm-kernel, linux-samsung-soc

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@free.fr>

--- 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,

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2018-09-06 20:05 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-04 20:36 [PATCH] mini2440 MMC correct write protect detection Cedric Roux
2018-09-04 20:36 ` Cedric Roux
2018-09-05 17:45 ` Krzysztof Kozlowski
2018-09-05 17:45   ` Krzysztof Kozlowski
2018-09-05 19:45   ` Cedric Roux
2018-09-05 19:45     ` Cedric Roux
2018-09-06 15:53     ` Krzysztof Kozlowski
2018-09-06 15:53       ` Krzysztof Kozlowski
2018-09-06 20:05       ` Krzysztof Kozlowski
2018-09-06 20:05         ` Krzysztof Kozlowski
2018-09-06 16:01     ` Krzysztof Kozlowski
2018-09-06 16:01       ` Krzysztof Kozlowski
2018-09-06 19:22       ` Cedric Roux
2018-09-06 19:22         ` Cedric Roux

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.