Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH] Au1200: MMC resource size off by one
@ 2008-05-08 19:06 Sergei Shtylyov
  2008-05-09 16:37 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Sergei Shtylyov @ 2008-05-08 19:06 UTC (permalink / raw)
  To: ralf; +Cc: linux-mips

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.

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>

---
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(-)

Index: linux-2.6/arch/mips/au1000/common/platform.c
===================================================================
--- linux-2.6.orig/arch/mips/au1000/common/platform.c
+++ 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] = {

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

* Re: [PATCH] Au1200: MMC resource size off by one
  2008-05-08 19:06 [PATCH] Au1200: MMC resource size off by one Sergei Shtylyov
@ 2008-05-09 16:37 ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2008-05-09 16:37 UTC (permalink / raw)
  To: Sergei Shtylyov; +Cc: linux-mips

On Thu, May 08, 2008 at 11:06:17PM +0400, Sergei Shtylyov wrote:

> 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

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

end of thread, other threads:[~2008-05-09 16:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-08 19:06 [PATCH] Au1200: MMC resource size off by one Sergei Shtylyov
2008-05-09 16:37 ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox