sh: Fixes some write posting issues in the interrupt handling for SH
It is possible for the CPU to re-enable it's interrupt block bit before the write to the interrupt controller has actually masked out the external interupt at the controller. We get around this by reading back from the interrupt controller which will ensure the write has happened. Signed-off-by: Stuart Menefy <stuart.menefy@st.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
committed by
Paul Mundt
parent
bd4fb4d4c1
commit
6000fc4d6f
@@ -35,6 +35,7 @@ static void disable_ipr_irq(unsigned int irq)
|
||||
unsigned long addr = get_ipr_desc(irq)->ipr_offsets[p->ipr_idx];
|
||||
/* Set the priority in IPR to 0 */
|
||||
__raw_writew(__raw_readw(addr) & (0xffff ^ (0xf << p->shift)), addr);
|
||||
(void)__raw_readw(addr); /* Read back to flush write posting */
|
||||
}
|
||||
|
||||
static void enable_ipr_irq(unsigned int irq)
|
||||
|
Reference in New Issue
Block a user