Guenter Roeck 8c08267567 hwmon: (smsc47b397) Use request_muxed_region for Super-IO accesses
Super-IO accesses may fail on a system with no or unmapped LPC bus.

Also, other drivers may attempt to access the LPC bus at the same time,
resulting in undefined behavior.

Use request_muxed_region() to ensure that IO access on the requested
address space is supported, and to ensure that access by multiple drivers
is synchronized.

Fixes: 8d5d45fb1468 ("I2C: Move hwmon drivers (2/3)")
Reported-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Reported-by: John Garry <john.garry@huawei.com>
Cc: John Garry <john.garry@huawei.com>
Acked-by: John Garry <john.garry@huawei.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2019-04-15 17:19:53 -07:00
..
2019-04-15 17:19:23 -07:00
2019-04-15 17:19:53 -07:00
2019-04-15 17:19:53 -07:00
2019-04-15 17:19:53 -07:00
2019-04-15 17:19:53 -07:00
2019-04-15 17:19:53 -07:00
2019-04-15 17:19:53 -07:00
2019-04-15 17:19:53 -07:00
2018-12-28 19:48:25 -08:00
2019-04-15 17:19:53 -07:00
2019-04-15 17:19:53 -07:00
2019-04-15 17:19:53 -07:00
2017-04-13 06:09:26 -07:00
2019-04-15 17:19:53 -07:00
2019-04-15 17:19:53 -07:00
2019-04-15 17:19:53 -07:00
2019-04-15 17:19:53 -07:00
2019-04-15 17:19:53 -07:00
2019-04-15 17:19:53 -07:00
2019-04-15 17:19:53 -07:00
2019-04-15 17:19:53 -07:00
2019-04-15 17:19:53 -07:00
2019-04-15 17:19:53 -07:00
2019-04-15 17:19:53 -07:00