From: Carlo Caione <carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org>
To: Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org,
maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org,
hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org,
emilio-0Z03zUJReD5OxF6Tv1QG9Q@public.gmane.org,
wens-jdAy2FN1RRM@public.gmane.org,
sameo-VuQAYsv1563Yd54FQh9/CA@public.gmane.org,
lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
lgirdwood-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Subject: Re: Re: [PATCH 6/7] regulator: AXP20x: Add support for regulators subsystem
Date: Tue, 11 Mar 2014 22:06:59 +0100 [thread overview]
Message-ID: <20140311210659.GA10961@localhost.fastwebnet.it> (raw)
In-Reply-To: <20140311192940.GA28112-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
On Tue, Mar 11, 2014 at 07:29:40PM +0000, Mark Brown wrote:
> On Tue, Mar 11, 2014 at 08:24:11PM +0100, Carlo Caione wrote:
> > On Mon, Mar 03, 2014 at 10:56:16AM +0900, Mark Brown wrote:
>
> > > > + regulators = of_find_node_by_name(np, "regulators");
> > > > + if (!regulators) {
> > > > + dev_err(&pdev->dev, "regulators node not found\n");
> > > > + return -EINVAL;
> > > > + }
>
> > > The driver should be able to start up with no configuration provided at
> > > all except for the device being registered - the user won't be able to
> > > change anything but they will be able to read the current state of the
> > > hardware which can be useful for diagnostics.
>
> > If the device is DT enabled and no configuration is provided for
> > regulators, these are disabled according to:
>
> > http://lxr.linux.no/linux+v3.13.5/drivers/regulator/core.c#L3797
>
> > Am I missing something or do you have any pointer?
>
> With the above code the driver will return an error and never get as far
> as registering the regulator.
I agree, but if I register the regulators without having the constrains
defined in the DT, when regulator_init_complete() is
called, the regulators are disabled powering off the SoC (at least for
DCDC2 and DCDC3).
Thanks,
--
Carlo Caione
WARNING: multiple messages have this Message-ID (diff)
From: carlo@caione.org (Carlo Caione)
To: linux-arm-kernel@lists.infradead.org
Subject: [linux-sunxi] Re: [PATCH 6/7] regulator: AXP20x: Add support for regulators subsystem
Date: Tue, 11 Mar 2014 22:06:59 +0100 [thread overview]
Message-ID: <20140311210659.GA10961@localhost.fastwebnet.it> (raw)
In-Reply-To: <20140311192940.GA28112@sirena.org.uk>
On Tue, Mar 11, 2014 at 07:29:40PM +0000, Mark Brown wrote:
> On Tue, Mar 11, 2014 at 08:24:11PM +0100, Carlo Caione wrote:
> > On Mon, Mar 03, 2014 at 10:56:16AM +0900, Mark Brown wrote:
>
> > > > + regulators = of_find_node_by_name(np, "regulators");
> > > > + if (!regulators) {
> > > > + dev_err(&pdev->dev, "regulators node not found\n");
> > > > + return -EINVAL;
> > > > + }
>
> > > The driver should be able to start up with no configuration provided at
> > > all except for the device being registered - the user won't be able to
> > > change anything but they will be able to read the current state of the
> > > hardware which can be useful for diagnostics.
>
> > If the device is DT enabled and no configuration is provided for
> > regulators, these are disabled according to:
>
> > http://lxr.linux.no/linux+v3.13.5/drivers/regulator/core.c#L3797
>
> > Am I missing something or do you have any pointer?
>
> With the above code the driver will return an error and never get as far
> as registering the regulator.
I agree, but if I register the regulators without having the constrains
defined in the DT, when regulator_init_complete() is
called, the regulators are disabled powering off the SoC (at least for
DCDC2 and DCDC3).
Thanks,
--
Carlo Caione
next prev parent reply other threads:[~2014-03-11 21:06 UTC|newest]
Thread overview: 68+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-01 16:45 [PATCH 0/7] mfd: AXP20x: Add support for AXP202 and AXP209 Carlo Caione
2014-03-01 16:45 ` Carlo Caione
[not found] ` <1393692352-10839-1-git-send-email-carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org>
2014-03-01 16:45 ` [PATCH 1/7] mfd: AXP20x: Add mfd driver for AXP20x PMIC Carlo Caione
2014-03-01 16:45 ` Carlo Caione
[not found] ` <1393692352-10839-2-git-send-email-carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org>
2014-03-07 18:09 ` Maxime Ripard
2014-03-07 18:09 ` Maxime Ripard
2014-03-08 11:31 ` Carlo Caione
2014-03-08 11:31 ` Carlo Caione
[not found] ` <20140308113141.GA14009-bi+AKbBUZKZeIdyRz4JgOMwOAu8XWILU@public.gmane.org>
2014-03-09 9:11 ` Maxime Ripard
2014-03-09 9:11 ` Maxime Ripard
2014-03-01 16:45 ` [PATCH 2/7] mfd: AXP20x: Add bindings documentation Carlo Caione
2014-03-01 16:45 ` Carlo Caione
[not found] ` <1393692352-10839-3-git-send-email-carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org>
2014-03-07 18:13 ` Maxime Ripard
2014-03-07 18:13 ` Maxime Ripard
2014-03-08 11:38 ` Carlo Caione
2014-03-08 11:38 ` [linux-sunxi] " Carlo Caione
2014-03-01 16:45 ` [PATCH 3/7] ARM: dts: cubieboard2: Add AXP209 support Carlo Caione
2014-03-01 16:45 ` Carlo Caione
[not found] ` <1393692352-10839-4-git-send-email-carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org>
2014-03-07 18:13 ` Maxime Ripard
2014-03-07 18:13 ` Maxime Ripard
2014-03-01 16:45 ` [PATCH 4/7] input: misc: Add driver for AXP20x Power Enable Key Carlo Caione
2014-03-01 16:45 ` Carlo Caione
[not found] ` <1393692352-10839-5-git-send-email-carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org>
2014-03-07 18:18 ` Maxime Ripard
2014-03-07 18:18 ` Maxime Ripard
2014-03-01 16:45 ` [PATCH 5/7] input: misc: Add ABI docs for AXP20x PEK Carlo Caione
2014-03-01 16:45 ` Carlo Caione
2014-03-01 16:45 ` [PATCH 6/7] regulator: AXP20x: Add support for regulators subsystem Carlo Caione
2014-03-01 16:45 ` Carlo Caione
[not found] ` <1393692352-10839-7-git-send-email-carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org>
2014-03-03 1:56 ` Mark Brown
2014-03-03 1:56 ` Mark Brown
[not found] ` <20140303015616.GN2411-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2014-03-04 20:56 ` Carlo Caione
2014-03-04 20:56 ` [linux-sunxi] " Carlo Caione
2014-03-11 19:24 ` Carlo Caione
2014-03-11 19:24 ` [linux-sunxi] " Carlo Caione
[not found] ` <20140311192411.GA4193-bi+AKbBUZKZeIdyRz4JgOMwOAu8XWILU@public.gmane.org>
2014-03-11 19:29 ` Mark Brown
2014-03-11 19:29 ` [linux-sunxi] " Mark Brown
[not found] ` <20140311192940.GA28112-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2014-03-11 21:06 ` Carlo Caione [this message]
2014-03-11 21:06 ` Carlo Caione
[not found] ` <20140311210659.GA10961-bi+AKbBUZKZeIdyRz4JgOMwOAu8XWILU@public.gmane.org>
2014-03-12 0:38 ` Mark Brown
2014-03-12 0:38 ` [linux-sunxi] " Mark Brown
2014-03-07 18:22 ` Maxime Ripard
2014-03-07 18:22 ` Maxime Ripard
2014-03-08 11:43 ` Carlo Caione
2014-03-08 11:43 ` [linux-sunxi] " Carlo Caione
2014-03-09 7:51 ` Mark Brown
2014-03-09 7:51 ` Mark Brown
[not found] ` <20140309075148.GJ28112-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2014-03-09 8:56 ` Carlo Caione
2014-03-09 8:56 ` [linux-sunxi] " Carlo Caione
2014-03-01 16:45 ` [PATCH 7/7] ARM: dts: Cubieboard2: Add support for AXP209 regulators Carlo Caione
2014-03-01 16:45 ` Carlo Caione
2014-03-01 16:56 ` [PATCH 0/7] mfd: AXP20x: Add support for AXP202 and AXP209 Hans de Goede
2014-03-01 16:56 ` Hans de Goede
[not found] ` <53121151.9050804-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2014-03-01 17:17 ` Carlo Caione
2014-03-01 17:17 ` Carlo Caione
[not found] ` <CAOQ7t2ae35E-eiQW4DFspdTe3H7AWGzRpw4B_1t27p0OSkX_Uw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-03-01 19:29 ` Hans de Goede
2014-03-01 19:29 ` [linux-sunxi] " Hans de Goede
[not found] ` <53123507.6020607-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2014-03-05 20:02 ` Hans de Goede
2014-03-05 20:02 ` [linux-sunxi] " Hans de Goede
[not found] ` <531782DF.6090209-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2014-03-05 20:46 ` Carlo Caione
2014-03-05 20:46 ` [linux-sunxi] " Carlo Caione
[not found] ` <CAOQ7t2bx1u73kxQVa3AeQ-hZ9nP3GSukEdXk-jRNwbT0vUH4+A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-03-06 10:07 ` Hans de Goede
2014-03-06 10:07 ` [linux-sunxi] " Hans de Goede
[not found] ` <531848E5.4050704-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2014-03-06 10:10 ` Carlo Caione
2014-03-06 10:10 ` [linux-sunxi] " Carlo Caione
2014-03-06 11:05 ` Hans de Goede
2014-03-06 11:05 ` [linux-sunxi] " Hans de Goede
[not found] ` <5318568E.4040405-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2014-03-06 11:32 ` Carlo Caione
2014-03-06 11:32 ` [linux-sunxi] " Carlo Caione
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=20140311210659.GA10961@localhost.fastwebnet.it \
--to=carlo-ka+7e9hrn00dnm+yrofe0a@public.gmane.org \
--cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=emilio-0Z03zUJReD5OxF6Tv1QG9Q@public.gmane.org \
--cc=hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=lgirdwood-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
--cc=maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org \
--cc=sameo-VuQAYsv1563Yd54FQh9/CA@public.gmane.org \
--cc=wens-jdAy2FN1RRM@public.gmane.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 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.