Skip to contentSkip to conversation

Au1200: MMC resource size off by one

PATCH Applied Sergei Shtylyov 2 participants 2 messages May 8, 2008 – May 9, 2008 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Au1200: MMC resource size off by one

Au12x0 MMC platform device strangely claims 0x41 bytes for its memory-mapped registers. Make it claim the whole 0x80000 instead according to the memory map given in the datasheets.

---
Inspired by the patches posted by Manuel Lauss.
Should apply to the top of Linux/MIPS tree...

 arch/mips/au1000/common/platform.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/mips/au1000/common/platform.c +2 -2
Index: linux-2.6/arch/mips/au1000/common/platform.c
===================================================================
@@ -165,12 +165,12 @@ static struct resource au1xxx_usb_gdt_re
 static struct resource au1xxx_mmc_resources[] = {
 	[0] = {
 		.start          = SD0_PHYS_ADDR,
-		.end            = SD0_PHYS_ADDR + 0x40,
+		.end            = SD0_PHYS_ADDR + 0x7ffff,
 		.flags          = IORESOURCE_MEM,
 	},
 	[1] = {
 		.start		= SD1_PHYS_ADDR,
-		.end 		= SD1_PHYS_ADDR + 0x40,
+		.end 		= SD1_PHYS_ADDR + 0x7ffff,
 		.flags		= IORESOURCE_MEM,
 	},
 	[2] = {
Applied
#1 lore raw
Quoted 3 lines · Sergei Shtylyov

Au12x0 MMC platform device strangely claims 0x41 bytes for its memory-mapped registers. Make it claim the whole 0x80000 instead according to the memory map given in the datasheets.

Thanks, applied.

Ralf