All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: linux-arm-kernel@lists.infradead.org
Cc: Tony Lindgren <tony@atomide.com>,
	Andrey Smirnov <andrew.smirnov@gmail.com>,
	linux-omap@vger.kernel.org, Lee Jones <lee.jones@linaro.org>
Subject: Re: Regmap regression in next caused by of_iomap change
Date: Thu, 08 Sep 2016 21:59:20 +0200	[thread overview]
Message-ID: <4088076.eNNe5WgnxT@wuerfel> (raw)
In-Reply-To: <20160908184111.vj3sb2ik6ydehkag@atomide.com>

On Thursday, September 8, 2016 11:41:12 AM CEST Tony Lindgren wrote:
> Hi,
> 
> Looks like commit 39de2c4275a9 ("mfd: syscon: Make use of of_iomap")
> makes at least MMC PBIAS regulator stop working on omap3.
>
> That's probably because of_syscon_register uses the now unintialized
> struct resource res to set syscon_config.max_register.

Looks correct. Lee, please send a revert of that patch to Linus
along with any other fixes you may have.
 
> I have a strange deja vu feeling that we've been through this
> before  See commit ca668f0edfae ("mfd: syscon: Set regmap max_register
> in of_syscon_register")
> 
> Maybe we should add comments there instead?

I wonder why gcc didn't detect this case. I usually do my
test builds with -Wmaybe-uninitialized that should have
caught it but didn't.

	Arnd

WARNING: multiple messages have this Message-ID (diff)
From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: Regmap regression in next caused by of_iomap change
Date: Thu, 08 Sep 2016 21:59:20 +0200	[thread overview]
Message-ID: <4088076.eNNe5WgnxT@wuerfel> (raw)
In-Reply-To: <20160908184111.vj3sb2ik6ydehkag@atomide.com>

On Thursday, September 8, 2016 11:41:12 AM CEST Tony Lindgren wrote:
> Hi,
> 
> Looks like commit 39de2c4275a9 ("mfd: syscon: Make use of of_iomap")
> makes at least MMC PBIAS regulator stop working on omap3.
>
> That's probably because of_syscon_register uses the now unintialized
> struct resource res to set syscon_config.max_register.

Looks correct. Lee, please send a revert of that patch to Linus
along with any other fixes you may have.
 
> I have a strange deja vu feeling that we've been through this
> before  See commit ca668f0edfae ("mfd: syscon: Set regmap max_register
> in of_syscon_register")
> 
> Maybe we should add comments there instead?

I wonder why gcc didn't detect this case. I usually do my
test builds with -Wmaybe-uninitialized that should have
caught it but didn't.

	Arnd

  reply	other threads:[~2016-09-08 19:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-08 18:41 Regmap regression in next caused by of_iomap change Tony Lindgren
2016-09-08 18:41 ` Tony Lindgren
2016-09-08 19:59 ` Arnd Bergmann [this message]
2016-09-08 19:59   ` Arnd Bergmann
2016-09-12  8:55   ` Lee Jones
2016-09-12  8:55     ` Lee Jones
2016-09-12  8:55     ` Arnd Bergmann
2016-09-12  8:55       ` Arnd Bergmann

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=4088076.eNNe5WgnxT@wuerfel \
    --to=arnd@arndb.de \
    --cc=andrew.smirnov@gmail.com \
    --cc=lee.jones@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=tony@atomide.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.