]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (w83627hf) Use request_muxed_region for Super-IO accesses
authorGuenter Roeck <linux@roeck-us.net>
Fri, 5 Apr 2019 15:44:41 +0000 (08:44 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 16 Apr 2019 00:19:53 +0000 (17:19 -0700)
commit9913c3f60357b3a10df49eeaa56cde4f178198d0
tree1f75021e709148ab6392db5524681f3a344fb6dd
parent2fbe74faf4e7112e5cd3ca3172497eef94ac58a2
hwmon: (w83627hf) 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: aa9f9450211b ("hwmon: (w83627hf) Stop using globals for I/O port numbers")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/w83627hf.c