All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Pilcher <arequipeno@gmail.com>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] "Dummy" sensor driver?
Date: Mon, 12 Oct 2009 21:43:25 +0000	[thread overview]
Message-ID: <4AD3A2FD.1090400@gmail.com> (raw)
In-Reply-To: <hb011f$2p0$1@ger.gmane.org>

On 10/12/2009 03:52 PM, Jean Delvare wrote:
> We have a dummy i2c adapter driver, named i2c-stub (written by Mark M.
> Hoffman originally.) You can emulate up to 10 chips on it, supporting
> the basic SMBus transactions most I2C-based hwmon devices use. So, if
> you have a register dump from such a device, you can emulate it on any
> machine. I do that all the times when working on hwmon drivers for
> hardware I don't have.

Perfect!

> For example this works very well with the lm90 driver. If you want
> dumps from lm90-compatible chips, just let me know and I'll send them
> to you. This should also works reasonably well with most National
> Semiconductor and Analog Device chips. Just Winbond chips don't work
> well because they use banks and i2c-stub doesn't have support for that.

Please do send them.  My desktop system has a Winbond chip, so a dump
from it presumably wouldn't do any good.

> I wrote a helper script, which is in recent versions of the i2c-tools
> package, to load dumps to i2c-stub automatically (named
> i2c-stub-from-dump).

Thanks!

-- 
====================================
Ian Pilcher                                         arequipeno@gmail.com
====================================

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

  parent reply	other threads:[~2009-10-12 21:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-12 19:45 [lm-sensors] "Dummy" sensor driver? Ian Pilcher
2009-10-12 20:52 ` Jean Delvare
2009-10-12 21:43 ` Ian Pilcher [this message]
2009-10-13  7:20 ` 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=4AD3A2FD.1090400@gmail.com \
    --to=arequipeno@gmail.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.