Paul Goyette wrote:
To be more precise, the existing i2c code includes a bus scan to enumerate the devices on the bus, however this loop is currently #ifdef'd out. It is unclear (to me, at least) if this enumeration has ever been tested, or if it's probing of bus addresses is both reliable and non-intrusive; I have to assume that it was #ifdef'd out for a reason. Allowing wildcarding of the i2c addr locator
It was causing hangs at boot on some machines and erratic behaviour on others, which was why it was disabled.
There is a limited subset of i2c devices that can be enumerated (eg. for direct config), this is described in the smbus specification but I'm not sure how many (if any) devices implement it.
Cheers, Jared