diff mbox

ARM: shmobile: mackerel: Add FLCTL IRQ resource

Message ID 1353369900-3384-1-git-send-email-hechtb@gmail.com (mailing list archive)
State Accepted
Commit 3042ac5731e6db441dfce85612da4aa3913dab3b
Headers show

Commit Message

Bastian Hecht Nov. 20, 2012, 12:05 a.m. UTC
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.

Signed-off-by: Bastian Hecht <hechtb@gmail.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
---
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(-)

Comments

Simon Horman Nov. 20, 2012, 12:43 a.m. UTC | #1
On Tue, Nov 20, 2012 at 01:05:00AM +0100, Bastian Hecht wrote:
> 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.
> 
> Signed-off-by: Bastian Hecht <hechtb@gmail.com>
> Signed-off-by: Simon Horman <horms@verge.net.au>
> ---
> 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.
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c
index 0c27c81..66ec616 100644
--- a/arch/arm/mach-shmobile/board-mackerel.c
+++ b/arch/arm/mach-shmobile/board-mackerel.c
@@ -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 = {