2 Dec
2011
2 Dec
'11
1:14 p.m.
Timur Tabi wrote:
Instead of using the 'cell-index' property in the I2C adapter node to determine the adapter number, just query the i2c_adapter object directly.
Previously, the I2C nodes always appeared in cell-index order, so the dynamic numbering coincided with the cell-index property. With commit ab827d97 ("powerpc/85xx: Rework P1022DS device tree"), the I2C nodes are unintentionally reversed in the device tree, and so the machine driver guesses the wrong I2C adapter number.
Signed-off-by: Timur Tabitimur@freescale.com
Mark,
Can you hold off on applying patch #2 for the moment? I just thought of something that I want to try first.
Patch #1 is good to go, though.
--
Timur Tabi
Linux kernel developer at Freescale