All of lore.kernel.org
 help / color / mirror / Atom feed
From: khali@linux-fr.org (Jean Delvare)
To: lm-sensors@vger.kernel.org
Subject: stub for driver testing (was Re: lm87 ported to Linux 2.6)
Date: Thu, 19 May 2005 06:25:12 +0000	[thread overview]
Message-ID: <20040825074706.M79409@linux-fr.org> (raw)
In-Reply-To: <20040824034244.GA23169@jupiter.solarsys.private>

> > Stuff like this probably isn't appropriate for kernel.org (Greg?)
> 
> Why not?  It looks useful to me.  Care to send me a patch adding 
> this to the main kernel tree?

I agree it sounds very useful for testing, and the driver isn't that big. Just
make in clear in the help text that the regular guy doesn't need this.

I think that this driver would be even more useful if it was possible to
"load" a register map into it. I guess it should be possible to have a sysfs
interface, much like we have for the eeprom driver, but writable. That way we
could test almost anything in the driver, including the
detection/identification step, and possibly even simulate temperature changes
and the like. Testing would look like:
1* Load i2c-stub.
2* Write (binary) register map.
3* Load chip driver.
4* Test the driver and possibly change registers values on the fly (dd or some
perl should do).

An alternative interface file could be one to which we'd write "address value"
pairs. I don't know which is easier to implement or more convenient. Thoughts?

Note that I've not been able to test the driver yet, will do as time permits.

Thanks.

-- 
Jean "Khali" Delvare
http://khali.linux-fr.org/

      parent reply	other threads:[~2005-05-19  6:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-19  6:25 stub for driver testing (was Re: lm87 ported to Linux 2.6) Mark M. Hoffman
2005-05-19  6:25 ` Greg KH
2005-05-19  6:25 ` Jean Delvare
2005-05-19  6:25 ` Mark M. Hoffman
2005-05-19  6:25 ` Jean Delvare [this message]

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=20040825074706.M79409@linux-fr.org \
    --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.