public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Lee Jones <lee.jones@linaro.org>
To: Andy Yan <andy.yan@rock-chips.com>
Cc: Arnd Bergmann <arnd@arndb.de>, Wadim Egorov <w.egorov@phytec.de>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] rk808: fix RK818_IRQ_DISCHG_ILIM initializer
Date: Wed, 14 Sep 2016 12:22:57 +0100	[thread overview]
Message-ID: <20160914112257.GD638@dell> (raw)
In-Reply-To: <17d9ef19-7760-c38f-8a72-b3427369c2cc@rock-chips.com>

On Wed, 14 Sep 2016, Andy Yan wrote:
> On 2016年09月13日 18:48, Lee Jones wrote:
> > On Tue, 06 Sep 2016, Arnd Bergmann wrote:
> > 
> > > When building with -Woverride-init, we get a warning about an incorrect
> > > initializer:
> > > 
> > > drivers/mfd/rk808.c:244:8: error: initialized field overwritten [-Werror=override-init]
> > >    [RK818_IRQ_DISCHG_ILIM] = {
> > > 
> > > This is clearly a mistake, as both RK818_IRQ_DISCHG_ILIM and RK818_IRQ_USB_OV
> > > are defined as '7', but they refer to different register bits. Changing
> > > RK818_IRQ_DISCHG_ILIM to 15 is consistent with how all other 14 interrupts are
> > > handled here, so I'm assuming this is what it should have been.
> > > 
> > > Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> > > Fixes: 2eedcbfc0612 ("mfd: rk808: Add RK818 support")
> > > ---
> > >   include/linux/mfd/rk808.h | 2 +-
> > >   1 file changed, 1 insertion(+), 1 deletion(-)
> > I would like someone who is in possession of a datasheet to confirm
> > this.
> 
>     According to the datasheet, the RK818_IRQ_USB_OV is in bit 7 of
> INT_STS_REG1(0x4c) and RK818_IRQ_DISCHG_ILIM is in bit 7 of
> INT_STS_REG2(0x4e), so  Arnd's change is right.

I'll take that as an Ack.

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

  reply	other threads:[~2016-09-14 11:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-06 13:13 [PATCH] rk808: fix RK818_IRQ_DISCHG_ILIM initializer Arnd Bergmann
2016-09-13 10:48 ` Lee Jones
2016-09-14  0:49   ` Andy Yan
2016-09-14 11:22     ` Lee Jones [this message]
2016-09-14 11:23 ` Lee Jones

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160914112257.GD638@dell \
    --to=lee.jones@linaro.org \
    --cc=andy.yan@rock-chips.com \
    --cc=arnd@arndb.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=w.egorov@phytec.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox