i3c: add actual_len in i3c_priv_xfer
authorFrank Li <Frank.Li@nxp.com>
Fri, 1 Dec 2023 22:25:29 +0000 (17:25 -0500)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 7 Jan 2024 23:49:20 +0000 (00:49 +0100)
commite5e3df06ac98d15cfb10bb5c12356709365e91b2
treec2a250068d976402f95a9af2cc1062e085846d70
parent05b26c31a4859af9e75b7de77458e99358364fe1
i3c: add actual_len in i3c_priv_xfer

In MIPI I3C Specification:

"Ninth Bit of SDR Target Returned (Read) Data as End-of-Data: In I2C, the
ninth Data bit from Target to Controller is an ACK by the Controller. By
contrast, in I3C this bit allows the Target to end a Read, and allows the
Controller to Abort a Read. In SDR terms, the ninth bit of Read data is
referred to as the T-Bit (for ‘Transition’)"

I3C allow devices early terminate data transfer. So need "actual_len" field
to indicate how much get by i3c_priv_xfer.

Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20231201222532.2431484-4-Frank.Li@nxp.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
include/linux/i3c/device.h