Ticket #2327 (closed defect: fixed)
sensors-detect: Fix the bus numbering prediction magic
| Reported by: | khali | Owned by: | khali |
|---|---|---|---|
| Priority: | minor | Milestone: | 3.1.0 |
| Component: | misc | Version: | |
| Keywords: | Cc: |
Description
There's some old code to attempt to figure out how I2C buses will be numbered after next reboot, so that the "ignore" module options are correct. This code is broken in more than one way. It assumes that it knows about all drivers which create i2c buses, which is not true (all graphics and multimedia adapters in particular are missing.) It assumes that the user will reboot after running sensors-detect. It assumes that i2c bus drivers don't autoload, while they almost all do by now. And it assumes that the bus numbering is stable over reboot, which is not necessarily the case (I can't think of a fix for this one though.)
