Re: [PATCH v3 2/5] i2c:ocores: do not handle IRQ if IF is not set

2019-02-08 Thread Andrew Lunn
On Fri, Feb 08, 2019 at 05:11:58PM +0100, Federico Vaga wrote: > If the Interrupt Flag (IF) is not set, we should not handle the IRQ: > - the line can be shared with other devices > - it can be a spurious interrupt > > To avoid reading twice the status register, the ocores_process() function >

[PATCH v3 2/5] i2c:ocores: do not handle IRQ if IF is not set

2019-02-08 Thread Federico Vaga
If the Interrupt Flag (IF) is not set, we should not handle the IRQ: - the line can be shared with other devices - it can be a spurious interrupt To avoid reading twice the status register, the ocores_process() function expects it to be read by the caller. Signed-off-by: Federico Vaga Acked-by: