All of lore.kernel.org
 help / color / mirror / Atom feed
From: PERIER Romain <romain.perier@gmail.com>
To: Mark Brown <broonie@kernel.org>
Cc: "Heiko Stübner" <heiko@sntech.de>,
	linux-rockchip@lists.infradead.org,
	linux-arm-kernel@lists.infradead.org,
	devicetree <devicetree@vger.kernel.org>,
	"Liam Girdwood" <lgirdwood@gmail.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1 1/3] regulator: act8865: Add support to turn off all outputs
Date: Sun, 28 Sep 2014 14:00:54 +0200	[thread overview]
Message-ID: <CABgxDo+h2AYjAO4darK4+RTXqnhf4OqouGLfF2yuJCpu7r6tLg@mail.gmail.com> (raw)
In-Reply-To: <20140928103301.GN27755@sirena.org.uk>

Hi Mark,


2014-09-28 12:33 GMT+02:00 Mark Brown <broonie@kernel.org>:
> On Sat, Sep 27, 2014 at 04:21:44PM +0000, Romain Perier wrote:
>> When the property "active-semi,system-power-controller" is found in the
>> devicetree, the function pm_power_off is defined. This function sends the
>> rights bit fields to the global off control register. shutdown/poweroff
>> commands are now supported for hardware components which use these PMU.
>
> We really need to come up with a standard property for this and document
> it rather than continuing to add individual device specific properties
> all doing the same thing, and probably also some helper code and/or a
> standard operation for this - there's a lot of drivers implementing the
> same pattern here.

I completly agree about adding a unified and generic property for that purpose.
I already proposed something for that on devicetree ML, see the thread
"Proposal: generic property for system-power-controller".
Unfortunately I did not get replies :) .


>
>> +     if (dev->of_node &&
>> +         of_property_read_bool(dev->of_node,
>> +                               "active-semi,system-power-controller")) {
>> +             act8865_i2c_client = client;
>
> Indentation seems messed up here - tabs vs spaces?

Yes, I really don't understand where the problem is. I use good emacs
settings to be compatible with kernel coding style and git diff does
not show me indent/spaces problems :/ .
Sorry because this is a very boring issue when reviewing patches... I
will investigate ^^

Romain

WARNING: multiple messages have this Message-ID (diff)
From: PERIER Romain <romain.perier-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: "Heiko Stübner" <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>,
	linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	devicetree <devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	"Liam Girdwood"
	<lgirdwood-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH v1 1/3] regulator: act8865: Add support to turn off all outputs
Date: Sun, 28 Sep 2014 14:00:54 +0200	[thread overview]
Message-ID: <CABgxDo+h2AYjAO4darK4+RTXqnhf4OqouGLfF2yuJCpu7r6tLg@mail.gmail.com> (raw)
In-Reply-To: <20140928103301.GN27755-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>

Hi Mark,


2014-09-28 12:33 GMT+02:00 Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>:
> On Sat, Sep 27, 2014 at 04:21:44PM +0000, Romain Perier wrote:
>> When the property "active-semi,system-power-controller" is found in the
>> devicetree, the function pm_power_off is defined. This function sends the
>> rights bit fields to the global off control register. shutdown/poweroff
>> commands are now supported for hardware components which use these PMU.
>
> We really need to come up with a standard property for this and document
> it rather than continuing to add individual device specific properties
> all doing the same thing, and probably also some helper code and/or a
> standard operation for this - there's a lot of drivers implementing the
> same pattern here.

I completly agree about adding a unified and generic property for that purpose.
I already proposed something for that on devicetree ML, see the thread
"Proposal: generic property for system-power-controller".
Unfortunately I did not get replies :) .


>
>> +     if (dev->of_node &&
>> +         of_property_read_bool(dev->of_node,
>> +                               "active-semi,system-power-controller")) {
>> +             act8865_i2c_client = client;
>
> Indentation seems messed up here - tabs vs spaces?

Yes, I really don't understand where the problem is. I use good emacs
settings to be compatible with kernel coding style and git diff does
not show me indent/spaces problems :/ .
Sorry because this is a very boring issue when reviewing patches... I
will investigate ^^

Romain
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

WARNING: multiple messages have this Message-ID (diff)
From: romain.perier@gmail.com (PERIER Romain)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v1 1/3] regulator: act8865: Add support to turn off all outputs
Date: Sun, 28 Sep 2014 14:00:54 +0200	[thread overview]
Message-ID: <CABgxDo+h2AYjAO4darK4+RTXqnhf4OqouGLfF2yuJCpu7r6tLg@mail.gmail.com> (raw)
In-Reply-To: <20140928103301.GN27755@sirena.org.uk>

Hi Mark,


2014-09-28 12:33 GMT+02:00 Mark Brown <broonie@kernel.org>:
> On Sat, Sep 27, 2014 at 04:21:44PM +0000, Romain Perier wrote:
>> When the property "active-semi,system-power-controller" is found in the
>> devicetree, the function pm_power_off is defined. This function sends the
>> rights bit fields to the global off control register. shutdown/poweroff
>> commands are now supported for hardware components which use these PMU.
>
> We really need to come up with a standard property for this and document
> it rather than continuing to add individual device specific properties
> all doing the same thing, and probably also some helper code and/or a
> standard operation for this - there's a lot of drivers implementing the
> same pattern here.

I completly agree about adding a unified and generic property for that purpose.
I already proposed something for that on devicetree ML, see the thread
"Proposal: generic property for system-power-controller".
Unfortunately I did not get replies :) .


>
>> +     if (dev->of_node &&
>> +         of_property_read_bool(dev->of_node,
>> +                               "active-semi,system-power-controller")) {
>> +             act8865_i2c_client = client;
>
> Indentation seems messed up here - tabs vs spaces?

Yes, I really don't understand where the problem is. I use good emacs
settings to be compatible with kernel coding style and git diff does
not show me indent/spaces problems :/ .
Sorry because this is a very boring issue when reviewing patches... I
will investigate ^^

Romain

  reply	other threads:[~2014-09-28 12:00 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-27 16:21 [PATCH v1 1/3] regulator: act8865: Add support to turn off all outputs Romain Perier
2014-09-27 16:21 ` Romain Perier
2014-09-27 16:21 ` [PATCH v1 2/3] ARM: dts: rockchip: Enable power off in pmic for Radxa Rock Romain Perier
2014-09-27 16:21   ` Romain Perier
2014-09-27 16:21 ` [PATCH v1 3/3] dt-bindings: Document the property system-power-controller for act8865 regulator Romain Perier
2014-09-27 16:21   ` Romain Perier
2014-09-28 10:33 ` [PATCH v1 1/3] regulator: act8865: Add support to turn off all outputs Mark Brown
2014-09-28 10:33   ` Mark Brown
2014-09-28 12:00   ` PERIER Romain [this message]
2014-09-28 12:00     ` PERIER Romain
2014-09-28 12:00     ` PERIER Romain
2014-09-28 12:25     ` Mark Brown
2014-09-28 12:25       ` Mark Brown
2014-09-28 12:25       ` Mark Brown
2014-09-28 13:25       ` PERIER Romain
2014-09-28 13:25         ` PERIER Romain
2014-09-28 13:25         ` PERIER Romain
2014-09-28 15:04         ` PERIER Romain
2014-09-28 15:04           ` PERIER Romain
2014-09-28 15:04           ` PERIER Romain

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=CABgxDo+h2AYjAO4darK4+RTXqnhf4OqouGLfF2yuJCpu7r6tLg@mail.gmail.com \
    --to=romain.perier@gmail.com \
    --cc=broonie@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=heiko@sntech.de \
    --cc=lgirdwood@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rockchip@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 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.