Message ID | 20170312132544.GA17687@roeck-us.net (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
On Sun, Mar 12, 2017 at 06:25:44AM -0700, Guenter Roeck wrote: > I found some reference suggesting that The IT8705F may respond on > both SIO addresses. Can you try the following patch ? Thanks for the patch - it'll take about a week or so for me to test, as I can only risk testing it when I'm physically at the machine.
diff --git a/drivers/hwmon/it87.c b/drivers/hwmon/it87.c index 3e57a6120551..cce0683cf2fd 100644 --- a/drivers/hwmon/it87.c +++ b/drivers/hwmon/it87.c @@ -3215,7 +3215,15 @@ static int __init sm_it87_init(void) err = it87_device_add(i, isa_address, &sio_data); if (err) goto exit_dev_unregister; + found = true; + + /* + * Don't continue searching after finding an older chip + * which may respond on both SIO addresses. + */ + if (sio_data.type == it87) + break; } if (!found) {