ARM: shmobile: mackerel: Add FLCTL IRQ resource
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
@@ -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
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
Signed-off-by Bastian Hecht <[email protected]>--- arch/arm/mach-shmobile/board-mackerel.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)arch/arm/mach-shmobile/board-mackerel.c +5
-1@@ -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
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
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
3c7ea4eccfd2emtd: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.
PATCH 1/1 ARM: shmobile: mackerel: Add FLCTL IRQ resource
In reply to Bastian HechtSince 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
@@ -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
Quoted 11 lines · Bastian Hecht
Since commit 3c7ea4e (mtd:
sh_flctl: Add support for error IRQ) thesh_flctldriver 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.Signed-off-by Bastian Hecht <[email protected]>Signed-off-by Simon Horman <[email protected]>---
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.