Re: [PATCH v2] hwmon: Update Documentation/hwmon/sysfs-interface

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Darrick J. Wong <djwong@...>
Cc: Mark M. Hoffman <mhoffman@...>, Henrique de Moraes Holschuh <hmh@...>, <linux-kernel@...>, <lm-sensors@...>, <haveblue@...>
Date: Friday, September 21, 2007 - 4:43 am

Hi Darrick,

On Mon, 17 Sep 2007 11:43:11 -0700, Darrick J. Wong wrote:

Sounds good, thanks.


OK, fine with me then.


I'm fine having them in the spec as long as the interface is made
generic enough.


This doesn't mean we do not want separate files. The same problem
exists for many other hardware monitoring features. For example most
thermal sensor chips have one high temperature limit per temperature
channel. However some of them have a single limit register for several
channels! The approach we have taken so far was to have individual
files, and it's up to the driver to keep them in sync.

Another example is alarm files. Some chips have a single alarm for
out-of-range voltage measurements. Others have separate alarms for low
voltage and high voltage limit crossing. In that case, we decided to
have either a single file (in0_alarm) or separate files (in0_min_alarm
and in0_max_alarm) depending on what the chip supports. Admittedly this
is not very consistent with what we did for the shared temperature
limits.


No, there's no such established precedent. This was only a suggestion
from me as it seems to make some sense. If you don't like the idea,
just ignore it.

-- 
Jean Delvare
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] v1 of IBM power meter driver, Darrick J. Wong, (Mon Aug 27, 5:14 pm)
Re: [PATCH] v1 of IBM power meter driver, Henrique de Moraes Holschuh..., (Mon Aug 27, 9:50 pm)
Re: [lm-sensors] [PATCH] v1 of IBM power meter driver, Jean Delvare, (Tue Aug 28, 7:19 am)
[PATCH] v2 of IBM power meter driver, Darrick J. Wong, (Tue Aug 28, 12:49 pm)
[PATCH] v3 of IBM power meter driver, Darrick J. Wong, (Tue Aug 28, 7:25 pm)
Re: [PATCH] v3 of IBM power meter driver, Mark M. Hoffman, (Tue Sep 11, 9:23 am)
[PATCH v4] IBM power meter driver, Darrick J. Wong, (Fri Sep 14, 3:33 pm)
Re: [PATCH v4] IBM power meter driver, Mark M. Hoffman, (Tue Oct 9, 8:00 am)
Re: [PATCH v4] IBM power meter driver, Darrick J. Wong, (Fri Oct 12, 8:29 pm)
Re: [PATCH v4] IBM power meter driver, Roel Kluin, (Tue Oct 9, 12:44 pm)
Re: [PATCH v4] IBM power meter driver, Darrick J. Wong, (Tue Oct 9, 4:40 pm)
[PATCH v2] hwmon: Update Documentation/hwmon/sysfs-interface, Darrick J. Wong, (Fri Sep 14, 3:29 pm)
Re: [PATCH v2] hwmon: Update Documentation/hwmon/sysfs-inter..., Jean Delvare, (Fri Sep 21, 4:43 am)
Re: [PATCH] v3 of IBM power meter driver, Darrick J. Wong, (Tue Sep 11, 9:11 pm)
Re: [PATCH] v3 of IBM power meter driver, Jean Delvare, (Tue Sep 11, 9:59 am)
Re: [lm-sensors] [PATCH] hwmon: Add power meters to Document..., Henrique de Moraes Holschuh..., (Sat Sep 1, 3:44 pm)
Re: [lm-sensors] [PATCH] hwmon: Add power meters to Document..., Henrique de Moraes Holschuh..., (Sun Sep 2, 10:02 pm)
Re: [lm-sensors] [PATCH] hwmon: Add power meters to Document..., Henrique de Moraes Holschuh..., (Mon Sep 3, 7:22 pm)
Re: [lm-sensors] [PATCH] hwmon: Add power meters to Document..., Henrique de Moraes Holschuh..., (Thu Sep 6, 12:29 pm)
Re: [lm-sensors] [PATCH] v1 of IBM power meter driver, Darrick J. Wong, (Tue Aug 28, 12:28 pm)
Re: [lm-sensors] [PATCH] v1 of IBM power meter driver, Jean Delvare, (Wed Aug 29, 5:49 am)
Re: [lm-sensors] [PATCH] v1 of IBM power meter driver, Frank Phillips, (Wed Aug 29, 8:45 am)