]> git.ipfire.org Git - people/ms/linux.git/commit
hwmon: (w83781d) Request I/O ports individually for probing
authorJean Delvare <khali@linux-fr.org>
Thu, 1 Apr 2010 22:55:49 +0000 (15:55 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 1 Apr 2010 22:55:49 +0000 (15:55 -0700)
commit0a550150a43ec8dfe49171e9e736e6d7b8b7fa8b
tree9c51f78dc029f02355356f9320aaf182e17747c6
parente4f176e9356dcd7155d91456b4d8e2fe1b85edbe
hwmon: (w83781d) Request I/O ports individually for probing

commit b0bcdd3cd0adb85a7686b396ba50493871b1135c upstream.

Different motherboards have different PNP declarations for
W83781D/W83782D chips. Some declare the whole range of I/O ports (8
ports), some declare only the useful ports (2 ports at offset 5) and
some declare fancy ranges, for example 4 ports at offset 4. To
properly handle all cases, request all ports individually for probing.
After we have determined that we really have a W83781D or W83782D
chip, the useful port range will be requested again, as a single
block.

I did not see a board which needs this yet, but I know of one for lm78
driver and I'd like to keep the logic of these two drivers in sync.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/hwmon/w83781d.c