public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Nicolas Ferre <nicolas.ferre@microchip.com>
To: Varshini Rajendran <varshini.rajendran@microchip.com>,
	<tglx@linutronix.de>, <alexandre.belloni@bootlin.com>,
	<claudiu.beznea@tuxon.dev>, <linux-kernel@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>
Cc: Hari Prasath <Hari.PrasathGE@microchip.com>
Subject: Re: [PATCH v7 04/12] irqchip/atmel-aic5: Add support for sam9x7 aic
Date: Tue, 3 Sep 2024 10:53:46 +0200	[thread overview]
Message-ID: <e39fe3df-3110-4f69-af9f-39dbd52d4865@microchip.com> (raw)
In-Reply-To: <20240903064252.49530-1-varshini.rajendran@microchip.com>

On 03/09/2024 at 08:42, Varshini Rajendran wrote:
> From: Hari Prasath <Hari.PrasathGE@microchip.com>
> 
> Add support for the Advanced interrupt controller(AIC) chip in the sam9x7.
> 
> Signed-off-by: Hari Prasath <Hari.PrasathGE@microchip.com>
> Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>

After several investigations to make this "smarter" (see on previous 
versions posts), we figured out this historic way of handling NR_XXX_IRQ 
is the best/simplest one.

Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>

Best regards,
   Nicolas

> ---
> Changes in v7:
> 
> - Removed the line break in the function.
> ---
>   drivers/irqchip/irq-atmel-aic5.c | 9 +++++++++
>   1 file changed, 9 insertions(+)
> 
> diff --git a/drivers/irqchip/irq-atmel-aic5.c b/drivers/irqchip/irq-atmel-aic5.c
> index 145535bd7560..f9168efa4160 100644
> --- a/drivers/irqchip/irq-atmel-aic5.c
> +++ b/drivers/irqchip/irq-atmel-aic5.c
> @@ -320,6 +320,7 @@ static const struct of_device_id aic5_irq_fixups[] __initconst = {
>   	{ .compatible = "atmel,sama5d3", .data = sama5d3_aic_irq_fixup },
>   	{ .compatible = "atmel,sama5d4", .data = sama5d3_aic_irq_fixup },
>   	{ .compatible = "microchip,sam9x60", .data = sam9x60_aic_irq_fixup },
> +	{ .compatible = "microchip,sam9x7", .data = sam9x60_aic_irq_fixup },
>   	{ /* sentinel */ },
>   };
>   
> @@ -406,3 +407,11 @@ static int __init sam9x60_aic5_of_init(struct device_node *node,
>   	return aic5_of_init(node, parent, NR_SAM9X60_IRQS);
>   }
>   IRQCHIP_DECLARE(sam9x60_aic5, "microchip,sam9x60-aic", sam9x60_aic5_of_init);
> +
> +#define NR_SAM9X7_IRQS		70
> +
> +static int __init sam9x7_aic5_of_init(struct device_node *node, struct device_node *parent)
> +{
> +	return aic5_of_init(node, parent, NR_SAM9X7_IRQS);
> +}
> +IRQCHIP_DECLARE(sam9x7_aic5, "microchip,sam9x7-aic", sam9x7_aic5_of_init);


  reply	other threads:[~2024-09-03  8:53 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-03  6:39 [PATCH v7 00/12] Add support for sam9x7 SoC family Varshini Rajendran
2024-09-03  6:42 ` [PATCH v7 01/12] dt-bindings: atmel-ssc: add microchip,sam9x7-ssc Varshini Rajendran
2024-09-03  6:42 ` [PATCH v7 02/12] dt-bindings: microchip: atmel,at91rm9200-tcb: add sam9x7 compatible Varshini Rajendran
2024-09-03 15:19   ` Rob Herring (Arm)
2024-09-04  7:17   ` claudiu beznea
2024-09-03  6:42 ` [PATCH v7 03/12] dt-bindings: interrupt-controller: Add support for sam9x7 aic Varshini Rajendran
2024-09-03  9:02   ` Dharma.B
2024-09-03  9:06     ` Dharma.B
2024-09-03 15:20   ` Rob Herring (Arm)
2024-10-02 15:43   ` [tip: irq/core] " tip-bot2 for Varshini Rajendran
2024-09-03  6:42 ` [PATCH v7 04/12] irqchip/atmel-aic5: " Varshini Rajendran
2024-09-03  8:53   ` Nicolas Ferre [this message]
2024-10-02 15:43   ` [tip: irq/core] " tip-bot2 for Hari Prasath
2024-09-03  6:42 ` [PATCH v7 05/12] power: reset: at91-poweroff: lookup for proper pmc dt node for sam9x7 Varshini Rajendran
2024-09-03  6:43 ` [PATCH v7 06/12] power: reset: at91-reset: add reset support for sam9x7 SoC Varshini Rajendran
2024-09-03  6:43 ` [PATCH v7 07/12] power: reset: at91-reset: add sdhwc " Varshini Rajendran
2024-09-03  6:43 ` [PATCH v7 08/12] dt-bindings: reset: atmel,at91sam9260-reset: add sam9x7 Varshini Rajendran
2024-09-03  6:43 ` [PATCH v7 09/12] dt-bindings: power: reset: atmel,sama5d2-shdwc: " Varshini Rajendran
2024-09-03  6:43 ` [PATCH v7 10/12] ARM: dts: at91: sam9x7: add device tree for SoC Varshini Rajendran
2024-09-04  7:13   ` claudiu beznea
2024-09-03  6:44 ` [PATCH v7 11/12] dt-bindings: arm: add sam9x75 curiosity board Varshini Rajendran
2024-09-03  6:44 ` [PATCH v7 12/12] ARM: dts: microchip: sam9x75_curiosity: " Varshini Rajendran
2024-09-04  7:14   ` claudiu beznea
2024-09-12  3:47   ` Hari.PrasathGE
2024-09-20  6:01   ` Alexander Dahl
2024-09-20  7:04     ` Varshini.Rajendran
2024-09-20  6:07   ` Alexander Dahl
2024-09-03 14:26 ` [PATCH v7 00/12] Add support for sam9x7 SoC family Rob Herring (Arm)
2024-09-20  5:15 ` Varshini.Rajendran
2024-11-06 17:52 ` Claudiu Beznea

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=e39fe3df-3110-4f69-af9f-39dbd52d4865@microchip.com \
    --to=nicolas.ferre@microchip.com \
    --cc=Hari.PrasathGE@microchip.com \
    --cc=alexandre.belloni@bootlin.com \
    --cc=claudiu.beznea@tuxon.dev \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tglx@linutronix.de \
    --cc=varshini.rajendran@microchip.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
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