mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-23 07:23:12 +02:00
i2c-for-6.16-rc5
designware: initialise msg_write_idx during transfer microchip: check return value from core xfer call realtek: add 'reg' property constraint to the device tree -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmhpIoEACgkQFA3kzBSg KbY/Mw//S6Z8wRtoZPGrnp3vrdbfXWExmF0y0VU+gbY1CjFB433yWRz33yOm3o1o KURWHH9+elRELL+nDsHB/GK0r20Gf2L92bu6mi7LzEjDkKFDxDikbVjF5kAudD+H vZGUBarrou0LkiFqRoWi3RlZmDLs8y8ZCUcMHZSiKCdr2ad6b5QJizzHyTDe/WWC 1xyTH+zLt2FUIDKjeELed7jo/Cj0keiNvwWOKeJ0ahWGO1ZnTUtzLKurtcDJrDEU v1Wd1zERDGxGu9dqtlVWJXMWZ2gTRjFC3vUvwG1ar6pxvSSPf2qP4RNVET9vZb66 6CO7oEeJ3mtAWS1p0Myikg2FXdDW0RPrUgCtDEJgWN8fwlNI9stkaHrDyIDxQ/5j ycjZu8GLGCfpzY2zWhe0s9+8V+OCX2RZOPj+V332xTmgV5ApOZwcMFJLJFIZOYit AJ/lFRXfaHpM558zTPR/KmMp4hj7Rawxh05D8V1Rh1Q2yJvGAG9wuLaFEK2NXDm5 CbPOB/5ClZ+KxIQNraiz0soEIgg0wIrDpCV0YhkFSRtHCFp8J5EsgdmI3guWkOfV waq6ihmtsZvbC3VGax+fYsRIZpGaLlnQhzjxlLd5UvASEMH+36dfkNphS6TMMkrn n+40JcJmWNhZQOarrpFli0OD0BdBOedPImoyPVV+zDrbat0odYE= =NnN/ -----END PGP SIGNATURE----- Merge tag 'i2c-for-6.16-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux Pull i2c fixes from Wolfram Sang: - designware: initialise msg_write_idx during transfer - microchip: check return value from core xfer call - realtek: add 'reg' property constraint to the device tree * tag 'i2c-for-6.16-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: dt-bindings: i2c: realtek,rtl9301: Fix missing 'reg' constraint i2c: microchip-core: re-fix fake detections w/ i2cdetect i2c/designware: Fix an initialization issue
This commit is contained in:
commit
fd860cd781
|
@ -26,7 +26,8 @@ properties:
|
|||
- const: realtek,rtl9301-i2c
|
||||
|
||||
reg:
|
||||
description: Register offset and size this I2C controller.
|
||||
items:
|
||||
- description: Register offset and size this I2C controller.
|
||||
|
||||
"#address-cells":
|
||||
const: 1
|
||||
|
|
|
@ -363,6 +363,7 @@ static int amd_i2c_dw_xfer_quirk(struct i2c_adapter *adap, struct i2c_msg *msgs,
|
|||
|
||||
dev->msgs = msgs;
|
||||
dev->msgs_num = num_msgs;
|
||||
dev->msg_write_idx = 0;
|
||||
i2c_dw_xfer_init(dev);
|
||||
|
||||
/* Initiate messages read/write transaction */
|
||||
|
|
|
@ -435,6 +435,7 @@ static int mchp_corei2c_smbus_xfer(struct i2c_adapter *adap, u16 addr, unsigned
|
|||
u8 tx_buf[I2C_SMBUS_BLOCK_MAX + 2];
|
||||
u8 rx_buf[I2C_SMBUS_BLOCK_MAX + 1];
|
||||
int num_msgs = 1;
|
||||
int ret;
|
||||
|
||||
msgs[CORE_I2C_SMBUS_MSG_WR].addr = addr;
|
||||
msgs[CORE_I2C_SMBUS_MSG_WR].flags = 0;
|
||||
|
@ -505,7 +506,10 @@ static int mchp_corei2c_smbus_xfer(struct i2c_adapter *adap, u16 addr, unsigned
|
|||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
mchp_corei2c_xfer(&idev->adapter, msgs, num_msgs);
|
||||
ret = mchp_corei2c_xfer(&idev->adapter, msgs, num_msgs);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
if (read_write == I2C_SMBUS_WRITE || size <= I2C_SMBUS_BYTE_DATA)
|
||||
return 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user