]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
hwmon: (it87) request only Environment Controller ports
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Tue, 22 Jan 2008 12:21:03 +0000 (07:21 -0500)
committerMark M. Hoffman <mhoffman@lightlink.com>
Tue, 22 Jan 2008 12:21:38 +0000 (07:21 -0500)
commit87b4b6634ac112ddfe7b92aae50eb4bf7b128d1a
tree3e7e5e671a9f0e6c997d98188336405d356e5aa6
parentd384e35a25445bb60457b7dab8cffe178c6b7ecb
hwmon: (it87) request only Environment Controller ports

The IT8705F and related parts are Super I/O controllers that contain
many separate devices.

Some BIOSes describe IT8705F I/O port usage under a motherboard device
(PNP0C02) with overlapping regions, e.g., 0x290-0x29f and 0x290-0x294.

The it87 driver supports only the Environment Controller, which requires
only two ISA ports, but it used to request an eight-port range.  If that
range exceeds a range reported by the BIOS, as 0x290-0x297 would, the
request fails, and the it87 driver cannot claim the device.

This patch makes the it87 driver request only the two ports used for the
Environment Controller device.

Systems where this problem has been reported:
    Gigabyte GA-K8N Ultra 9
    Gigabyte M56S-S3
    Gigabyte GA-965G-DS3

Kernel bug reports:
    http://bugzilla.kernel.org/show_bug.cgi?id=9514
    http://lkml.org/lkml/2007/12/4/466

Related change:
    http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=a7839e960675b549f06209d18283d5cee2ce9261

    The patch above increases the number of PNP port resources we support.
    Prior to this patch, we ignored some port resources, which masked the
    it87 problem.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
drivers/hwmon/it87.c