From: ckelley@ibnads.com (Craig Kelley)
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] Re: [PATCH 2.6.14-rc2-mm2] hwmon: add a new ID to SMSC
Date: Wed, 12 Oct 2005 17:36:13 +0000 [thread overview]
Message-ID: <434D2D22.2040805@ibnads.com> (raw)
In-Reply-To: <20051012032205.GA20051@jupiter.solarsys.private>
Thanks again Mark;
-Craig
Mark M. Hoffman wrote:
>This patch adds a new ID to the SMSC LPC47B397-NC hardware
>monitoring driver - for a chip that is claimed to be 100%
>compatible otherwise.
>
>Signed-off-by: Bryan Young (Utilitek Systems, Inc.)
>Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
>
>---
>
>Hi Jean: I should have sent this some time ago. Please queue it
>up for 2.6.15.
>
>--- linux-2.6.14-rc2-mm2.orig/drivers/hwmon/smsc47b397.c
>+++ linux-2.6.14-rc2-mm2/drivers/hwmon/smsc47b397.c
>@@ -299,7 +299,7 @@ static int __init smsc47b397_find(unsign
> superio_enter();
> id = superio_inb(SUPERIO_REG_DEVID);
>
>- if (id != 0x6f) {
>+ if ((id != 0x6f) && (id != 0x81)) {
> superio_exit();
> return -ENODEV;
> }
>@@ -310,8 +310,16 @@ static int __init smsc47b397_find(unsign
> *addr = (superio_inb(SUPERIO_REG_BASE_MSB) << 8)
> | superio_inb(SUPERIO_REG_BASE_LSB);
>
>- printk(KERN_INFO "smsc47b397: found SMSC LPC47B397-NC "
>- "(base address 0x%04x, revision %u)\n", *addr, rev);
>+ switch (id) {
>+ case 0x6f:
>+ printk(KERN_INFO "smsc47b397: found SMSC LPC47B397-NC "
>+ "(base address 0x%04x, revision %u)\n", *addr, rev);
>+ break;
>+ case 0x81:
>+ printk(KERN_INFO "smsc47b397: found SMSC SCH5307-NS"
>+ "(base address 0x%04x, revision %u)\n", *addr, rev);
>+ break;
>+ }
>
> superio_exit();
> return 0;
>
>
--
Craig Kelley
In-Store Broadcasting Network
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20051012/f95f4419/attachment.html
next prev parent reply other threads:[~2005-10-12 17:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-12 5:22 [lm-sensors] [PATCH 2.6.14-rc2-mm2] hwmon: add a new ID to SMSC Mark M. Hoffman
2005-10-12 11:01 ` [lm-sensors] " Jean Delvare
2005-10-12 17:36 ` Craig Kelley [this message]
2005-10-12 18:46 ` Mark M. Hoffman
2005-10-12 20:17 ` Jean Delvare
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=434D2D22.2040805@ibnads.com \
--to=ckelley@ibnads.com \
--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.