All of lore.kernel.org
 help / color / mirror / Atom feed
From: se.witt@gmx.net (Sebastian Witt)
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] [PATCH]: Add automatic PWM mode to it87.c
Date: Fri, 10 Jun 2005 13:11:51 +0000	[thread overview]
Message-ID: <42A975D4.50105@hasw.net> (raw)
In-Reply-To: <429CEBC2.80609@hasw.net>

Hi Jean,

Jean Delvare wrote:
> 
> First, there is a big pending patch for it87 which updates the driver to
> make use of the new sysfs callbacks. I wouldn't want your patch to
> collide with this one, so I'd like you to build your patch on top of
> this one.
> 
> http://lists.lm-sensors.org/pipermail/lm-sensors/2005-June/012597.html
> 
> This will also have the advantage that you'll see how the new sysfs
> callbacks can be written, and this should hopefully make your code much
> more simple.

Ok, is this patch against 2.6.12-rc5? Because it fails to apply.

> Second, your interface doesn't quite comply with the standard automatic
> PWM interface as defined in Documentation/i2c/sysfs-interface. Please
> take a look. The interface basically defines trip points (PWM,
> temperature "coordinates"). You should come to something similar to what
> you have already by just renaming a few files, except for the slope/step
> concept which won't fit directly in, so I think you'll have to add some
> arithmetics (compute the slope from the requested trip point
> "coordinates", and vice-versa).

Yes, no problem.

> Third, the old datasheets for the IT8712F and IT8705F suggest that the
> first revisions of both chips had a different SmartGuardian
> implementation, trip-point based. If this is confirmed, then you will
> have to check the revision of the chip before enabling your interface.
> Which revision to you have yourself? I'll try to experiment on my
> IT8705F rev.2.

it87: Found IT8705F chip at 0x290, revision 3

> Can you provide a dump of your chip at startup (before loading the it87
> driver)?

      0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00: 13 00 ff 00 ff ff fd 00 00 00 3f 5b 00 48 ff ff
10: ff ff ff 30 00 00 00 00 00 ff ff ff ff ff ff ff
20: 44 a1 cb b6 b6 ba ca b3 ff 23 16 03 51 c1 c1 c1
30: ff ff ff ff ff ff ff ff ff fd ff ff ff ff ff ff
40: 3f 7f 3f 7f 3f 7f ff ff 2d ff ff ff ff ff ff ff
50: ff 2a 7f 7f 7f ff 5d 89 90 5d f9 12 80 00 00 00
60: 7f 7f 7f 00 00 ff ff ff 7f 7f 7f 00 00 ff ff ff
70: 7f 7f 7f 00 00 ff ff ff ff ff ff ff ff ff ff ff
80: 13 00 00 00 ff ff fd 00 00 00 3f 5b 00 48 ff ff
90: ff ff ff 30 00 00 00 00 00 ff ff ff ff ff ff ff
a0: 44 a1 cb b6 b6 ba ca b3 ff 23 16 03 51 c1 c1 c1
b0: ff ff ff ff ff ff ff ff ff fd ff ff ff ff ff ff
c0: 3f 7f 3f 7f 3f 7f ff ff 2d ff ff ff ff ff ff ff
d0: ff 2a 7f 7f 7f ff 5d 89 90 5d f9 12 80 00 00 00
e0: 7f 7f 7f 00 00 ff ff ff 7f 7f 7f 00 00 ff ff ff
f0: 7f 7f 7f 00 00 ff ff ff ff ff ff ff ff ff ff ff

Regards,
Sebastian


  parent reply	other threads:[~2005-06-10 13:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-01 11:43 [lm-sensors] [PATCH]: Add automatic PWM mode to it87.c Sebastian Witt
2005-06-01 18:48 ` Rudolf Marek
2005-06-04 16:48 ` Sebastian Witt
2005-06-05 22:48 ` Jean Delvare
2005-06-10 13:11 ` Sebastian Witt [this message]
2005-06-10 19:42 ` Jean Delvare
2005-06-14 22:33 ` Sebastian Witt
2005-06-17 15:06 ` Sebastian Witt
2005-06-17 15:23 ` Jean Delvare
2005-06-20  8:02 ` 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=42A975D4.50105@hasw.net \
    --to=se.witt@gmx.net \
    --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.