All of lore.kernel.org
 help / color / mirror / Atom feed
From: khali@linux-fr.org (Jean Delvare)
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] hwmon/pc87360 as a platform driver
Date: Sat, 08 Apr 2006 10:40:26 +0000	[thread overview]
Message-ID: <20060408124026.2af3aac9.khali@linux-fr.org> (raw)
In-Reply-To: <4436BE3B.7090306@gmail.com>

Hi Jim,

> Ive just made a rough pass thru pc87360, and have converted it
> to a non-working, but non-crashing platform_driver that does
> at least a little of what it should:
> 
> soekris:~# modprobe pc87360
> [  964.952000] pc87360: Device 0x09 not activated
> [  966.576000] pc87360 pc87360.26144: VLM conversion set to 1s period, 
> 160us delay
> soekris:~#
> (...)
> so far so good, but:
> 
> soekris:~# sensors -s
> No sensors found!
> soekris:~#
> soekris:~# sensors
> No sensors found!
> 
> my libsensors is unstable debian package:  libsensors 1:2.10.0-3
> That version number looks to contain 2.10.0
> 
> Frankly, Im hoping that with 2.10, the user-side just works, but this is 
> not the case here.
> 
> Any guesses / suggestions as to whats wrong ?

First of all, Juerg's answer is correct, 2.10.0 doesn't play fair with
platform hwmon drivers unless an i2c driver is also present.

Secondly, your driver must have a "name" attribute containing the chip
name (such as "pc87360" or "pc87366" etc. in your case) else libsensors
won't be able to use it. That's probably what you're missing here.

BTW, I don't want to discourage you from working on this, as this will
be needed at some point in time, but remember that I do not plan to
accept any i2c-isa -> platform conversion before next year, because we
need a widely deployed base of working libsensors before we do, and
unfortunately even 2.10.0 doesn't qualify, as Juerg and you found out.

Thanks,
-- 
Jean Delvare


  parent reply	other threads:[~2006-04-08 10:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-07 19:32 [lm-sensors] hwmon/pc87360 as a platform driver Jim Cromie
2006-04-07 19:56 ` Juerg Haefliger
2006-04-07 23:17 ` Jim Cromie
2006-04-08 10:40 ` Jean Delvare [this message]
2006-04-09  5:24 ` Juerg Haefliger

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=20060408124026.2af3aac9.khali@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.