]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i3c: master: svc: wait for Manual ACK/NACK Done before next step
authorFrank Li <Frank.Li@nxp.com>
Wed, 2 Oct 2024 14:50:37 +0000 (10:50 -0400)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 31 Oct 2024 22:53:39 +0000 (23:53 +0100)
commit3ca529194e292a9a9548951ed20cfd6f0c98c94d
tree3c78c8744c49332d5212d4a2aebbe1dd89705b80
parentf36f6624cbacb31d25d2cc11dfb1e74cd2a3996e
i3c: master: svc: wait for Manual ACK/NACK Done before next step

Wait for the controller to complete emitting ACK/NACK, otherwise the next
command may be omitted by the hardware.

Add a "command done" check in svc_i3c_master_nack(ack)_ibi() and change the
return type to int to flag possible timeouts.

Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20241002-svc-i3c-hj-v6-5-7e6e1d3569ae@nxp.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/i3c/master/svc-i3c-master.c