]> www.infradead.org Git - users/dwmw2/linux.git/commit
hwmon: (vt1211) Use request_muxed_region for Super-IO accesses
authorGuenter Roeck <linux@roeck-us.net>
Fri, 5 Apr 2019 15:53:08 +0000 (08:53 -0700)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 23 Sep 2019 20:11:43 +0000 (21:11 +0100)
commite4ce563ab1ba40caada77ce88b723102d82c23b9
treebe7af1670f498e38e7c214571b90ea99f9b8aa3a
parent803a857aab4714009703cc5e5a48603c4881a3c6
hwmon: (vt1211) Use request_muxed_region for Super-IO accesses

commit 14b97ba5c20056102b3dd22696bf17b057e60976 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: 2219cd81a6cd ("hwmon/vt1211: Add probing of alternate config index port")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/hwmon/vt1211.c