Wolfram Sang <w.sang@xxxxxxxxxxxxxx> writes: Hi, > On Wed, Oct 13, 2010 at 11:28:15AM +0200, Arnaud Patard wrote: > >> >> it's actually not yet supported by the driver. There is a wp_gpio in >> >> struct esdhc_platform_data (arch/arm/plat-mxc/include/mach/esdhc.h) >> >> but it's not yet used by the driver. >> > >> > It's all prepared. I finally will have a look into it today. >> >> oh, great. I was thinking about doing it but I'll wait for your patches >> then. I'm sure I need support for WP on GPIO but I may also need support >> for CD on GPIO so I'll be happy to test any patch you have. > > Just to keep you updated: Got a bit distracted again but I hope to > finish it on Saturday. Looks like a patch for the gpiolib is also > needed... ok. Take your time. It turns out that the infos I had were a bit misleading. I've been told the mmc driver was using some gpios and the gpios are GPIO_1_0/1_1 and GPIO_1_7/1_8... which are in fact the esdhc1 and esdhc2 CD and WP. This means : - with proper iomux configuration, WP detection is working fine - I should still be able to test WP on GPIO Thanks, Arnaud -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html