Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752738Ab0FWRWe (ORCPT ); Wed, 23 Jun 2010 13:22:34 -0400 Received: from imr3.ericy.com ([198.24.6.13]:59357 "EHLO imr3.ericy.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752201Ab0FWRWd (ORCPT ); Wed, 23 Jun 2010 13:22:33 -0400 Date: Wed, 23 Jun 2010 10:21:44 -0700 From: Guenter Roeck To: Jean Delvare CC: "lm-sensors@lm-sensors.org" , "linux-kernel@vger.kernel.org" Subject: Re: [lm-sensors] Adding critical/fault limits to hwmon sysfs API Message-ID: <20100623172144.GA20046@ericsson.com> References: <20100620163759.GA7077@ericsson.com> <20100623144346.10acd898@hyperion.delvare> <20100623133147.GA19143@ericsson.com> <20100623162911.2028f817@hyperion.delvare> <20100623150325.GA19461@ericsson.com> <20100623183437.5a04dedb@hyperion.delvare> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20100623183437.5a04dedb@hyperion.delvare> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2196 Lines: 45 On Wed, Jun 23, 2010 at 12:34:37PM -0400, Jean Delvare wrote: > Hi Guenter, > > On Wed, 23 Jun 2010 08:03:25 -0700, Guenter Roeck wrote: > > On Wed, Jun 23, 2010 at 10:29:11AM -0400, Jean Delvare wrote: > > > I expected a counter-proposal of this kind. The problem I see is that > > > the new limit we are adding is unrelated to _min. However, the other > > > _min_* file we have (_min_alarm) expresses something which is relative > > > to _min. Same as _max_hyst and _crit_hyst, which are relative to _max > > > and _critn respectively. So I have the feeling that _min_crit sends the > > > wrong signal to the reader. Especially if we keep _crit for the high > > > bound, the asymmetry raises questions. > > > > > > This is my rationale for suggesting _crit and _lcrit. Now, I won't > > > argue forever if others disagree, these is really only a naming > > > convention and everything will be fine as long as the drivers and > > > libsensors agree. > > > > Makes sense. No strong opinion on my side, really. Using crit/lcrit is fine for me as well. > > Maybe we should wait if there is input from others and go with lcrit if there is none. > > OK, fine with me. > > > On a side note, libsensors does not support inX_fault today, even though > > it is mentioned in the API, and there is no currX_fault. Likewise, libsensors supports > > currX_alarm but it is not mentioned in hwmon/sysfs-interface. > > Unless there are objections, I'll clean that up when I add support for the _[l]crit objects. > > Yes, please! > > > Also, lib/sensors.conf.5 has a comment "Likewise, tempX_crit often comes with tempX_max_crit". > > Since tempX_max_crit does not exist, it might make sense to remove that comment. > > Does the sentence make sense if you replace tempX_max_crit with > tempX_crit_hyst? Looks like a copy-paste-edit mistake (that would be > from me.) Yes, I think that is the problem. I'll fix that together with the other changes. Guenter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/