Skip to contentSkip to conversation

ARM: shmobile: mackerel: Add FLCTL IRQ resource

PATCH Superseded Bastian Hecht 2 participants 6 messages Nov 13, 2012 – Nov 20, 2012

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: shmobile: mackerel: Add FLCTL IRQ resource

The FLCTL driver now requires the resource of the error IRQ.

---
 arch/arm/mach-shmobile/board-mackerel.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
arch/arm/mach-shmobile/board-mackerel.c +5 -1
index 0c27c81..66ec616 100644
@@ -1018,7 +1018,11 @@ static struct resource nand_flash_resources[] = {
 		.start	= 0xe6a30000,
 		.end	= 0xe6a3009b,
 		.flags	= IORESOURCE_MEM,
-	}
+	},
+	[1] = {
+		.start	= evt2irq(0x0d80), /* flstei: status error irq */
+		.flags	= IORESOURCE_IRQ,
+	},
 };
 
 static struct sh_flctl_platform_data nand_flash_data = {
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 1 line · Bastian Hecht

The FLCTL driver now requires the resource of the error IRQ.

Hi Bastian,

could you provide a little more information on:
* Why this is so. Is it related to a change in another commit?
* What the implications are of this change not being applied:
the driver doesn't work?

Quoted 30 lines
---
 arch/arm/mach-shmobile/board-mackerel.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
arch/arm/mach-shmobile/board-mackerel.c +5 -1
index 0c27c81..66ec616 100644
@@ -1018,7 +1018,11 @@ static struct resource nand_flash_resources[] = {
 		.start	= 0xe6a30000,
 		.end	= 0xe6a3009b,
 		.flags	= IORESOURCE_MEM,
-	}
+	},
+	[1] = {
+		.start	= evt2irq(0x0d80), /* flstei: status error irq */
+		.flags	= IORESOURCE_IRQ,
+	},
 };
 
 static struct sh_flctl_platform_data nand_flash_data = {
Signature · 6 lines
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw
In reply to Bastian Hecht

Hello Simon,

Quoted 2 lines

could you provide a little more information on:
* Why this is so. Is it related to a change in another commit?

Oh sure. So, the error IRQ was introduced in commit 3c7ea4eccfd2e mtd:
sh_flctl: Add support for error IRQ.
It notifies us when the actual communication from our flash controller to the NAND chip fails.

Quoted 2 lines

* What the implications are of this change not being applied:
the driver doesn't work?

Yes the driver refuses to start up if the error IRQ is missing.

Do you think I should include such information into the commit message, or is it just helpful for the upstream process?

Cheers,

Bastian

#3 lore raw
In reply to Bastian Hecht
Quoted 10 lines · Bastian Hecht

Hello Simon,

Quoted 2 lines

could you provide a little more information on:
* Why this is so. Is it related to a change in another commit?

Oh sure. So, the error IRQ was introduced in commit 3c7ea4eccfd2e mtd:
sh_flctl: Add support for error IRQ.
It notifies us when the actual communication from our flash controller to the NAND chip fails.

Quoted 7 lines
Quoted 2 lines

* What the implications are of this change not being applied:
the driver doesn't work?

Yes the driver refuses to start up if the error IRQ is missing.

Do you think I should include such information into the commit message, or is it just helpful for the upstream process?

Yes. Please re-post the patch with a revised commit message that includes the information above.

#4 lore raw

PATCH 1/1 ARM: shmobile: mackerel: Add FLCTL IRQ resource

In reply to Bastian Hecht

Since commit 3c7ea4e (mtd: sh_flctl: Add support for error IRQ) the sh_flctl driver requires the error IRQ line to signal failed transactions between the flash controller and the NAND chip. This information is mandatory - else the driver refuses to start up. We provide it here for the board mackerel.

---
v1: extended commit
v2: added commit message of referenced patch

 arch/arm/mach-shmobile/board-mackerel.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
arch/arm/mach-shmobile/board-mackerel.c +5 -1
index 0c27c81..66ec616 100644
@@ -1018,7 +1018,11 @@ static struct resource nand_flash_resources[] = {
 		.start	= 0xe6a30000,
 		.end	= 0xe6a3009b,
 		.flags	= IORESOURCE_MEM,
-	}
+	},
+	[1] = {
+		.start	= evt2irq(0x0d80), /* flstei: status error irq */
+		.flags	= IORESOURCE_IRQ,
+	},
 };
 
 static struct sh_flctl_platform_data nand_flash_data = {
Signature · 1 line
1.7.9.5
#5 lore raw
In reply to Bastian Hecht
Quoted 11 lines · Bastian Hecht

Since commit 3c7ea4e (mtd: sh_flctl: Add support for error IRQ) the sh_flctl driver requires the error IRQ line to signal failed transactions between the flash controller and the NAND chip. This information is mandatory - else the driver refuses to start up. We provide it here for the board mackerel.

---
v1: extended commit
v2: added commit message of referenced patch

Thanks, I have updated the boards2 branch and sent an updated pull-request to arm-soc.