i3c: master: svc: add support for slave to stop returning data
authorClark Wang <xiaoning.wang@nxp.com>
Mon, 27 Dec 2021 07:45:25 +0000 (15:45 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 5 Jan 2022 08:53:44 +0000 (09:53 +0100)
commitd5e512574dd2eb06ace859b27cafb0de41743bb5
treeb80e6dd65916bdbff3dfe09722d3229115cbeed7
parent9fd6b5ce8523460b024361a802f5e5738d2da543
i3c: master: svc: add support for slave to stop returning data

When i3c controller reads data from slave device, slave device can stop
returning data with an ACK after any byte.
Add this support for svc i3c controller. Otherwise, it will timeout
when the slave device ends the read operation early.

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