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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: 
 <CY4PR03MB3399F66B70302CD41D6DC82E9B512@CY4PR03MB3399.namprd03.prod.outlook.com>
Date: Mon, 19 Feb 2024 09:04:57 +0000
From: "Miclaus, Antoniu" <Antoniu.Miclaus@...log.com>
To: Chris Packham <Chris.Packham@...iedtelesis.co.nz>,
        Alessandro Zummo
	<a.zummo@...ertech.it>,
        Alexandre Belloni <alexandre.belloni@...tlin.com>,
        Rob Herring <robh+dt@...nel.org>,
        Krzysztof Kozlowski
	<krzysztof.kozlowski+dt@...aro.org>,
        Conor Dooley <conor+dt@...nel.org>, Jean
 Delvare <jdelvare@...e.com>,
        Guenter Roeck <linux@...ck-us.net>,
        "linux-rtc@...r.kernel.org" <linux-rtc@...r.kernel.org>,
        "devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "linux-hwmon@...r.kernel.org" <linux-hwmon@...r.kernel.org>
Subject: RE: [PATCH v9 2/2] rtc: max31335: add driver support



--
Antoniu Miclăuş

> -----Original Message-----
> From: Chris Packham <Chris.Packham@...iedtelesis.co.nz>
> Sent: Monday, February 19, 2024 4:52 AM
> To: Miclaus, Antoniu <Antoniu.Miclaus@...log.com>; Alessandro Zummo
> <a.zummo@...ertech.it>; Alexandre Belloni
> <alexandre.belloni@...tlin.com>; Rob Herring <robh+dt@...nel.org>;
> Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>; Conor Dooley
> <conor+dt@...nel.org>; Jean Delvare <jdelvare@...e.com>; Guenter Roeck
> <linux@...ck-us.net>; linux-rtc@...r.kernel.org; devicetree@...r.kernel.org;
> linux-kernel@...r.kernel.org; linux-hwmon@...r.kernel.org
> Subject: Re: [PATCH v9 2/2] rtc: max31335: add driver support
> 
> [External]
> 
> Hi All,
> 
> I'm looking at folding this into the rest of the max313xx support (but
> I'll stick with the max31335 name since that's landed) and I noticed a
> problem.
> 
> On 21/11/23 01:00, Antoniu Miclaus wrote:
> > RTC driver for MAX31335 ±2ppm Automotive Real-Time Clock with
> > Integrated MEMS Resonator.
> >
> > Reviewed-by: Guenter Roeck <linux@...ck-us.net>
> > Signed-off-by: Antoniu Miclaus <antoniu.miclaus@...log.com>
> <snip>
> > +
> > +static bool max31335_volatile_reg(struct device *dev, unsigned int reg)
> > +{
> > +	/* time keeping registers */
> > +	if (reg >= MAX31335_SECONDS &&
> > +	    reg < MAX31335_SECONDS + MAX31335_TIME_SIZE)
> > +		return true;
> > +
> > +	/* interrupt status register */
> > +	if (reg == MAX31335_INT_EN1_A1IE)
> > +		return true;
> Presumably this should be something else as MAX31335_INT_EN1_A1IE is a
> bitfield offset not a register.  Based on the other chips I'm guessing
> this should be `reg == MAX31335_STATUS1`. I'll try to incorporate a fix
> into my update but someone might want to fix it up for stable.

Indeed, MAX31335_STATUS1  should be used here. I re-checked the latest
datasheet that I have.

Thanks for pointing that out. 

I will add a patch soon.

> > +
> > +	/* temperature registers */
> > +	if (reg == MAX31335_TEMP_DATA_MSB ||
> MAX31335_TEMP_DATA_LSB)
> > +		return true;
> > +
> > +	return false;
> > +}
> > +

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ