public inbox for linux-arm-kernel@lists.infradead.org 
 help / color / mirror / Atom feed
From: ludovic.desroches@atmel•com (ludovic.desroches)
To: linux-arm-kernel@lists•infradead.org
Subject: [PATCH 4/8] ARM: at91: fix external interrupt specification in board code
Date: Wed, 24 Oct 2012 17:58:42 +0200	[thread overview]
Message-ID: <50881032.3030900@atmel.com> (raw)
In-Reply-To: <ecf01c6afd3969c9af1839ccbe64cdf5357d0433.1351092432.git.nicolas.ferre@atmel.com>

Le 10/24/2012 05:33 PM, Nicolas Ferre a ?crit :
> Since the switch to sparse irq, we have to add the NR_IRQS_LEGACY
> offset to static irq numbers. It has been forgotten on these
> SPI irq definitions in board code.
>
> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel•com>

Acked-By: Ludovic Desroches <ludovic.desroches@atmel•com>

> Cc: stable <stable@vger•kernel.org> [v3.6]
> ---
>   arch/arm/mach-at91/board-neocore926.c | 2 +-
>   arch/arm/mach-at91/board-sam9261ek.c  | 2 +-
>   arch/arm/mach-at91/board-sam9263ek.c  | 2 +-
>   3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm/mach-at91/board-neocore926.c b/arch/arm/mach-at91/board-neocore926.c
> index 9cda3fd..6960778 100644
> --- a/arch/arm/mach-at91/board-neocore926.c
> +++ b/arch/arm/mach-at91/board-neocore926.c
> @@ -129,7 +129,7 @@ static struct spi_board_info neocore926_spi_devices[] = {
>   		.max_speed_hz	= 125000 * 16,
>   		.bus_num	= 0,
>   		.platform_data	= &ads_info,
> -		.irq		= AT91SAM9263_ID_IRQ1,
> +		.irq		= NR_IRQS_LEGACY + AT91SAM9263_ID_IRQ1,
>   	},
>   #endif
>   };
> diff --git a/arch/arm/mach-at91/board-sam9261ek.c b/arch/arm/mach-at91/board-sam9261ek.c
> index 27b3af1..a9167dd 100644
> --- a/arch/arm/mach-at91/board-sam9261ek.c
> +++ b/arch/arm/mach-at91/board-sam9261ek.c
> @@ -309,7 +309,7 @@ static struct spi_board_info ek_spi_devices[] = {
>   		.max_speed_hz	= 125000 * 26,	/* (max sample rate @ 3V) * (cmd + data + overhead) */
>   		.bus_num	= 0,
>   		.platform_data	= &ads_info,
> -		.irq		= AT91SAM9261_ID_IRQ0,
> +		.irq		= NR_IRQS_LEGACY + AT91SAM9261_ID_IRQ0,
>   		.controller_data = (void *) AT91_PIN_PA28,	/* CS pin */
>   	},
>   #endif
> diff --git a/arch/arm/mach-at91/board-sam9263ek.c b/arch/arm/mach-at91/board-sam9263ek.c
> index 073e174..b87dbe2 100644
> --- a/arch/arm/mach-at91/board-sam9263ek.c
> +++ b/arch/arm/mach-at91/board-sam9263ek.c
> @@ -132,7 +132,7 @@ static struct spi_board_info ek_spi_devices[] = {
>   		.max_speed_hz	= 125000 * 26,	/* (max sample rate @ 3V) * (cmd + data + overhead) */
>   		.bus_num	= 0,
>   		.platform_data	= &ads_info,
> -		.irq		= AT91SAM9263_ID_IRQ1,
> +		.irq		= NR_IRQS_LEGACY + AT91SAM9263_ID_IRQ1,
>   	},
>   #endif
>   };
>

  reply	other threads:[~2012-10-24 15:58 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-24 15:33 [PATCH 0/8] at91: 3.7 fixes patch series Nicolas Ferre
2012-10-24 15:33 ` [PATCH 1/8] ARM: at91/tc: fix typo in the DT document Nicolas Ferre
2012-10-24 15:33 ` [PATCH 2/8] ARM: at91: at91sam9g10: fix SOC type detection Nicolas Ferre
2012-10-24 15:33 ` [PATCH 3/8] ARM: at91: fix external interrupts in non-DT case Nicolas Ferre
2012-10-24 15:58   ` ludovic.desroches
2012-10-24 15:33 ` [PATCH 4/8] ARM: at91: fix external interrupt specification in board code Nicolas Ferre
2012-10-24 15:58   ` ludovic.desroches [this message]
2012-10-24 15:33 ` [PATCH 5/8] ARM: at91/dts: at91sam9g20ek_common: Fix typos in buttons labels Nicolas Ferre
2012-10-24 15:33 ` [PATCH 6/8] ARM: at91/i2c: change id to let i2c-gpio work Nicolas Ferre
2012-10-24 15:59   ` ludovic.desroches
2012-10-24 15:33 ` [PATCH 7/8] ARM: at91/i2c: change id to let i2c-at91 work Nicolas Ferre
2012-10-24 15:59   ` ludovic.desroches
2012-10-24 15:33 ` [PATCH 8/8] ARM: at91: drop duplicated config SOC_AT91SAM9 entry Nicolas Ferre
2012-10-24 15:44 ` [PATCH 0/8] at91: 3.7 fixes patch series Jean-Christophe PLAGNIOL-VILLARD

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50881032.3030900@atmel.com \
    --to=ludovic.desroches@atmel$(echo .)com \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox