All of lore.kernel.org
 help / color / mirror / Atom feed
From: hjk@linutronix.de (Hans-Jürgen Koch)
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] [PATCH] Add MAX6650 support
Date: Tue, 27 Feb 2007 16:17:11 +0000	[thread overview]
Message-ID: <200702271717.12665.hjk@linutronix.de> (raw)
In-Reply-To: <200701171359.46334.hjk@linutronix.de>

Am Dienstag, 27. Februar 2007 16:35 schrieb Jean Delvare:
> On Tue, 27 Feb 2007 16:21:17 +0100, Matej Kenda wrote:
> > Hi Hans,
> >
> > I have tried the driver with on kernel 2.6.20.1 for platform ARM
> > (processor PXA255) to get fan speeds from the chip max6651.
> >
> > It seems that the driver works, because it exports the values in /sys
> > file system.
> >
> > I have few small comments on the implementation:
> >
> > * use mutex instead of semaphore
>
> This was fixed in the second version of the driver (posted by
> Hans-J?rgen on February 12th.)
>
> > * define i2c driver ID in the include/i2c-id.h
>
> Even better, don't set an ID if you don't need it.

All right, I threw that out. Actually, I didn't know that you can simply omit 
that .id 

>
> > However I have noticed the following issue, which might be related to the
> > driver of libsensors. Whenever I issue the command sensors to display
> > values of the fans, I get an error:
> >
> > $ sensors
> > max1617a-i2c-0-18
> > Adapter: pxa2xx-i2c
> > Main PCB:    +40 C  (low  =    +0 C, high =   +50 C)
> >
> > max1617a-i2c-0-29
> > Adapter: pxa2xx-i2c
> > Main PCB:    +38 C  (low  =    +0 C, high =   +50 C)
> >
> > max6650-i2c-0-48
> > Adapter: pxa2xx-i2c
> > ERROR: Can't get FAN1 data!
> > ERROR: Can't get FAN2 data!
> > ERROR: Can't get FAN3 data!
> > ERROR: Can't get FAN4 data!
> >
> > max6650-i2c-0-4b
> > Adapter: pxa2xx-i2c
> > ERROR: Can't get FAN1 data!
> > ERROR: Can't get FAN2 data!
> > ERROR: Can't get FAN3 data!
> > ERROR: Can't get FAN4 data!
> >
> > $ sensors --version
> > sensors version 2.10.2 with libsensors version 2.10.2
> >
> > I tried to rename entries that the driver creates from fan0-fan3 to
> > fan1-fan4 as used by the libsensors and sensors, but that didn't help.
>
> The files should actually be named fan1_input to fan4_input (for
> measured values.)

I renamed the files accordingly.

>
> > Did you have to modify the (lib)sensors in any way to display the values?
>
> You shouldn't need to.

I attached the current version of the patch, please tell us if this works for 
you.

Thanks,
Hans

-------------- next part --------------
A non-text attachment was scrubbed...
Name: max6650.patch
Type: text/x-diff
Size: 18673 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20070227/0ef1fcd6/attachment.bin 

  parent reply	other threads:[~2007-02-27 16:17 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-17 12:59 [lm-sensors] [PATCH] Add MAX6650 support Hans-Jürgen Koch
2007-01-22  8:36 ` Jean Delvare
2007-02-11 15:44 ` corentin.labbe
2007-02-11 16:22 ` Hans-Jürgen Koch
2007-02-12 13:48 ` Hans-Jürgen Koch
2007-02-27 15:21 ` [lm-sensors] " Matej Kenda
2007-02-27 15:35 ` [lm-sensors] " Jean Delvare
2007-02-27 16:17 ` Hans-Jürgen Koch [this message]
2007-02-27 16:29 ` Matej Kenda
2007-02-27 17:03 ` Matej Kenda
2007-02-27 17:13 ` Hans-Jürgen Koch
2007-02-27 18:07 ` Jean Delvare
2007-02-27 19:58 ` Hans-Jürgen Koch
2007-02-28 11:44 ` Hans-Jürgen Koch
2007-02-28 15:57 ` Matej Kenda
2007-02-28 16:08 ` Hans-Jürgen Koch
2007-03-01  7:15 ` Jean Delvare
2007-03-01  7:34 ` Jean Delvare
2007-03-01 10:11 ` Hans-Jürgen Koch
2007-03-01 17:34 ` corentin.labbe
2007-03-02 11:32 ` Jean Delvare
2007-03-05 11:34 ` Hans-Jürgen Koch
2007-03-11 14:40 ` Jean Delvare
2007-03-11 15:21 ` Jean Delvare
2007-03-11 21:08 ` Hans-Jürgen Koch
2007-03-12 13:50 ` Jean Delvare
2007-03-12 14:44 ` Hans-Jürgen Koch
2007-03-12 16:49 ` Jean Delvare
2007-03-13 13:25 ` Hans-Jürgen Koch
2007-03-15 20:10 ` Jean Delvare
2007-03-16 16:44 ` Hans-Jürgen Koch
2007-03-16 19:17 ` Jean Delvare
2007-03-16 21:07 ` Hans-Jürgen Koch
2007-03-16 21:19 ` Hans-Jürgen Koch
2007-03-16 21:19 ` Thomas Gleixner
2007-03-16 21:33 ` Thomas Gleixner
2007-03-17 13:39 ` Jean Delvare
2007-03-17 14:23 ` Hans-Jürgen Koch

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=200702271717.12665.hjk@linutronix.de \
    --to=hjk@linutronix.de \
    --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.