Re: Duplicate regulator sysfs files..

From: Mark Brown
Date: Thu May 05 2011 - 04:17:01 EST


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

> appended is a report from Werner Landgraf <w.landgraf@xxxxx> 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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/