i3c: dw: Return the length from a read priv_xfer
authorMatt Johnston <matt@codeconstruct.com.au>
Thu, 30 Mar 2023 06:15:32 +0000 (14:15 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 27 Apr 2023 21:49:43 +0000 (23:49 +0200)
commit67df5ce9dd8870d3e53de5ebd6aecf609b713044
tree280186fbc7f4fbe3c2f6da4d9b1787cd00f5b189
parent2810f1de814adb7728b1068586bebcf733cf1992
i3c: dw: Return the length from a read priv_xfer

We currently assume that the rx_len of a read command will be as
submitted, but we may have a shorter read than expected.

This change populates the output i3c xfer length from the actually-read
length.

Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Link: https://lore.kernel.org/r/f4fff7ab18dee1f662dc7a5a4111fcd921e6792b.1680156630.git.jk@codeconstruct.com.au
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/i3c/master/dw-i3c-master.c