From: dmitry.torokhov@gmail.com (Dmitry Torokhov)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v11 2/3] power-domain: rockchip: add power doamin driver
Date: Thu, 13 Nov 2014 12:20:02 -0800 (PST) [thread overview]
Message-ID: <2914846.96jvVdAmYN@dtor-glaptop> (raw)
In-Reply-To: <CAGS+omCxtvk7VNr7_tJkDCwZpbW-ocFm2VL4ngujxbS5remmVA@mail.gmail.com>
On Friday, November 14, 2014 03:35:44 AM Daniel Kurtz wrote:
> On Thu, Nov 13, 2014 at 6:01 AM, Caesar Wang <caesar.wang@rock-chips.com> wrote:
> > +
> > + error = -ENXIO;
> > +
> > + for_each_available_child_of_node(np, node) {
> > + error = rockchip_pm_add_one_domain(pmu, node);
> > + if (error) {
> > + dev_err(dev, "failed to handle node %s: %d\n",
> > + node->name, error);
> > + goto err_out;
> > + }
> > + }
> > +
> > + if (error) {
> > + dev_dbg(dev, "no power domains defined\n");
>
> Perhaps dev_err() or dev_warn(), to ensure this message is seen.
> But, not have defined power domains doesn't seem like a fatal error.
> Perhaps just return 0?
As far as the driver concerned it is a fatal error - the driver can't do
anything when no domain is defined.
Thanks.
--
Dmitry
next prev parent reply other threads:[~2014-11-13 20:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-12 22:01 [PATCH v11 0/3] ARM: rk3288: Add PM Domain support Caesar Wang
2014-11-12 22:01 ` [PATCH v11 1/3] dt-bindings: add document of Rockchip power domain Caesar Wang
2014-11-12 22:01 ` [PATCH v11 2/3] power-domain: rockchip: add power doamin driver Caesar Wang
2014-11-13 17:29 ` Doug Anderson
2014-11-13 19:35 ` Daniel Kurtz
2014-11-13 20:20 ` Dmitry Torokhov [this message]
2014-11-17 3:53 ` Caesar Wang
2014-11-14 2:57 ` Daniel Kurtz
2014-11-12 22:01 ` [PATCH v11 3/3] ARM: dts: add rk3288 power-domain node Caesar Wang
2014-11-13 17:33 ` Doug Anderson
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=2914846.96jvVdAmYN@dtor-glaptop \
--to=dmitry.torokhov@gmail.com \
--cc=linux-arm-kernel@lists.infradead.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