lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1320860536.2309.173.camel@groeck-laptop>
Date:	Wed, 9 Nov 2011 09:42:16 -0800
From:	Guenter Roeck <guenter.roeck@...csson.com>
To:	Thierry Reding <thierry.reding@...onic-design.de>
CC:	Jean Delvare <khali@...ux-fr.org>,
	"lm-sensors@...sensors.org" <lm-sensors@...sensors.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] hwmon: lm63: Add support for the NatSemi LM96163.

On Tue, 2011-11-08 at 02:30 -0500, Thierry Reding wrote:
> * Guenter Roeck wrote:
> > Hi,
> > 
> > On Mon, 2011-11-07 at 05:20 -0500, Thierry Reding wrote:
> > > Signed-off-by: Thierry Reding <thierry.reding@...onic-design.de>
> > > ---
> > >  drivers/hwmon/lm63.c |    2 +-
> > >  1 files changed, 1 insertions(+), 1 deletions(-)
> > > 
> > > diff --git a/drivers/hwmon/lm63.c b/drivers/hwmon/lm63.c
> > > index 508cb29..94e373c 100644
> > > --- a/drivers/hwmon/lm63.c
> > > +++ b/drivers/hwmon/lm63.c
> > > @@ -483,7 +483,7 @@ static int lm63_detect(struct i2c_client *new_client,
> > >  		return -ENODEV;
> > >  	}
> > >  
> > > -	if (chip_id == 0x41 && address == 0x4c)
> > > +	if ((chip_id == 0x41 || chip_id == 0x49) && address == 0x4c)
> > >  		strlcpy(info->type, "lm63", I2C_NAME_SIZE);
> > >  	else if (chip_id == 0x51 && (address == 0x18 || address == 0x4e))
> > >  		strlcpy(info->type, "lm64", I2C_NAME_SIZE);
> > 
> > Minor - the new chip should be mentioned in drivers/hwmon/Kconfig and in
> > Documentation/hwmon/lm63.
> 
> I don't see how to list this variant meaningfully in the documentation.
> Since, as you mention, no functionality specific to the LM96163 is added,
> this patch really only adds support for one more lm63 chip.
> 
> > My main concern is that LM96163 supports a high resolution PWM mode.
> > Since that mode is much more convenient than the LM63-compatible mode, I
> > think it is likely to be enabled in designs using LM96163, and it should
> > be supported by the driver if we add support for LM96163.
> 
> Unfortunately our design doesn't use the PWM at all. It is only used for
> temperature measurements, so I'm not able to test any of the PWM code.

I requested samples for both LM63 and LM96163, so I should be able to
test that part.

Guenter


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ