Issue reading on I2C bus PMBUS device INA233
STM32MP135 is connect on i2c bus to 3 devices:
- LM75
- PCF8563
- INA233
I am using linux kernel 5.15.24 synched with your github repo. LM75 and PCF8563 are working fine. INA233 has problems to manage the PEC (Packet Error Correction)
I am seeing lot of this errors:
stm32f7-i2c 40012000.i2c: Bad PEC 0x89 vs. 0x79
stm32f7-i2c 40012000.i2c: Bad PEC 0x89 vs. 0xc7
stm32f7-i2c 40012000.i2c: Bad PEC 0x89 vs. 0xed
I checked on the st driver that the PECEN is flagged since the i2c slave device has the PEC capability, and I am receving the PEC fo=rom the device in the log: 0x79, 0xcf, 0xed.
The strange think is that the register value read from stm device is always 0x89.
This value is read using the
internal_pec = readl_relaxed(i2c_dev->base + STM32F7_I2C_PECR)
It seems the register is not properly updated.
Any idea or suggestion?
