Skip to content
Snippets Groups Projects
Commit d23b5799 authored by Gong Tao's avatar Gong Tao Committed by Jonas Bonn
Browse files

openrisc: mask interrupts in irq_mask_ack function


or1k_pic_mask_ack was failing to actually mask the IRQ.

Signed-off-by: default avatarGong Tao <gongtao0607@gmail.com>
Signed-off-by: default avatarJonas Bonn <jonas@southpole.se>
parent 8eea8a6a
No related branches found
No related tags found
No related merge requests found
...@@ -87,9 +87,11 @@ static void or1k_pic_mask_ack(struct irq_data *data) ...@@ -87,9 +87,11 @@ static void or1k_pic_mask_ack(struct irq_data *data)
/* Comments for pic_ack apply here, too */ /* Comments for pic_ack apply here, too */
#ifdef CONFIG_OR1K_1200 #ifdef CONFIG_OR1K_1200
mtspr(SPR_PICMR, mfspr(SPR_PICMR) & ~(1UL << data->hwirq));
mtspr(SPR_PICSR, mfspr(SPR_PICSR) & ~(1UL << data->hwirq)); mtspr(SPR_PICSR, mfspr(SPR_PICSR) & ~(1UL << data->hwirq));
#else #else
WARN(1, "Interrupt handling possibly broken\n"); WARN(1, "Interrupt handling possibly broken\n");
mtspr(SPR_PICMR, (1UL << data->hwirq));
mtspr(SPR_PICSR, (1UL << data->hwirq)); mtspr(SPR_PICSR, (1UL << data->hwirq));
#endif #endif
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment