Patch "i3c: add actual_len in i3c_priv_xfer" has been added to the 6.6-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    i3c: add actual_len in i3c_priv_xfer

to the 6.6-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     i3c-add-actual_len-in-i3c_priv_xfer.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit fae5a14fea33cfbcbb1fe4c79cf420f6113293d4
Author: Frank Li <Frank.Li@xxxxxxx>
Date:   Fri Dec 1 17:25:29 2023 -0500

    i3c: add actual_len in i3c_priv_xfer
    
    [ Upstream commit e5e3df06ac98d15cfb10bb5c12356709365e91b2 ]
    
    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@xxxxxxxxxxx>
    Signed-off-by: Frank Li <Frank.Li@xxxxxxx>
    Link: https://lore.kernel.org/r/20231201222532.2431484-4-Frank.Li@xxxxxxx
    Signed-off-by: Alexandre Belloni <alexandre.belloni@xxxxxxxxxxx>
    Stable-dep-of: 7f3d633b460b ("i3c: master: svc: change ENXIO to EAGAIN when IBI occurs during start frame")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/include/linux/i3c/device.h b/include/linux/i3c/device.h
index 90fa83464f003..ef6217da8253b 100644
--- a/include/linux/i3c/device.h
+++ b/include/linux/i3c/device.h
@@ -54,6 +54,7 @@ enum i3c_hdr_mode {
  * struct i3c_priv_xfer - I3C SDR private transfer
  * @rnw: encodes the transfer direction. true for a read, false for a write
  * @len: transfer length in bytes of the transfer
+ * @actual_len: actual length in bytes are transferred by the controller
  * @data: input/output buffer
  * @data.in: input buffer. Must point to a DMA-able buffer
  * @data.out: output buffer. Must point to a DMA-able buffer
@@ -62,6 +63,7 @@ enum i3c_hdr_mode {
 struct i3c_priv_xfer {
 	u8 rnw;
 	u16 len;
+	u16 actual_len;
 	union {
 		void *in;
 		const void *out;




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux