i3c: master: svc: add NACK check after start byte sent
authorClark Wang <xiaoning.wang@nxp.com>
Wed, 17 May 2023 03:30:30 +0000 (11:30 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 4 Jun 2023 22:50:51 +0000 (00:50 +0200)
commit49b472ebc61de3d4aa7cc57539246bb39f6c5128
treeef827a217b4254e1f801c561b11774cc8b16daec
parent33beadb3b1ab74e69db2c49d9663f3a93a273943
i3c: master: svc: add NACK check after start byte sent

Add NACK check after start byte is sent.
It is possible to detect early that a device is not on the bus
and avoid invalid transmissions thereafter.

Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20230517033030.3068085-3-xiaoning.wang@nxp.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/i3c/master/svc-i3c-master.c