* lm87 ported to Linux 2.6
2005-05-19 6:25 lm87 ported to Linux 2.6 Jean Delvare
@ 2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` David Goodenough
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Jean Delvare @ 2005-05-19 6:25 UTC (permalink / raw)
To: lm-sensors
Quoting myself:
> The patch is available here:
> http://khali.linux-fr.org/devel/i2c/linux-2.6/linux-2.6.8.1-mm4-i2c-lm87-alpha1.diff
> It should apply and work on linux-2.6.8.1-mm1, -mm2, -mm3 and -mm4
> kernels.
> (...)
> This first patch is untested beyond compilation, as I don't own a LM87
> myself.
And actually it'll deadlock your system if you give it a try. Shame on
me.
Thanks a lot to Mark M. Hoffman for his i2c-stub test bus driver, which
help me notice and fix that problem. An updated patch is available here:
http://khali.linux-fr.org/devel/i2c/linux-2.6/linux-2.6.9-rc1-i2c-lm87-beta1.diff
Thanks.
--
Jean "Khali" Delvare
http://khali.linux-fr.org/
^ permalink raw reply [flat|nested] 6+ messages in thread* lm87 ported to Linux 2.6
2005-05-19 6:25 lm87 ported to Linux 2.6 Jean Delvare
2005-05-19 6:25 ` Jean Delvare
@ 2005-05-19 6:25 ` David Goodenough
2005-05-19 6:25 ` Jean Delvare
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: David Goodenough @ 2005-05-19 6:25 UTC (permalink / raw)
To: lm-sensors
On Monday 23 August 2004 20:52, Jean Delvare wrote:
> Hi all,
>
> After some time, we finally have a first candidate patch for a lm87
> driver in Linux 2.6. I started from what David sent to me a few days
> ago, which I guess is Jeff's work? I reviewed it, reworked it
> significantly to comply better with the latest standards of the Linux
> 2.6 i2c subsystem, fixed a few things and here we are.
>
> First of all, I'd like to thank you all for your interest in the lm87
> driver, and hope we'll come to something acceptable to be submitted to
> Greg soon now.
>
Other than a bit of testing and making a nusance of myself asking for
this support, none of the credit belongs to me. I have not authored any of
the code. The code came from Jeff.
> The patch is available here:
> http://khali.linux-fr.org/devel/i2c/linux-2.6/linux-2.6.8.1-mm4-i2c-lm87-al
>pha1.diff It should apply and work on linux-2.6.8.1-mm1, -mm2, -mm3 and -mm4
> kernels.
>
I will test this tomorrow morning.
> Please let me know who exactly contributed to the patch I started from,
> so that everyone gets credited as he deserves.
>
> Please note that the driver will check that it is called on a
> hardware-monitoring classed bus. Make sure the i2c adapter you use
> declares itself with .class=I2C_CLASS_HWMON. If not, either change that
> (and report if the bus driver is already in the 2.6 kernel tree) or skip
> the test in lm87_attach_adapter for now.
>
> This first patch is untested beyond compilation, as I don't own a LM87
> myself. This is why I rely on you for testing. The more testers there
> are, the faster it'll be to get the driver into Greg's tree. Please test
> and report how it is working for you. The latest libsensors/sensors from
> lm_sensors CVS are mandatory (> July 7th, today prefered), unless you
> test the sysfs interface directly, which would be nice as well BTW.
>
> I'd also be interested by i2cdumps of your LM87s. The detection of the
> LM87 is probably correct but could be refined so as to prevent any
> misdetection.
What command should I issue? Yes I know i2cdump, but what parameters
or perhaps how do I work out the parameters?
David
>
> Thanks.
^ permalink raw reply [flat|nested] 6+ messages in thread* lm87 ported to Linux 2.6
2005-05-19 6:25 lm87 ported to Linux 2.6 Jean Delvare
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` David Goodenough
@ 2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Jeff Oliver
2005-05-19 6:25 ` Jean Delvare
4 siblings, 0 replies; 6+ messages in thread
From: Jean Delvare @ 2005-05-19 6:25 UTC (permalink / raw)
To: lm-sensors
Quoting myself:
> The patch is available here:
> http://khali.linux-fr.org/devel/i2c/linux-2.6/linux-2.6.8.1-mm4-i2c-lm87-alpha1.diff
> It should apply and work on linux-2.6.8.1-mm1, -mm2, -mm3 and -mm4
> kernels.
It should apply on and work well with linux-2.6.9-rc1 as well, in case
you want to stick to Linus' tree.
Thanks.
--
Jean "Khali" Delvare
http://khali.linux-fr.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* lm87 ported to Linux 2.6
2005-05-19 6:25 lm87 ported to Linux 2.6 Jean Delvare
` (2 preceding siblings ...)
2005-05-19 6:25 ` Jean Delvare
@ 2005-05-19 6:25 ` Jeff Oliver
2005-05-19 6:25 ` Jean Delvare
4 siblings, 0 replies; 6+ messages in thread
From: Jeff Oliver @ 2005-05-19 6:25 UTC (permalink / raw)
To: lm-sensors
I took the original LM75 code and modified it for the LM87. I got it
working for my purposes on my special hardware, but never really had the
time to clean it up for submittal, or for that matter keep it up to date
with the latest kernels. Anyway, thanks for cleaning it up and getting
the first patch out there! I'll test it as soon as i get my hardware back.
Jeff Oliver
Jean Delvare wrote:
>Hi all,
>
>After some time, we finally have a first candidate patch for a lm87
>driver in Linux 2.6. I started from what David sent to me a few days
>ago, which I guess is Jeff's work? I reviewed it, reworked it
>significantly to comply better with the latest standards of the Linux
>2.6 i2c subsystem, fixed a few things and here we are.
>
>First of all, I'd like to thank you all for your interest in the lm87
>driver, and hope we'll come to something acceptable to be submitted to
>Greg soon now.
>
>The patch is available here:
>http://khali.linux-fr.org/devel/i2c/linux-2.6/linux-2.6.8.1-mm4-i2c-lm87-alpha1.diff
>It should apply and work on linux-2.6.8.1-mm1, -mm2, -mm3 and -mm4
>kernels.
>
>Please let me know who exactly contributed to the patch I started from,
>so that everyone gets credited as he deserves.
>
>Please note that the driver will check that it is called on a
>hardware-monitoring classed bus. Make sure the i2c adapter you use
>declares itself with .class=I2C_CLASS_HWMON. If not, either change that
>(and report if the bus driver is already in the 2.6 kernel tree) or skip
>the test in lm87_attach_adapter for now.
>
>This first patch is untested beyond compilation, as I don't own a LM87
>myself. This is why I rely on you for testing. The more testers there
>are, the faster it'll be to get the driver into Greg's tree. Please test
>and report how it is working for you. The latest libsensors/sensors from
>lm_sensors CVS are mandatory (> July 7th, today prefered), unless you
>test the sysfs interface directly, which would be nice as well BTW.
>
>I'd also be interested by i2cdumps of your LM87s. The detection of the
>LM87 is probably correct but could be refined so as to prevent any
>misdetection.
>
>Thanks.
>
>
>
Disclaimer: The information contained in this transmission, including any
attachments, may contain confidential information of Matsushita Avionics
Systems Corporation. This transmission is intended only for the use of the
addressee(s) listed above. Unauthorized review, dissemination or other use
of the information contained in this transmission is strictly prohibited.
If you have received this transmission in error or have reason to believe
you are not authorized to receive it, please notify the sender by return
email and promptly delete the transmission
^ permalink raw reply [flat|nested] 6+ messages in thread* lm87 ported to Linux 2.6
2005-05-19 6:25 lm87 ported to Linux 2.6 Jean Delvare
` (3 preceding siblings ...)
2005-05-19 6:25 ` Jeff Oliver
@ 2005-05-19 6:25 ` Jean Delvare
4 siblings, 0 replies; 6+ messages in thread
From: Jean Delvare @ 2005-05-19 6:25 UTC (permalink / raw)
To: lm-sensors
Quoting myself:
> Thanks a lot to Mark M. Hoffman for his i2c-stub test bus driver,
> which help me notice and fix that problem. An updated patch is
> available here:
>
> http://khali.linux-fr.org/devel/i2c/linux-2.6/linux-2.6.9-rc1-i2c-lm87-beta1.diff
I made further testing using i2c-stub and found that everything was
working fine but negative temperatures. I updated the patch to fix that
and also gave credit to Jeff. New patch is here:
http://khali.linux-fr.org/devel/i2c/linux-2.6/linux-2.6.9-rc1-i2c-lm87-beta2.diff
I also updated the sensors.conf.eg file in CVS.
I would still appreciate some testing on real LM87 chips (and dumps
thereof as well).
Thanks.
--
Jean "Khali" Delvare
http://khali.linux-fr.org/
^ permalink raw reply [flat|nested] 6+ messages in thread