]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] hwmon: Fix w83627ehf/hf vs PNPACPI conflict (bug #4014)
authorPetr Vandrovec <vandrove@vc.cvut.cz>
Fri, 7 Oct 2005 21:11:03 +0000 (23:11 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 28 Oct 2005 21:02:09 +0000 (14:02 -0700)
commit0e3d4f8c294246e4bfc8239154770755789e24b8
treee7f80d1336e2190c138fd4226438195e2f67839d
parent1ae749f6b8b1c386a0b393b2ec3be4ae51223f37
[PATCH] hwmon: Fix w83627ehf/hf vs PNPACPI conflict (bug #4014)

This patch changes w83627hf and w83627ehf drivers to reserve only ports
0x295-0x296, instead of full 0x290-0x297 range.  While some other
sensors chips respond to all addresses in 0x290-0x297 range, Winbond
chips respond to 0x295-0x296 only (this behavior is implied by
documentation, and matches behavior observed on real systems).  This is
not problem alone, as no BIOS was found to put something at these unused
addresses, and sensors chip itself provides nothing there as well.

But in addition to only respond to these two addresses, also BIOS
vendors report in their ACPI-PnP structures that there is some resource
at I/O address 0x295 of length 2.  And when later this hwmon driver
attempts to request region with base 0x290/length 8, it fails as one
request_region cannot span more than one device.

Due to this we have to ask only for region this hardware really
occupies, otherwise driver cannot be loaded on systems with ACPI-PnP
enabled.

Signed-off-by: Petr Vandrovec <vandrove@vc.cvut.cz>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/hwmon/w83627ehf.c
drivers/hwmon/w83627hf.c