• Biju Das's avatar
    irqchip/renesas-rzg2l: Flush posted write in irq_eoi() · 9eec61df
    Biju Das authored
    The irq_eoi() callback of the RZ/G2L interrupt chip clears the relevant
    interrupt cause bit in the TSCR register by writing to it.
    
    This write is not sufficient because the write is posted and therefore not
    guaranteed to immediately clear the bit. Due to that delay the CPU can
    raise the just handled interrupt again.
    
    Prevent this by reading the register back which causes the posted write to
    be flushed to the hardware before the read completes.
    
    Fixes: 3fed0955 ("irqchip: Add RZ/G2L IA55 Interrupt Controller driver")
    Signed-off-by: default avatarBiju Das <biju.das.jz@bp.renesas.com>
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    9eec61df
irq-renesas-rzg2l.c 12 KB