[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180215083028.GH8219@piout.net>
Date: Thu, 15 Feb 2018 09:30:28 +0100
From: Alexandre Belloni <alexandre.belloni@...e-electrons.com>
To: Denis OSTERLAND <denis.osterland@...hl.com>
Cc: "m.grzeschik@...gutronix.de" <m.grzeschik@...gutronix.de>,
"linux@...ck-us.net" <linux@...ck-us.net>,
"linux-rtc@...r.kernel.org" <linux-rtc@...r.kernel.org>,
"a.zummo@...ertech.it" <a.zummo@...ertech.it>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"jdelvare@...e.com" <jdelvare@...e.com>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"kernel@...gutronix.de" <kernel@...gutronix.de>
Subject: Re: [PATCH 1/4] rtc: isl1208: Fix unintended clear of SR bits
On 15/02/2018 at 07:27:47 +0000, Denis OSTERLAND wrote:
> Am Mittwoch, den 14.02.2018, 21:26 +0100 schrieb Alexandre Belloni:
> > On 23/01/2018 at 13:17:58 +0100, Michael Grzeschik wrote:
> > >
> > > From: Denis Osterland <Denis.Osterland@...hl.com>
> > >
> > > After successful
> > > sr = isl1208_i2c_set_regs(client, 0, regs, ISL1208_RTC_SECTION_LEN);
> > > sr will be 0.
> > > As a result
> > > sr = i2c_smbus_write_byte_data(client, ISL1208_REG_SR,
> > > sr & ~ISL1208_REG_SR_WRTC);
> > > is equal to
> > > sr = i2c_smbus_write_byte_data(client, ISL1208_REG_SR, 0);
> > > which clears all flags in SR.
> > >
> > > Add an additional read of SR, to have value of SR in sr again.
> > >
> > > Signed-off-by: Denis Osterland <Denis.Osterland@...hl.com>
> > > Signed-off-by: Michael Grzeschik <m.grzeschik@...gutronix.de>
> > > ---
> > > drivers/rtc/rtc-isl1208.c | 5 +++++
> > > 1 file changed, 5 insertions(+)
> > >
> > Applied, thanks.
> >
> You are welcome.
>
> One question, shall we avoid resent this patch in v2 of this series?
> I ask because we are pretty far with the suggested changes.
>
No need to resend. If necessary, you can base v2 on top of rtc-next.
--
Alexandre Belloni, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
http://bootlin.com
Powered by blists - more mailing lists