i3c: master: svc: manually emit NACK/ACK for hotjoin
authorFrank Li <Frank.Li@nxp.com>
Wed, 2 Oct 2024 14:50:34 +0000 (10:50 -0400)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 31 Oct 2024 22:53:39 +0000 (23:53 +0100)
commite22405a812a11e5b01bfbb18c5277dd3e69ba589
tree2dcf37a2561ca8c6859248180d425b06c6d6b0c7
parent3c6684a15010822a83f312d6b9d4714c36f0f7e2
i3c: master: svc: manually emit NACK/ACK for hotjoin

When the address is arbitrated at send address, the hardware can auto-send
NACK if it is an IBI. However, manual emission of NACK/ACK is needed for
hot join or controller request events.

Add help function svc_i3c_master_handle_ibi_won() to check event type and
send out NACK if the event is not an IBI.

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-2-7e6e1d3569ae@nxp.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/i3c/master/svc-i3c-master.c