From: Jean Delvare <khali@linux-fr.org>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [PATCH] hwmon/dme1737: fix Super-IO device ID
Date: Sat, 26 Jan 2008 17:21:54 +0000 [thread overview]
Message-ID: <20080126182154.69efe9de@hyperion.delvare> (raw)
In-Reply-To: <191fb4ca0801240942h64bd96c1j67554c131c32c01e@mail.gmail.com>
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@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
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
next prev parent reply other threads:[~2008-01-26 17:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-24 17:42 [lm-sensors] [PATCH] hwmon/dme1737: fix Super-IO device ID override Juerg Haefliger
2008-01-26 16:40 ` [lm-sensors] [PATCH] hwmon/dme1737: fix Super-IO device ID Jean Delvare
2008-01-26 16:54 ` Juerg Haefliger
2008-01-26 17:21 ` Jean Delvare [this message]
2008-01-31 13:36 ` [lm-sensors] [PATCH] hwmon/dme1737: fix Super-IO device Mark M. Hoffman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080126182154.69efe9de@hyperion.delvare \
--to=khali@linux-fr.org \
--cc=lm-sensors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.