Skip to contentSkip to conversation

ARM: mach-shmobile: ap4evb: fix write protect for SDHI1

PATCH Applied Arnd Hannemann 2 participants 2 messages Aug 18, 2010 – Aug 20, 2010

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: mach-shmobile: ap4evb: fix write protect for SDHI1

SDHI1 on AP4EVB has no pin to detect write protection of a card. This had the result that a card inserted in this slot was always detected as read only. This patch adds the corresponding flag to disable write protection detection for SDHI1.

---
 arch/arm/mach-shmobile/board-ap4evb.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/mach-shmobile/board-ap4evb.c +2 -0
index 23d472f..97c31fe 100644
@@ -25,6 +25,7 @@
 #include <linux/platform_device.h>
 #include <linux/delay.h>
 #include <linux/mfd/sh_mobile_sdhi.h>
+#include <linux/mfd/tmio.h>
 #include <linux/mmc/host.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/partitions.h>
@@ -307,6 +308,7 @@ static struct sh_mobile_sdhi_info sdhi1_info = {
 	.dma_slave_tx	= SHDMA_SLAVE_SDHI1_TX,
 	.dma_slave_rx	= SHDMA_SLAVE_SDHI1_RX,
 	.tmio_ocr_mask	= MMC_VDD_165_195,
+	.tmio_flags	= TMIO_MMC_WRPROTECT_DISABLE,
 };
 
 static struct resource sdhi1_resources[] = {
Signature · 1 line
1.7.0.4
Applied
#1 lore raw
Quoted 6 lines · Arnd Hannemann

SDHI1 on AP4EVB has no pin to detect write protection of a card. This had the result that a card inserted in this slot was always detected as read only. This patch adds the corresponding flag to disable write protection detection for SDHI1.

Applied, thanks.