Commit 803a857a authored by Guenter Roeck's avatar Guenter Roeck Committed by Ben Hutchings
Browse files

hwmon: (w83627hf) Use request_muxed_region for Super-IO accesses



commit e95fd518 upstream.

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: b72656db ("hwmon: (w83627hf) Stop using globals for I/O port numbers")
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent be8d00bf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment