Skip to contentSkip to conversation

TS-78xxx NAND resource type should be IORESOURCE_MEM

PATCH New Michael Spang 2 participants 2 messages Nov 5, 2010

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

PATCH 1/1 TS-78xxx NAND resource type should be IORESOURCE_MEM

The type was IORESOURCE_IO which is not what is expected by plat_nand_probe(). This device has not worked since 2d098a72 ("mtd: plat_nand: request memory resource before doing ioremap").

---
 arch/arm/mach-orion5x/ts78xx-setup.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-orion5x/ts78xx-setup.c +1 -1
index 16f1bd5..c1c1cd0 100644
@@ -239,7 +239,7 @@ static struct platform_nand_data ts78xx_ts_nand_data = {
 static struct resource ts78xx_ts_nand_resources = {
 	.start		= TS_NAND_DATA,
 	.end		= TS_NAND_DATA + 4,
-	.flags		= IORESOURCE_IO,
+	.flags		= IORESOURCE_MEM,
 };
 
 static struct platform_device ts78xx_ts_nand_device = {
Signature · 1 line
1.7.1
#1 lore raw

PATCH 1/1 TS-78xxx NAND resource type should be IORESOURCE_MEM

Quoted 7 lines · In gmane.linux.kernel Michael Spang

The type was IORESOURCE_IO which is not what is expected by plat_nand_probe(). This device has not worked since 2d098a72 ("mtd: plat_nand: request memory resource before doing ioremap").

Cheers

Quoted 19 lines

---
arch/arm/mach-orion5x/ts78xx-setup.c | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-orion5x/ts78xx-setup.c +1 -1
index 16f1bd5..c1c1cd0 100644
@@ -239,7 +239,7 @@ static struct platform_nand_data ts78xx_ts_nand_data = {
 static struct resource ts78xx_ts_nand_resources = {
       .start          = TS_NAND_DATA,
       .end            = TS_NAND_DATA + 4,
-       .flags          = IORESOURCE_IO,
+       .flags          = IORESOURCE_MEM,
 };
 
 static struct platform_device ts78xx_ts_nand_device = {
Signature · 1 line
1.7.1
Signature · 2 lines
Alexander Clouter
.sigmonster says: 98% lean.