All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jean Delvare <khali@linux-fr.org>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [RFC PATCH] Allow the configuration register to be
Date: Mon, 13 Sep 2010 15:33:56 +0000	[thread overview]
Message-ID: <20100913173356.4d251fb8@hyperion.delvare> (raw)
In-Reply-To: <1284386867-21650-1-git-send-email-shubhrajyoti@ti.com>

On Mon, 13 Sep 2010 20:13:00 +0530, Datta, Shubhrajyoti wrote:
> > From: Jean Delvare [mailto:khali@linux-fr.org]
> > Massive NACK. You are exposing a raw register interface to user-space,
> > in a way which can't be standardized. This goes against the philosophy
> > of our standard sysfs interface.
> > 
> > If you have an LM75-style device in an embedded device, configuration
> > should be provided as platform data. For other cases, either the
> > BIOS/firmware should configure the device properly, or you can do it
> > with i2c-dev + i2cset from user-space.
> 
> Ok makes sense. 
> > 
> > If any properly really needs to be exposed though sysfs in your
> > opinion, it must be standardized first and stick to the one file, one
> > feature philosophy.
> I chose it as a sysfs because ideally the resolution/time is a tradeoff applications are better suited and not board dependent.

Polarity OTOH is quite board-specific.

> However agree to your "one file, one feature" comment. Was wondering if any other driver has similar interface or sysfs entry(resolution).

Not that I know of. At least there's no standard sysfs attribute for
that. We have one for update rate, but it's fairly recent. Having one
for resolution would certainly make sense for simple temperature
sensors.

-- 
Jean Delvare

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

  parent reply	other threads:[~2010-09-13 15:33 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-13 14:19 [lm-sensors] [RFC PATCH] Allow the configuration register to be Shubhrajyoti D
2010-09-13 14:27 ` Jean Delvare
2010-09-13 14:55 ` Datta, Shubhrajyoti
2010-09-13 15:33 ` Jean Delvare [this message]
2010-09-13 16:51 ` Guenter Roeck
2010-09-13 17:41 ` Jean Delvare
2010-09-13 18:09 ` Guenter Roeck
2010-09-14  8:08 ` Jean Delvare
2010-09-14 12:01 ` Guenter Roeck
2010-09-14 14:57 ` Jean Delvare
2010-09-14 16:04 ` Guenter Roeck

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=20100913173356.4d251fb8@hyperion.delvare \
    --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.