public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Liam Girdwood <lrg@slimlogic.co.uk>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Duplicate regulator sysfs files..
Date: Thu, 5 May 2011 09:16:33 +0100	[thread overview]
Message-ID: <20110505081633.GC11744@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <BANLkTimme-B72D=QfsdgAUKP83VoaKrWNw@mail.gmail.com>

On Wed, May 04, 2011 at 04:39:11PM -0700, Linus Torvalds wrote:

>  appended is a report from Werner Landgraf <w.landgraf@ru.ru> who
> builds a kernel with pretty much everything enabled, and forwarded
> this from one of his testers.

> Comments? Why does that "supply vmmc not found, using dummy regulator"
> message show up twice? And apparently it tries to register it both
> times, which on the second try results in a WARN_ON() from sysfs..

Yes, this is a bug in the consumer driver - it's requesting the same
supply twice for the same device, causing the regulator API to try to
set the supply up twice.  It should only be requesting it once.  Ideally
the API should reject the second get() but the user is buggy anyway.

      reply	other threads:[~2011-05-05  8:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-04 23:39 Duplicate regulator sysfs files Linus Torvalds
2011-05-05  8:16 ` Mark Brown [this message]

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=20110505081633.GC11744@opensource.wolfsonmicro.com \
    --to=broonie@opensource.wolfsonmicro.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lrg@slimlogic.co.uk \
    --cc=torvalds@linux-foundation.org \
    /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