On Mon, 2 Nov 2026 at 10:18, Lorand Marton <[email protected]> wrote: > > Writing 1 to DONE, ERR or CLKT in the S register clears the bit, but > bcm2835_i2c_write() did not recompute the interrupt, so with INTD set > the DONE interrupt stayed raised after the guest acknowledged it. > Linux i2c-bcm2835 clears C before it clears S and so lowers the line > anyway; a driver that clears DONE in S and keeps INTD set took the > interrupt again and again. > > Update the interrupt after the write, as the C and FIFO writes do. > > Test that clearing DONE lowers the interrupt. > > Fixes: 9cf3bc65afdb ("hw/i2c: Implement Broadcom Serial Controller (BSC)") > Signed-off-by: Lorand Marton <[email protected]> > ---
Reviewed-by: Peter Maydell <[email protected]> thanks -- PMM
