Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1568790 > unrolled thread

[PATCH 3/6] ARCv2: IRQ: Add macro for the first external interrupt number

Started byYuriy Kolerov <yuriy.kolerov@synopsys.com>
First post2017-01-28 01:10 +0100
Last post2017-01-30 20:20 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3/6] ARCv2: IRQ: Add macro for the first external interrupt number Yuriy Kolerov <yuriy.kolerov@synopsys.com> - 2017-01-28 01:10 +0100
    Re: [PATCH 3/6] ARCv2: IRQ: Add macro for the first external  interrupt number Vineet Gupta <Vineet.Gupta1@synopsys.com> - 2017-01-30 20:20 +0100

#1568790 — [PATCH 3/6] ARCv2: IRQ: Add macro for the first external interrupt number

FromYuriy Kolerov <yuriy.kolerov@synopsys.com>
Date2017-01-28 01:10 +0100
Subject[PATCH 3/6] ARCv2: IRQ: Add macro for the first external interrupt number
Message-ID<t4oKC-2wK-5@gated-at.bofh.it>
Signed-off-by: Yuriy Kolerov <yuriy.kolerov@synopsys.com>
---
 arch/arc/include/asm/irq.h   | 1 +
 arch/arc/kernel/intc-arcv2.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arc/include/asm/irq.h b/arch/arc/include/asm/irq.h
index c0fa0d2..e61ad30 100644
--- a/arch/arc/include/asm/irq.h
+++ b/arch/arc/include/asm/irq.h
@@ -16,6 +16,7 @@
 #ifdef CONFIG_ISA_ARCV2
 #define IPI_IRQ		19
 #define SOFTIRQ_IRQ	21
+#define FIRST_EXT_IRQ	24
 #endif
 
 #include <linux/interrupt.h>
diff --git a/arch/arc/kernel/intc-arcv2.c b/arch/arc/kernel/intc-arcv2.c
index 2f31bb1..a9a7497 100644
--- a/arch/arc/kernel/intc-arcv2.c
+++ b/arch/arc/kernel/intc-arcv2.c
@@ -98,7 +98,7 @@ static int arcv2_irq_map(struct irq_domain *d, unsigned int irq,
 	 * core intc IRQs [16, 23]:
 	 * Statically assigned always private-per-core (Timers, WDT, IPI, PCT)
 	 */
-	if (hw < 24) {
+	if (hw < FIRST_EXT_IRQ) {
 		/*
 		 * A subsequent request_percpu_irq() fails if percpu_devid is
 		 * not set. That in turns sets NOAUTOEN, meaning each core needs
-- 
2.7.4

[toc] | [next] | [standalone]


#1570045 — Re: [PATCH 3/6] ARCv2: IRQ: Add macro for the first external interrupt number

FromVineet Gupta <Vineet.Gupta1@synopsys.com>
Date2017-01-30 20:20 +0100
SubjectRe: [PATCH 3/6] ARCv2: IRQ: Add macro for the first external interrupt number
Message-ID<t5pEC-7OD-17@gated-at.bofh.it>
In reply to#1568790
On 01/27/2017 04:01 PM, Yuriy Kolerov wrote:
> Signed-off-by: Yuriy Kolerov <yuriy.kolerov@synopsys.com>

Please squash this with patch 5/6 !

> ---
>  arch/arc/include/asm/irq.h   | 1 +
>  arch/arc/kernel/intc-arcv2.c | 2 +-
>  2 files changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arc/include/asm/irq.h b/arch/arc/include/asm/irq.h
> index c0fa0d2..e61ad30 100644
> --- a/arch/arc/include/asm/irq.h
> +++ b/arch/arc/include/asm/irq.h
> @@ -16,6 +16,7 @@
>  #ifdef CONFIG_ISA_ARCV2
>  #define IPI_IRQ		19
>  #define SOFTIRQ_IRQ	21
> +#define FIRST_EXT_IRQ	24
>  #endif
>  
>  #include <linux/interrupt.h>
> diff --git a/arch/arc/kernel/intc-arcv2.c b/arch/arc/kernel/intc-arcv2.c
> index 2f31bb1..a9a7497 100644
> --- a/arch/arc/kernel/intc-arcv2.c
> +++ b/arch/arc/kernel/intc-arcv2.c
> @@ -98,7 +98,7 @@ static int arcv2_irq_map(struct irq_domain *d, unsigned int irq,
>  	 * core intc IRQs [16, 23]:
>  	 * Statically assigned always private-per-core (Timers, WDT, IPI, PCT)
>  	 */
> -	if (hw < 24) {
> +	if (hw < FIRST_EXT_IRQ) {
>  		/*
>  		 * A subsequent request_percpu_irq() fails if percpu_devid is
>  		 * not set. That in turns sets NOAUTOEN, meaning each core needs
> 

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web