or1k_pic_mask_ack() did not mask the irq. Signed-off-by: Gong Tao <[email protected]> --- arch/openrisc/kernel/irq.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/arch/openrisc/kernel/irq.c b/arch/openrisc/kernel/irq.c index a65aede..6619c91 100644 --- a/arch/openrisc/kernel/irq.c +++ b/arch/openrisc/kernel/irq.c @@ -91,9 +91,12 @@ static void or1k_pic_mask_ack(struct irq_data *data) /* Comments for pic_ack apply here, too */ #ifdef CONFIG_OR1K_1200 + /* MUST mask first. added by [email protected] */ + mtspr(SPR_PICMR, mfspr(SPR_PICMR) & ~(1UL << data->hwirq)); mtspr(SPR_PICSR, mfspr(SPR_PICSR) & ~(1UL << data->hwirq)); #else WARN(1, "Interrupt handling possibily broken\n"); + mtspr(SPR_PICMR, (1UL << data->hwirq)); mtspr(SPR_PICSR, (1UL << data->hwirq)); #endif } -- 1.7.11.1 -- 龚韬 敬上 Sincerely, Gong Tao 北京航空航天大学,高等工程学院 School of Advanced Engineering @ Beihang UNIV. Mail: gongtao0607[at]gmail[dot]com <[email protected]> Tel: +86 15210988463 -------------------- | OpenPGP keys: DE4CCC4F(gongtao0607[at]gmail[dot]com) | OpenPGP fingerprint: 1C93 0B63 3466 74F2 D3C3 D873 4F7D 76E5 DE4C CC4F --------------------
_______________________________________________ Linux mailing list [email protected] http://lists.openrisc.net/listinfo/linux
