[lm-sensors] [PATCH] hwmon/dme1737: fix Super-IO device ID override
Jean Delvare
khali at linux-fr.org
Sat Jan 26 18:21:54 CET 2008
On Sat, 26 Jan 2008 08:54:24 -0800, Juerg Haefliger wrote:
> Shoot, sorry about that. Attached is the correct patch.
>
> ------
> The dme1737 has a second place where the Super-IO device ID is
> checked. This has been missed by Jean's initial patch that adds
> support for user-controlled Super-IO device ID override. This patch
> fixes this issue.
>
> Signed-off-by: Juerg Haefliger <juergh at gmail.com>
>
> Index: linux/drivers/hwmon/dme1737.c
> ===================================================================
> --- linux.orig/drivers/hwmon/dme1737.c 2008-01-24 09:32:47.000000000 -0800
> +++ linux/drivers/hwmon/dme1737.c 2008-01-24 09:38:59.000000000 -0800
> @@ -2023,7 +2023,7 @@
>
> /* Check device ID
> * The DME1737 can return either 0x78 or 0x77 as its device ID. */
> - reg = dme1737_sio_inb(sio_cip, 0x20);
> + reg = force_id ? force_id : dme1737_sio_inb(sio_cip, 0x20);
> if (!(reg == 0x77 || reg == 0x78)) {
> err = -ENODEV;
> goto exit;
Good catch. I had forgotten the hybrid nature of the dme1737 driver.
Acked-by: Jean Delvare <khali at linux-fr.org>
This could also be merged into my original patch. I'll leave it to Mark
how he wants to handle it.
Thanks,
--
Jean Delvare
More information about the lm-sensors
mailing list