Skip to contentSkip to conversation

irq: irq-hip04: initialize hip04_cpu_map to 0xffff

PATCH Applied Wang Long 3 participants 4 messages Dec 11, 2014 – Jan 7, 2015 irqchip drivers

lore
Share & tools
lore

Wang Long

author
#0 lore raw

PATCH 1/1 irq: irq-hip04: initialize hip04_cpu_map to 0xffff

HiP04 GIC extends to support 16 cores, so we should initialize the hip04_cpu_map to 0xffff.

---
 drivers/irqchip/irq-hip04.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/irqchip/irq-hip04.c +1 -1
index 9c8f8335..8eee46b 100644
@@ -382,7 +382,7 @@ hip04_of_init(struct device_node *node, struct device_node *parent)
 	 * It will be refined as each CPU probes its ID.
 	 */
 	for (i = 0; i < NR_HIP04_CPU_IF; i++)
-		hip04_cpu_map[i] = 0xff;
+		hip04_cpu_map[i] = 0xffff;
 
 	/*
 	 * Find out how many interrupts are supported.
Signature · 1 line
1.8.3.4
Acked-by on v1 1/1
#1 lore raw
Quoted 22 lines · Wang Long

HiP04 GIC extends to support 16 cores, so we should initialize the hip04_cpu_map to 0xffff.

---
 drivers/irqchip/irq-hip04.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/irqchip/irq-hip04.c +1 -2
index 9c8f8335..8eee46b 100644
@@ -382,7 +382,7 @@ hip04_of_init(struct device_node *node, struct device_node *parent)
         * It will be refined as each CPU probes its ID.
         */
        for (i = 0; i < NR_HIP04_CPU_IF; i++)
-               hip04_cpu_map[i] = 0xff;
+               hip04_cpu_map[i] = 0xffff;
 
        /*
         * Find out how many interrupts are supported.
--
Quoted 2 lines

1.8.3.4

Best Regards
Haojian

#2 lore raw
Quoted 28 lines · Haojian Zhuang
Quoted 22 lines · Wang Long

HiP04 GIC extends to support 16 cores, so we should initialize the hip04_cpu_map to 0xffff.

---
 drivers/irqchip/irq-hip04.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/irqchip/irq-hip04.c +1 -2
index 9c8f8335..8eee46b 100644
@@ -382,7 +382,7 @@ hip04_of_init(struct device_node *node, struct device_node *parent)
         * It will be refined as each CPU probes its ID.
         */
        for (i = 0; i < NR_HIP04_CPU_IF; i++)
-               hip04_cpu_map[i] = 0xff;
+               hip04_cpu_map[i] = 0xffff;
 
        /*
         * Find out how many interrupts are supported.
--
Quoted 2 lines

1.8.3.4

Quoted 4 lines

Best Regards
Haojian

hi Thomas Gleixner, Jason Cooper

could you please help to apply this patch?

Best Regards
Wang Long

Applied
#3 lore raw
In reply to Wang Long
Quoted 7 lines · Wang Long

HiP04 GIC extends to support 16 cores, so we should initialize the hip04_cpu_map to 0xffff.

---
 drivers/irqchip/irq-hip04.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to irqchip/urgent with Haojian Zhuang's Ack.

thx,

Jason.