linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* About [PATCH 1/2] regulator: core: Provide a dummy regulator with full constraints
@ 2013-10-08  6:09 Wei Ni
  2013-10-08  9:09 ` Mark Brown
  0 siblings, 1 reply; 9+ messages in thread
From: Wei Ni @ 2013-10-08  6:09 UTC (permalink / raw)
  To: Mark Brown; +Cc: linux-kernel@vger.kernel.org

Hi, Mark
In the latest regulator framework, it default to provide dummy
regulators with full constraints by your patch "regulator: core: Provide
a dummy regulator with full constraints".
I tried to use regulator_get() on lm90.c. If not set vcc-supply property
in the dts file to assume the regulator is physically present and
enabled, but it still can't get dummy regulator, just return -ENODEV.
I traced it, the regulator_dev_lookup() will return -ENODEV, and at that
time the has_full_constraints is still false, didn't be initialized in
regulator_init_complete() yet, so it will not return dummy regulator,
and will not return -EPROBE_DEFER either. This will cause the
lm90_probe() failed.

Could you take a look ?

Thanks.
Wei.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-10-17 10:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-08  6:09 About [PATCH 1/2] regulator: core: Provide a dummy regulator with full constraints Wei Ni
2013-10-08  9:09 ` Mark Brown
2013-10-08  9:46   ` Wei Ni
2013-10-12 12:14     ` Mark Brown
2013-10-16  4:36       ` Wei Ni
2013-10-16 10:39         ` Mark Brown
2013-10-17  4:39           ` Wei Ni
2013-10-17  9:37             ` Mark Brown
2013-10-17 10:39               ` Wei Ni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).