Thread (22 messages) 22 messages, 3 authors, 2022-07-26

Re: [PATCH 12/12] i2c: xiic: Correct the BNB interrupt enable sequence

From: Krzysztof Adamski <hidden>
Date: 2022-06-29 13:14:07
Also in: linux-i2c, lkml

W dniu 24.06.2022 o 14:05, Manikanta Guntupalli pisze:
From: Srinivas Goud <redacted>

With updated AXI IIC IP core(v2.1)there is change in IP behavior
in dynamic mode, where controller initiate read transfer on IIC
bus only after getting the value for the number of bytes to receive.

In the existing xiic_start_recv function Bus Not Busy(BNB)
interrupt is enabled just after "slave address + start"
write to FIFO and before the "count + stop"write to FIFO.
Since IIC controller drives the start address of a transaction
on the bus only after it has received the byte count information
the above sequence can lead to spurious BNB interrupt in case
there is any delay after "slave address + start" write to FIFO.

This is fixed by ensuring that BNB interrupt is enabled only
after "count + stop" has been written to FIFO.

Signed-off-by: Srinivas Goud <redacted>
Signed-off-by: Manikanta Guntupalli <redacted>
---
[...]

Does this spurious interrupt cause any trouble or it is just ignored and 
the only problem is unneeded extra CPU load?

Krzysztof


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help