All of lore.kernel.org
 help / color / mirror / Atom feed
From: mds4@verizon.net (Mark Studebaker)
To: lm-sensors@vger.kernel.org
Subject: Adm1030 driver
Date: Thu, 19 May 2005 06:24:49 +0000	[thread overview]
Message-ID: <406595B3.70904@verizon.net> (raw)
In-Reply-To: <20040319224106.79f6cec3.cedric.pradalier@inrialpes.fr>

Note that there are three already-in-kernel drivers/macintosh/therm_*.c
which suffer from many of the same problems below.

interesting...



Mark Studebaker wrote:
> agreed. This doesn't conform to either our 2.4 or 2.6 driver template in 
> several ways:
>     - no chip detection
>     - no bus functionality checking
>     - no conformance to sysfs guidelines
>     - uses i2c_master_send rather than i2c_smbus_xxx
>     - thermal control loop in kernel space
>     - Apple-specific and keywest-specific code
> 
> mds
> 
> Jean Delvare wrote:
> 
>>> Sure. The current version, which is quite limited, can be found at 
>>> http://cedric.pradalier.free.fr/ibook2/index.html
>>> I have the docs, so I'll be able to add functionalities if needed.
>>
>>
>>
>> Mmm, as I read it, it doesn't belong to our i2c subsystem (well, it
>> makes use of it but is really different from the hardware monitoring
>> drivers we have). Usually our drivers are passive and simply export
>> their registers, with some conversions, to sysfs. Any active behavior
>> either belongs to the hardware, or to the userspace, but not to the
>> driver, as you have done if I'm not mistaking.
>>
>> So to make it short, I don't think I'm qualified to review your code.
>>
>>
>>>> Make sure
>>>> you follow the sysfs naming conventions as found in
>>>> Documentation/i2c/sysfs-interface of the same Linux tree.
>>>
>>>
>>> I'm sure I don't ! But since someone is interested, I'll try to adapt.
>>
>>
>>
>> Oh well, this doesn't apply then. The sysfs interface is meant for our
>> driver design, and obviously doesn't apply to yours at the moment.
>> Unless you want to rewrite a driver that fits into our architecture.
>>
> 
> 

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

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-19  6:24 Adm1030 driver Cedric Pradalier
2005-05-19  6:24 ` Mark Studebaker [this message]
2005-05-19  6:24 ` Mark Studebaker
2005-05-19  6:24 ` Jean Delvare
2005-05-19  6:24 ` Jean Delvare
2005-05-19  6:24 ` Cedric Pradalier
2005-05-19  6:24 ` Cedric Pradalier
2005-05-19  6:24 ` Mark Studebaker
2005-05-19  6:24 ` ADM1030 Driver Alexandre d'Alton
2005-05-19  6:24 ` Alexandre d'Alton
2005-05-19  6:24 ` Alexandre d'Alton
2005-05-19  6:24 ` Alexandre d'Alton
2005-05-19  6:24 ` Jean Delvare
2005-05-19  6:24 ` Jean Delvare
2005-05-19  6:24 ` Alexandre d'Alton
2005-05-19  6:24 ` Alexandre d'Alton
2005-05-19  6:24 ` Jean Delvare
2005-05-19  6:24 ` Alexandre d'Alton
2005-05-19  6:24 ` Alexandre d'Alton
2005-05-19  6:24 ` Jean Delvare
2005-05-19  6:24 ` Jean Delvare
2005-05-19  6:24 ` Alexandre d'Alton

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=406595B3.70904@verizon.net \
    --to=mds4@verizon.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.