Re: [v6,1/1] hwmon: (nct7904) Fix incorrect temperature limitation register setting of LTD.

2019-09-28 Thread Jean Delvare
On Mon, 18 Jun 2085 15:57:19 +, amy.s...@advantech.com.tw wrote: > (...) I suggest you fix your system clock ;-) -- Jean Delvare SUSE L3 Support

[PATCH] hwmon: w83795: Fan control option isn't that dangerous

2019-08-06 Thread Jean Delvare
and enable the feature unconditionally. It doesn't do anything until the user explicitly starts twiddling with sysfs attributes anyway. Signed-off-by: Jean Delvare --- drivers/hwmon/Kconfig |7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) --- linux-5.2.orig/drivers/hwmon/Kconfig

Re: [PATCH] hwmon: Convert remaining drivers to use SPDX identifier

2019-06-21 Thread Jean Delvare
/hwmon/adm1029.c| 10 -- > drivers/hwmon/adt7411.c| 5 + > drivers/hwmon/adt7475.c| 5 + > drivers/hwmon/iio_hwmon.c | 5 + > drivers/hwmon/max197.c | 5 + > drivers/hwmon/scpi-hwmon.c | 10 +- > 6 files changed, 5 insertions(+), 35 delet

Re: [PATCH] hwmon: (smsc47m1) fix outside array bounds warnings

2019-05-22 Thread Jean Delvare
piled and stored, no, thank you. Another code checker could legitimately complain about that actually. IMHO if code checkers return false positives then they are not helping us and should not be used in the first place. -- Jean Delvare SUSE L3 Support

Re: [PATCH 2/2] docs: hwmon: remove the extension from .rst files

2019-04-19 Thread Jean Delvare
ested-by: Jani Nikula The line above appears to be truncated. > Signed-off-by: Mauro Carvalho Chehab > --- > Documentation/hwmon/index.rst | 316 +- > 1 file changed, 158 insertions(+), 158 deletions(-) -- Jean Delvare SUSE L3 Support

Re: [PATCH v2 1/2] hwmon: (occ) Move common code to a separate module

2019-04-11 Thread Jean Delvare
On Wed, 10 Apr 2019 13:02:32 -0500, Eddie James wrote: > On 4/10/19 5:47 AM, Jean Delvare wrote: > > Instead of duplicating the common code into the 2 (binary) drivers, > > move the common code to a separate module. This is cleaner. > > > > Signed-off-by: Jean Delvare

[PATCH v2 2/2] hwmon: OCC drivers are ARM-only

2019-04-10 Thread Jean Delvare
These drivers are for a BMC inside PowerPC servers. The BMC runs on ARM hardware, so only propose the drivers on this architecture, unless build-testing. Signed-off-by: Jean Delvare Cc: Eddie James Cc: Guenter Roeck --- If PowerPC BMCs are ever based on another architecture and these drivers

[PATCH v2 1/2] hwmon: (occ) Move common code to a separate module

2019-04-10 Thread Jean Delvare
Instead of duplicating the common code into the 2 (binary) drivers, move the common code to a separate module. This is cleaner. Signed-off-by: Jean Delvare Cc: Eddie James Cc: Guenter Roeck --- Eddie, can you please give it a try and confirm it works? Note: I kept the module names

[PATCH] hwmon: OCC drivers are PowerPC-only

2019-04-09 Thread Jean Delvare
Don't propose PowerPC-only drivers on other architectures, unless build-testing. Also drop configuration symbol SENSORS_OCC which serves no purpose that I can see. Signed-off-by: Jean Delvare Cc: Eddie James Cc: Guenter Roeck --- SENSORS_OCC *would* serve a purpose if the common code between

Re: libsensors soname bump

2018-12-19 Thread Jean Delvare
Hi Ondřej, On Tue, 18 Dec 2018 18:06:00 +0100, Ondřej Lysoněk wrote: > On 16. 12. 18 12:43, Jean Delvare wrote: > > Would you consider quickly releasing lm-sensors 3.5.1 with the proper > > library version number, to save all that work to all application > > authors/maintai

Re: libsensors soname bump

2018-12-17 Thread Jean Delvare
with a patch reverting the undue soname change. I used "4.5.0" instead. I intend to carry this patch for as long as I have to. This goes against our policy of sticking to upstream as much as possible, but in this specific case, I consider it the least of 2 evils. Thanks, -- Jean Delvare SUSE L3 Support

Re: libsensors soname bump

2018-12-17 Thread Jean Delvare
On Mon, 17 Dec 2018 10:46:43 +0100, Ondřej Lysoněk wrote: > On 16. 12. 18 12:43, Jean Delvare wrote: > > You have recently released lm-sensors 3.5.0 with a new soname for > > libsensors: > > > > -LIBMAINVER := 4 > > -LIBMINORVER := 4.0 > > +

libsensors soname bump

2018-12-16 Thread Jean Delvare
releasing lm-sensors 3.5.1 with the proper library version number, to save all that work to all application authors/maintainers and distribution package maintainers? Thanks, -- Jean Delvare SUSE L3 Support

Re: How to detect which device is mapped to hwmonX ?

2018-12-12 Thread Jean Delvare
sensors does not offer an API for it. I remember writing a libsensors-based name look-up tool years ago. I'm a bit in a hurry but I have copied what I have at: http://jdelvare.nerim.net/devel/lm-sensors/patches/ Maybe we can revive the idea if there is a need. -- Jean Delvare SUSE L3 Support

Re: [PATCH] hwmon: (lm92) Fix whitespace issues

2018-09-18 Thread Jean Delvare
pace at empty line). > > Signed-off-by: Guenter Roeck > --- > drivers/hwmon/lm92.c | 14 -- > 1 file changed, 8 insertions(+), 6 deletions(-) > (...) Reviewed-by: Jean Delvare Thanks Guenter, -- Jean Delvare SUSE L3 Support

Re: [PATCH] hwmon: Mark expected switch fall-throughs

2018-07-03 Thread Jean Delvare
* intentional */ > + /* fall through */ Do you know which -Wimplicit-fallthrough level we will be using? Level 1 would be happy with the initial comment, no change would be needed. If level 2-4 then yes the change is needed. > default: > reg = nct6775_read_va

Re: [PATCH v2] hwmon: (lm92) Add max6635 to lm92_id[]

2018-03-22 Thread Jean Delvare
t; - /* max6635 could be added here */ > + { "lm92", lm92 }, > + { "max6635", max6635 }, > { } > }; > MODULE_DEVICE_TABLE(i2c, lm92_id); Reviewed-by: Jean Delvare <jdelv...@suse.de> -- Jean Delvare SUSE L3 Support -- To unsubscribe from this list: send the line "unsubscribe linux-hwmon" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] hwmon: (lm92) Add max6635 to lm92_id[]

2018-03-22 Thread Jean Delvare
t;max6635", max6635 }, > { } > }; > MODULE_DEVICE_TABLE(i2c, lm92_id); As the driver doesn't treat the two devices differently, the enum isn't really needed. I don't really mind though, just a notice. Reviewed-by: Jean Delvare <jdelv...@suse.de> Please also updat

Re: [PATCH v2] hwmon: (lm92) Remove spurious test that prevented max6635 detection

2018-03-21 Thread Jean Delvare
o if register LM92_REG_MAN_ID does not contain any useful value on the MAX6635, I would rather drop auto-detection of these devices altogether, and only support them when explicitly instantiated. Thanks, -- Jean Delvare SUSE L3 Support -- To unsubscribe from this list: send the line "unsubscribe linux-hwmon" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH] hwmon: Drop reference to Jean's tree

2017-11-21 Thread Jean Delvare
This tree has not been used for over a year, Guenter is taking all the hwmon patches in practice. Signed-off-by: Jean Delvare <jdelv...@suse.de> Cc: Guenter Roeck <li...@roeck-us.net> --- MAINTAINERS |1 - 1 file changed, 1 deletion(-) --- linux-4.14.orig/MAINTAINERS 2017

Re: [PATCH] hwmon: Drop unnecessary 'default n' from Kconfig

2017-11-19 Thread Jean Delvare
le changed, 16 deletions(-) > (...) Reviewed-by: Jean Delvare <jdelv...@suse.de> (and heartily approved - thanks for doing that) -- Jean Delvare SUSE L3 Support -- To unsubscribe from this list: send the line "unsubscribe linux-hwmon" in the body of a message to majord...@vger.kernel.org Mor

Re: [PATCH v1 12/15] hwmon: (w83793) Remove duplicate NULL check

2017-10-31 Thread Jean Delvare
On Tue, 31 Oct 2017 16:21:46 +0200, Andy Shevchenko wrote: > Since i2c_unregister_device() became NULL-aware we may remove duplicate > NULL check. > > Cc: Rudolf Marek <r.ma...@assembler.cz> > Cc: Jean Delvare <jdelv...@suse.com> > Cc: Guenter Roeck <li..

Re: [PATCH v1 10/15] hwmon: (w83791d) Remove duplicate NULL check

2017-10-31 Thread Jean Delvare
On Tue, 31 Oct 2017 16:21:44 +0200, Andy Shevchenko wrote: > Since i2c_unregister_device() became NULL-aware we may remove duplicate > NULL check. > > Cc: Marc Hulsman <m.huls...@tudelft.nl> > Cc: Jean Delvare <jdelv...@suse.com> > Cc: Guenter Roeck <li..

Re: [PATCH v1 09/15] hwmon: (w83781d) Remove duplicate NULL check

2017-10-31 Thread Jean Delvare
On Tue, 31 Oct 2017 16:21:43 +0200, Andy Shevchenko wrote: > Since i2c_unregister_device() became NULL-aware we may remove duplicate > NULL check. > > Cc: Jean Delvare <jdelv...@suse.com> > Cc: Guenter Roeck <li...@roeck-us.net> > Cc: linux-hwmon@vger.kernel.org &g

Re: [PATCH] tmp102: Fix first temperature reading

2017-10-24 Thread Jean Delvare
> - } > + tmp102->ready_time = jiffies + msecs_to_jiffies(CONVERSION_TIME_MS); > > hwmon_dev = devm_hwmon_device_register_with_info(dev, client->name, > tmp102, Thanks for the quick fix. The change itself looks good but why remove the comment, which

[PATCH] hwmon: (stts751) Fix buffer size passed to snprintf

2017-09-19 Thread Jean Delvare
Function snprintf already cares for the terminating NUL at the end of the string, the caller doesn't need to do it. Signed-off-by: Jean Delvare <jdelv...@suse.de> Cc: Andrea Merello <andrea.mere...@gmail.com> Cc: Guenter Roeck <li...@roeck-us.net> --- drivers/hwmo

Re: [PATCH] hwmon: adt7475: wusbhc: constify attribute_group structures.

2017-08-07 Thread Jean Delvare
= { .attrs = in5_attrs }; > +static const struct attribute_group vid_attr_group = { .attrs = vid_attrs }; > > static int adt7475_detect(struct i2c_client *client, > struct i2c_board_info *info) Looks good to me. Reviewed-by: Jean Delvare <jdelv...@suse.de>

Re: userspace regression with hwmon

2017-06-27 Thread Jean Delvare
es. If you just do what libsensors does, you'll be on the safe side. -- Jean Delvare SUSE L3 Support -- To unsubscribe from this list: send the line "unsubscribe linux-hwmon" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] hwmon: (it87) Remove useless test during device detection

2017-05-04 Thread Jean Delvare
On Thu, 4 May 2017 11:35:06 +0200, Jean Delvare wrote: > There is no reason to treat the IT8705F differently during device > detection. If a single IT8705F chip indeed answers to both Super-IO > addresses, we have code in place to detect the duplicate device > address and skip th

Re: [PATCH 0/4] hwmon-NCT: Fine-tuning for four function implementations

2017-04-27 Thread Jean Delvare
straight: we will not take any patch from you. You are an annoyance we don't need. Do not waste our time. Go away. -- Jean Delvare SUSE L3 Support -- To unsubscribe from this list: send the line "unsubscribe linux-hwmon" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: it87 causes VIA hardware to lockup

2017-04-25 Thread Jean Delvare
Hi Guenter, On Sun, 9 Apr 2017 08:24:07 -0700, Guenter Roeck wrote: > On Sun, Apr 09, 2017 at 03:38:06PM +0200, Jean Delvare wrote: > > On Tue, 21 Mar 2017 10:05:03 -0700, Guenter Roeck wrote: > > > I'll submit the patch as-is upstream; at least it doesn't break anything. >

Re: it87 causes VIA hardware to lockup

2017-04-09 Thread Jean Delvare
to v.4.10, shouldn't it go to stable@? As a side note, I think the second half of the patch is redundant, it only makes registration slightly faster on IT8705F, and could have bad side effects at least in theory. The first half seems sufficient to me... -- Jean Delvare SUSE L3 Support -- To un

Re: [PATCH] hwmon: (dell-smm) Add Dell XPS 15 9560 into DMI list

2017-03-08 Thread Jean Delvare
Jean, that was easy. You're welcome, glad I could help :-) > Looking forward to see it in some future kernel. -- Jean Delvare SUSE L3 Support -- To unsubscribe from this list: send the line "unsubscribe linux-hwmon" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Question about hwmon_attr_show_string

2017-03-07 Thread Jean Delvare
final buffer. > > The idea was that the called code would return a pointer to a constant string, > ie one that isn't changing from call to call. In that case, what about the following change? Subject: hwmon: Constify str parameter of hwmon_ops->read_string The read_string callback is sup

Re: [PATCH] hwmon: (dell-smm) Add Dell XPS 15 9560 into DMI list

2017-03-06 Thread Jean Delvare
u could give a try to this standalone driver: http://jdelvare.nerim.net/devel/lm-sensors/drivers/dell-smm-hwmon/ Instructions are at: http://jdelvare.nerim.net/devel/lm-sensors/drivers/INSTALL -- Jean Delvare SUSE L3 Support -- To unsubscribe from this list: send the line "unsubscribe linux-h

Re: [PATCH] hwmon: Relax name attribute validation for new APIs

2017-01-31 Thread Jean Delvare
ame attribute\n", > + name); May I suggest adding ", please fix"? > > id = ida_simple_get(_ida, 0, 0, GFP_KERNEL); > if (id < 0) Reviewed-by: Jean Delvare <jdelv...@suse.de> Do I understand correctly that in the long run we will make

Re: [PATCH v2] hwmon: Update documentation to clarify rules for the 'name' attribute

2017-01-25 Thread Jean Delvare
g > - spaces nor dashes, representing the chip name. This is > - the only mandatory attribute. > + whitespace, dashes, or the wildcard character '*'. > + This attribute represents the chip name. It is the only > + mandatory attribute. >

Re: [PATCH v3] hwmon: Make name attribute mandatory for new APIs

2017-01-25 Thread Jean Delvare
Please convert the > driver to use hwmon_device_register_with_info().\n"); > > - return hwmon_device_register_with_groups(dev, NULL, NULL, NULL); > + return __hwmon_device_register(dev, NULL, NULL, NULL, NULL); > } > EXPORT_SYMBOL_GPL(hwmon_device_register); > Reviewed-b

Re: [PATCH] hwmon: Update documentation to clarify rules for the 'name' attribute

2017-01-25 Thread Jean Delvare
dashes, or the wildcard characters '.' and '*'. > + This attribute represents the chip name. It is the only > + mandatory attribute. > I2C devices get this attribute created automatically. > RO > -- Jean Delvare SUSE L3 Suppo

Re: [PATCH v2] hwmon: Make name attribute mandatory for new APIs

2017-01-25 Thread Jean Delvare
gt;info)) > return ERR_PTR(-EINVAL); > ... this breaks hwmon_device_register(), which calls: return hwmon_device_register_with_groups(dev, NULL, NULL, NULL); name So y

Re: [PATCH 03/17] hwmon: (lm93) Fix overflows seen when writing into limit attributes

2016-12-13 Thread Jean Delvare
ffsets are in the range 0C <= x <= 7.5C in 0.5C increments. > diff --git a/drivers/hwmon/lm93.c b/drivers/hwmon/lm93.c > index 90bb04858117..7b3152368e3b 100644 > --- a/drivers/hwmon/lm93.c > +++ b/drivers/hwmon/lm93.c > (...) Code changes all look good to me, good job. Hairy code

Re: [PATCH 16/17] hwmon: (gl518sm) Fix overflows seen when writing into limit attributes

2016-12-13 Thread Jean Delvare
#define VDD_FROM_REG(val)(((val) * 95 + 2) / 4) > > #define DIV_FROM_REG(val)(1 << (val)) Code looks good. Alignment is a bit clumsy though. Also it feels strange now that you are using DIV_ROUND_CLOSEST for VDD_TO_REG but not VDD_FROM_REG. Reviewed-by: Jean Delvare <jdelv.

Re: [PATCH v2] hwmon: (nct7802) Fix overflows seen when writing into limit attributes

2016-12-12 Thread Jean Delvare
On Mon, 12 Dec 2016 06:14:14 -0800, Guenter Roeck wrote: > Hi Jean, > > On 12/12/2016 02:03 AM, Jean Delvare wrote: > > On Fri, 9 Dec 2016 12:41:02 -0800, Guenter Roeck wrote: > >> Fix overflows seen when writing voltage and temperature limit attributes. &g

Re: [PATCH 11/17] hwmon: (lm85) Fix overflows seen when writing voltage limit attributes

2016-12-09 Thread Jean Delvare
; #define INSEXT_FROM_REG(n, val, ext) \ > SCALE(((val) << 4) + (ext), 192 << 4, lm85_scaling[n]) Reviewed-by: Jean Delvare <jdelv...@suse.de> -- Jean Delvare SUSE L3 Support -- To unsubscribe from this list: send the line "unsubscribe linux-hwmon"

Re: [PATCH 09/17] hwmon: (nct7802) Fix overflows seen when writing into limit attributes

2016-12-09 Thread Jean Delvare
On Fri, 9 Dec 2016 06:22:43 -0800, Guenter Roeck wrote: > On 12/09/2016 01:49 AM, Jean Delvare wrote: > > Looking at function nct7802_write_fan_min() I think an overflow can > > happen here too, as DIV_ROUND_CLOSEST() is called before clamp_val(). > > Any reason why you

Re: [PATCH 10/17] hwmon: (lm87) Fix overflow seen when writing voltage limit attributes

2016-12-09 Thread Jean Delvare
((val) * 192 + (scale) / 2) / (scale)) > > #define TEMP_FROM_REG(reg) ((reg) * 1000) Reviewed-by: Jean Delvare <jdelv...@suse.de> -- Jean Delvare SUSE L3 Support -- To unsubscribe from this list: send the line "unsubscribe linux-hwmon" in the body of a

Re: [PATCH 09/17] hwmon: (nct7802) Fix overflows seen when writing into limit attributes

2016-12-09 Thread Jean Delvare
(data->regmap, nr, val & 0xff); > return err ? : count; Looking at function nct7802_write_fan_min() I think an overflow can happen here too, as DIV_ROUND_CLOSEST() is called before clamp_val(). Any reason why you did not fix that one? -- Jean Delvare SUSE L3 Support -- To unsubscrib

Re: [PATCH 06/17] hwmon: (adm1026) Fix overflows seen when writing into limit attributes

2016-12-09 Thread Jean Delvare
Hi Guenter, On Thu, 8 Dec 2016 07:34:35 -0800, Guenter Roeck wrote: > On 12/08/2016 06:33 AM, Jean Delvare wrote: > > On Sun, 4 Dec 2016 20:55:29 -0800, Guenter Roeck wrote: > >> @@ -215,11 +216,11 @@ static int adm1026_scaling[] = { /* .001 Volts */ > >> #define DIV_

Re: [PATCH v2] hwmon: (adt7462) Fix overflows seen when writing into limit attributes

2016-12-09 Thread Jean Delvare
igned-off-by: Guenter Roeck <li...@roeck-us.net> > --- > v2: Simplified clamping > Separate clamp_val() and DIV_ROUND_CLOSEST() into two lines. > > drivers/hwmon/adt7462.c | 12 ++-- > 1 file changed, 6 insertions(+), 6 deletions(-) > (...) Reviewed-by: J

Re: [PATCH v2] hwmon: (adm1026) Fix overflows seen when writing into limit attributes

2016-12-09 Thread Jean Delvare
++- > 1 file changed, 17 insertions(+), 9 deletions(-) > (...) Reviewed-by: Jean Delvare <jdelv...@suse.de> -- Jean Delvare SUSE L3 Support -- To unsubscribe from this list: send the line "unsubscribe linux-hwmon" in the body of a message to majord...@vger.

Re: [PATCH 07/17] hwmon: (adt7462) Fix overflows seen when writing into limit attributes

2016-12-08 Thread Jean Delvare
pwm_tmin(struct device *dev, > if (kstrtol(buf, 10, )) > return -EINVAL; > > - temp = DIV_ROUND_CLOSEST(temp, 1000) + 64; > - temp = clamp_val(temp, 0, 255); > + temp = DIV_ROUND_CLOSEST(clamp_val(temp, -64000, 191000), 1000) + 64; >

Re: [PATCH 05/17] hwmon: (adm1025) Fix overflows seen when writing voltage limits

2016-12-08 Thread Jean Delvare
92 ? 255 : \ >((val) * 192 + (scale) / 2) / (scale)) > > #define TEMP_FROM_REG(reg) ((reg) * 1000) Reviewed-by: Jean Delvare <jdelv...@suse.de> -- Jean Delvare SUSE L3 Support -- To unsubscribe from this list: send the line "unsubscribe lin

Re: [PATCH 04/17] hwmon: (smsc47m192) Fix overflows seen when writing into limit attributes

2016-12-08 Thread Jean Delvare
128C to +127C) > * REG: 1C/bit, two's complement > */ > -static inline s8 TEMP_TO_REG(int val) > +static inline s8 TEMP_TO_REG(long val) > { > return SCALE(clamp_val(val, -128000, 127000), 1, 1000); > } Other than this: Reviewed-by: Jean Delvare <j

Re: [PATCH 02/17] hwmon: (ds620) Fix overflows seen when writing temperature limits

2016-12-08 Thread Jean Delvare
625) * 8; > > mutex_lock(>update_lock); > data->temp[attr->index] = val; Reviewed-by: Jean Delvare <jdelv...@suse.de> Fixes: 6099469805c2 ("hwmon: Support for Dallas Semiconductor DS620") -- Jean Delvare SUSE L3 Support -- To unsubscribe from this li

Re: [PATCH 01/17] hwmon: (adm9240) Fix overflows seen when writing into limit attributes

2016-12-08 Thread Jean Delvare
nctions: /* temperature range: -40..125, 127 disables temperature alarm */ static inline s8 TEMP_TO_REG(long val) { val = clamp_val(val, -4, 127000); return SCALE(val, 1, 1000); } /* analog out 0..1250mV */ static inline u8 AOUT_TO_REG(unsigned long val) { val = cla

Re: [PATCH v3 2/9] hwmon: (core) New hwmon registration API

2016-10-11 Thread Jean Delvare
Hi Guenter, On Mon, 10 Oct 2016 16:48:22 -0700, Guenter Roeck wrote: > On Fri, Oct 07, 2016 at 02:32:13PM +0200, Jean Delvare wrote: > > On Tue, 4 Oct 2016 12:37:13 -0700, Guenter Roeck wrote: > > > On Tue, Oct 04, 2016 at 10:45:59AM +0200, Jean Delvare wrote: > > &g

Re: [PATCH v3 2/9] hwmon: (core) New hwmon registration API

2016-10-07 Thread Jean Delvare
Hi Guenter, On Tue, 4 Oct 2016 12:37:13 -0700, Guenter Roeck wrote: > On Tue, Oct 04, 2016 at 10:45:59AM +0200, Jean Delvare wrote: > > I see this patch is upstream now, but I had started reviewing it and > > maybe some of my comments are still relevant. > > >

Re: [PATCH v3 2/9] hwmon: (core) New hwmon registration API

2016-10-04 Thread Jean Delvare
will not be readable. > + * Parameters are: > + * @dev: Pointer to hardware monitoring device > + * @type: Sensor type > + * @attr: Sensor attribute > + * @channel: > + * Channel number > + * @val:

Re: [PATCH v3 1/9] hwmon: (core) Order include files alphabetically

2016-09-27 Thread Jean Delvare
ed-off-by: Guenter Roeck <li...@roeck-us.net> > --- > v3: No change > v2: Added patch > > drivers/hwmon/hwmon.c | 10 -- > 1 file changed, 4 insertions(+), 6 deletions(-) > (...) Reviewed-by: Jean Delvare <jdelv...@suse.de> -- Jean Delvare SUSE L3

[PATCH] sensors-detect: Report proper processor information on ppc

2016-09-26 Thread Jean Delvare
t;{stepping})\n"; + } elsif (defined $cpu->{'cpu'}) { # ppc + print "# Processor: $cpu->{'cpu'}, revision $cpu->{'revision'}\n"; + } } # @i2c_adapters is a list of references to hashes, one hash per I2C/SMBus -- Jean Delvare SUSE L3 Su

Re: [PATCH] hwmon: adt7470: Allow faster removal

2016-09-02 Thread Jean Delvare
top and the i2c device to be removed. In the intervening time > a new fan-tray could have been installed. Thanks for the clarification. An actual use case makes it easier to think about solutions. > On 09/01/2016 08:18 PM, Jean Delvare wrote: > > > > This change looks terribly costly

Re: [PATCH] hwmon: adt7470: Allow faster removal

2016-09-01 Thread Jean Delvare
ng low power states at all, leading to an increased system temperature and power consumption. Have you compared the output of "powertop" (specifically the "Idle stats" section) before and after your patch? Is there no way to voluntarily interrupt this long msleep_interrupti

Re: [v4.7.2: Oops] When loading IT87 HARDWARE MONITORING DRIVER

2016-08-29 Thread Jean Delvare
On Mon, 29 Aug 2016 07:46:36 -0700, Guenter Roeck wrote: > On 08/29/2016 03:11 AM, Jean Delvare wrote: > > On Mon, 29 Aug 2016 12:06:34 +0200, Jean Delvare wrote: > >> I'm trying to find when the bug was introduced. I have a hard time > >> believing it went unnoticed

Re: [v4.7.2: Oops] When loading IT87 HARDWARE MONITORING DRIVER

2016-08-29 Thread Jean Delvare
ced for long. If it fixes your problem I'll send a clean patch. -- Jean Delvare SUSE L3 Support -- To unsubscribe from this list: send the line "unsubscribe linux-hwmon" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] hwmon: (lm90) Improve error handling

2016-07-27 Thread Jean Delvare
d_action_or_reset(dev, lm90_remove_pec, dev); > + if (err) > + return err; > } > > hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, I'm not yet familiar with that API but it looks like the right thing to do. Reviewed

Re: [patch] hwmon: (pmbus) Add explicit support for DPS-460, DPS-800, and SGD009

2016-07-26 Thread Jean Delvare
1 file changed, 18 insertions(+), 2 deletions(-) > (...) Reviewed-by: Jean Delvare <jdelv...@suse.de> I leave the final ack to Guenter. -- Jean Delvare SUSE L3 Support -- To unsubscribe from this list: send the line "unsubscribe linux-hwmon" in the body of a message to majord..

Re: contact / hwmon

2016-07-25 Thread Jean Delvare
etemp.0/hwmon/hwmon1/temp2_input > > /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp2_label > > Unfortunately, that is a "feature". Numbering is determined by the module > load order. hwmon0 is the first registered hwmon device, hwmon1 is the next, > and so on. Since the module

Re: [PATCH v2] hwmon: (sht3x) set initial jiffies to last_update

2016-07-25 Thread Jean Delvare
_update = jiffies - msecs_to_jiffies(3000); > data->client = client; > crc8_populate_msb(sht3x_crc8_table, SHT3X_CRC8_POLYNOMIAL); > Reviewed-by: Jean Delvare <jdelv...@suse.de> -- Jean Delvare SUSE L3 Support -- To unsubscribe from this list: send the line "unsubscribe linux-hwmon" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] hwmon: sht3x: set initial jiffies to last_update

2016-07-21 Thread Jean Delvare
Hi Matt, On Fri, 8 Jul 2016 17:22:10 -0700, Matt Ranostay wrote: > On Fri, Jul 8, 2016 at 12:56 AM, Jean Delvare <jdelv...@suse.de> wrote: > > On jeu., 2016-07-07 at 19:46 -0700, Matt Ranostay wrote: > >> Handling the wraparound requires the data->last_update to be set

Re: [PATCH v3 00/25] hwmon: (it87) Various enhancements and fixes

2016-04-12 Thread Jean Delvare
> is good to go for upstream, even without code review feedback. Otherwise > I fear we'll never get there. Jean, any objections ? I am sorry that I do not have the time to review this patch series. But I trust your judgment and I have no objection, if you think the series is good to g