From: Hans de Goede <hdegoede@redhat.com>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [RFC 1/2] add new hwmon-core interface v3
Date: Sun, 18 Sep 2011 11:17:14 +0000 [thread overview]
Message-ID: <4E75D33A.4040305@redhat.com> (raw)
In-Reply-To: <1316119550.25490.14.camel@tellur>
Hi,
On 09/16/2011 03:05 PM, Lucas Stach wrote:
> Hello Hans,
>
<snip snip>
>> An other issue you need to tackle is non continuous indexes. Some drivers have
>> the ability to handle large amounts of channels, for example the sch5636 has
>> upto 5 voltage inputs, 16 temperatures and 8 fans. Almost no motherboard
>> will use these all, and the BIOS should program the chip to disable unused
>> channels, we read this information back and only add sysfs attributes for
>> enabled channels, which can lead to having fan1 and fan6 but nothing in between.
>> Note that when you've per sensor rather then per channel caps, you can essentially
>> handle this for free, since an unused index can simply be a channel without any
>> caps.
>
> Do we really have to reflect the hole in sensor numbering? Isn't it
> enough to only expose the supported number of channels in the interface
> and do the remapping index->channel within the driver? This would be
> simple with the current interface, as you can reflect this mapping in
> the inst_data, which is passed around. Is there any application or
> use-case relying on the numbering hole being existent?
Having holes makes things a lot more KISS on the sensor driver side, besides
that drivers with holes in their numbering already exist, we cannot simply
change the numbering as that would be breaking the user kernelspace API,
so either we need to support holes in the numbering, or we will never be
able to convert those drivers to the new core...
Regards,
Hans
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
prev parent reply other threads:[~2011-09-18 11:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-15 20:45 [lm-sensors] [RFC 1/2] add new hwmon-core interface v2 Lucas Stach
2011-09-15 20:57 ` Guenter Roeck
2011-09-15 22:31 ` [lm-sensors] [RFC 1/2] add new hwmon-core interface v3 Lucas Stach
2011-09-16 8:37 ` Hans de Goede
2011-09-16 13:05 ` Lucas Stach
2011-09-16 13:51 ` Guenter Roeck
2011-09-18 11:17 ` Hans de Goede [this message]
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=4E75D33A.4040305@redhat.com \
--to=hdegoede@redhat.com \
--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.