You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the new combined transactions for the I2C controller introduced with commit a5ca1aa, i2c read operations return incorrect results:
See this example:
The register 0 always contained the value "0x05", but the correct value had been returned only on the third read operation. I have check the I2C communication with the scope, the device returned 0x05 on all 3 read operations.
With combined transactions disabled by default after commit b9a86b0, I2C reads are working again.
The bug must therefore be in the combined transaction code. This should be fixed as enabling these combined transactions might break support for lots of I2C devices. I can confirm that this problem broke the HiFiBerry Digi/wm8804 driver.
If needed, I can provide test hardware to the developer, but I guess, the same issue happens with other I2C devices too.
Closing as default behaviour works. Optional behaviour should be avoided if it causes problems.
Please submit a pull request if you have a way of improving behaviour.
Activity
popcornmix commentedon May 31, 2014
I'm not understanding the problem.
By default combined transactions are disbabled, and so everything works, correct?
popcornmix commentedon May 31, 2014
Some use cases benefit from enabling the combined transactions so I see no necessity to remove that as an option.
popcornmix commentedon May 31, 2014
Ideal behaviour is that the combined=1 module parameter is removed and it works with all devices (utilising combined transaction where possible).
But I don't know much about I2C or this driver so would appreciate any fixes that improve the behaviour.
popcornmix commentedon Jun 29, 2014
Closing as default behaviour works. Optional behaviour should be avoided if it causes problems.
Please submit a pull request if you have a way of improving behaviour.
i2c: imx: Fix external abort on interrupt in exit paths
i2c: imx: Fix external abort on interrupt in exit paths