Hi sir,
Our environment:
OS version: Linux ubuntu-Default-string 5.4.0-48-generic #52~18.04.1-Ubuntu SMP Thu Sep 10 12:50:22 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
UCD90160: i2c bus 4, i2c address is 0x6b
1. We use i2cset command to CLEAR_FAULTS.
ex. i2cset -f -y 4 0x6b 0x3
2. We use i2cget command to read a word data from STATUS_WORD(0x79).
ex. i2cget -f -y 4 0x6b 0x79 w
The STATUS_WORD is 0x0 but it is wrong because we read a word data from MFR_STATUS(0xf3) that is 0x4.
ex. i2cget -f -y 4 0x6b 0xf3 w
The issue only happen at the first boot.
If we power off and then power on the device, the issue can't happen.
It means that the STATUS_WORD is 0x1000 after first boot.
Thanks,
Willy