All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lucas Stach <dev@lynxeye.de>
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] General API and documentation discussion
Date: Tue, 13 Sep 2011 21:09:50 +0000	[thread overview]
Message-ID: <1315948191.2018.20.camel@tellur> (raw)

Hello all,

weeks ago I proposed a patch to introduce a new hwmon-core interface to
have the sysfs handling centralised and getting a stable in-kernel API
for the hwmon drivers. This should also lead to resolving the now
unclear situation with regard to hwmon/thermal driver cooperation, but
more to this at a later time as it's not the point here.

This old patch I proposed was kind of hacky and I didn't receive a lot
of feedback, but I got some ideas to improve the code. I'm now in the
process of reworking my patch to be more maintainable.

Along the way I noticed some mismatches between the API as presented by
libsensors and the documentation in kernel. One example is the sysfs
entry "fan_max" which is mentioned in the kernel documentation, but is
not seen in the libsensors fan_matches subfeatures table. I think a
hwmon-core with all the sysfs handling is a great place to stabilize the
API between kernel and userspace and to do so I want to know who I
should trust, kernel doc or libsensors code?

Could we please sort this out whether the kernel doc is incorrect and
does not reflect actual interface or if sensors code needs some
additions to reflect API exposed by the kernel? I would really like to
help here and I'm willing to spend some time with stabilizing interface
and documentation, but as a newcomer it is hard to make a sense out of
all this conflicting information. I think a stable API both in and out
of kernel is beneficial to all hwmon drivers and systems interfacing
with them.

On a side note I could not find any API entries in libsensors for
handling trip points which are mentioned in the kernel doc, but I think
this is another issue as we really should handle trip point support as a
cooperation of hwmon and a thermal driver.

Best regards,
--Lucas


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

             reply	other threads:[~2011-09-13 21:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-13 21:09 Lucas Stach [this message]
2011-09-14  5:33 ` [lm-sensors] General API and documentation discussion Guenter Roeck
2011-09-15 11:41 ` Lucas Stach
2011-09-15 15:27 ` 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=1315948191.2018.20.camel@tellur \
    --to=dev@lynxeye.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.