Skip to contentSkip to conversation

sh: modify resource for SPI0 in setup-sh7757

PATCH Applied Shimoda, Yoshihiro 2 participants 2 messages Jan 26, 2012 – Jan 27, 2012 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 sh: modify resource for SPI0 in setup-sh7757

The new spi-sh driver decodes the IORESOURCE_MEM_TYPE_MASK. So, the resource needs the IORESOURCE_MEM_32BIT.

---
 arch/sh/kernel/cpu/sh4a/setup-sh7757.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/sh/kernel/cpu/sh4a/setup-sh7757.c +1 -1
index a7b2da6..226d809 100644
@@ -133,7 +133,7 @@ static struct resource spi0_resources[] = {
 	[0] = {
 		.start	= 0xfe002000,
 		.end	= 0xfe0020ff,
-		.flags	= IORESOURCE_MEM,
+		.flags	= IORESOURCE_MEM | IORESOURCE_MEM_32BIT,
 	},
 	[1] = {
 		.start	= 86,
Signature · 1 line
1.7.1
Applied
#1 lore raw
Quoted 2 lines · Yoshihiro

The new spi-sh driver decodes the IORESOURCE_MEM_TYPE_MASK. So, the resource needs the IORESOURCE_MEM_32BIT.

Quoted 5 lines · Yoshihiro
---
 arch/sh/kernel/cpu/sh4a/setup-sh7757.c |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

Applied, thanks.