i3c: fix I3C_SDR bit number
[email protected]
maintainerPATCH 1/2 i3c: fix I3C_SDR bit number
From: Alexandre Belloni <[email protected]>
0x31 is decimal 49 and doesn't fit in a 32 bit integer, switch to the intended decimal 31.
Reported-by kernel test robot <[email protected]>
Signed-off-by Alexandre Belloni <[email protected]>
--- include/linux/i3c/device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/i3c/device.h +1 -1
@@ -51,7 +51,7 @@ enum i3c_xfer_mode {I3C_HDR_TSP =1 ,I3C_HDR_TSL =2 ,/* Use for default SDR transfer mode */ - I3C_SDR = 0x31, + I3C_SDR = 31, };/**
Signature · 1 line
2.52.0
[email protected]
maintainerPATCH 2/2 i3c: document i3c_xfers
From: Alexandre Belloni <[email protected]>
i3c_xfers was left undocumented, document it.
Reported-by Stephen Rothwell <[email protected]>
Signed-off-by Alexandre Belloni <[email protected]>
--- include/linux/i3c/master.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
include/linux/i3c/master.h +5 -1
@@ -418,7 +418,11 @@ struct i3c_bus {* @send_ccc_cmd: send a CCC command * This method is mandatory. * @priv_xfers: do one or several private I3C SDR transfers -* This method is mandatory. +* This method is mandatory when i3c_xfers is not implemented. It +* is deprecated. +* @i3c_xfers: do one or several I3C SDR or HDR transfers +* This method is mandatory when priv_xfers is not implemented but +* should be implemented instead of priv_xfers. * @attach_i2c_dev: called every time an I2C device is attached to the bus. * This is a good place to attach master controller specific * data to I2C devices.
Signature · 1 line
2.52.0
Re: [PATCH 2/2] i3c: document i3c_xfers
Quoted 7 lines · On Tue, Dec 02, 2025 at 04:38:03PM +0100, [email protected] wrote:
From: Alexandre Belloni <[email protected]>
i3c_xferswas left undocumented, document it.Reported-by Stephen Rothwell <[email protected]>Signed-off-by Alexandre Belloni <[email protected]>---
Reviewed-by Frank Li <[email protected]>
Quoted 23 lines
include/linux/i3c/master.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)include/linux/i3c/master.h +5
-2@@ -418,7 +418,11 @@ struct i3c_bus {* @send_ccc_cmd: send a CCC command * This method is mandatory. * @priv_xfers: do one or several private I3C SDR transfers -* This method is mandatory. +* This method is mandatory when i3c_xfers is not implemented. It +* is deprecated. +* @i3c_xfers: do one or several I3C SDR or HDR transfers +* This method is mandatory when priv_xfers is not implemented but +* should be implemented instead of priv_xfers. * @attach_i2c_dev: called every time an I2C device is attached to the bus. * This is a good place to attach master controller specific * data to I2C devices. -- 2.52.0
Quoted 11 lines · On Tue, Dec 02, 2025 at 04:38:02PM +0100, [email protected] wrote:
From: Alexandre Belloni <[email protected]>
0x31is decimal 49 and doesn't fit in a 32 bit integer, switch to the intended decimal 31.Reported-by kernel test robot <[email protected]>Signed-off-by Alexandre Belloni <[email protected]>---
Thanks.
Reviewed-by Frank Li <[email protected]>
Quoted 19 lines
include/linux/i3c/device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/linux/i3c/device.h +1
-2@@ -51,7 +51,7 @@ enum i3c_xfer_mode {I3C_HDR_TSP =1 ,I3C_HDR_TSL =2 ,/* Use for default SDR transfer mode */ - I3C_SDR = 0x31, + I3C_SDR = 31, };/** -- 2.52.0