[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130605140338.GC2934@katana>
Date: Wed, 5 Jun 2013 16:03:40 +0200
From: Wolfram Sang <wsa@...-dreams.de>
To: Linus Walleij <linus.walleij@...ricsson.com>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Stephen Warren <swarren@...dia.com>,
Kevin Hilman <khilman@...aro.org>,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
Linus Walleij <linus.walleij@...aro.org>,
Hebbar Gururaja <gururaja.hebbar@...com>,
Mark Brown <broonie@...nel.org>,
Dmitry Torokhov <dmitry.torokhov@...il.com>,
Stephen Warren <swarren@...dotorg.org>
Subject: Re: [PATCH 1/3] drivers: pinctrl sleep and idle states in the core
On Wed, Jun 05, 2013 at 03:44:31PM +0200, Linus Walleij wrote:
> From: Linus Walleij <linus.walleij@...aro.org>
>
> If a device have sleep and idle states in addition to the
> default state, look up these in the core and stash them in
> the pinctrl state container.
>
> Add accessor functions for pinctrl consumers to put the pins
> into "default", "sleep" and "idle" states passing nothing but
> the struct device * affected.
>
> Solution suggested by Kevin Hilman, Mark Brown and Dmitry
> Torokhov in response to a patch series from Hebbar
> Gururaja.
>
> Cc: Hebbar Gururaja <gururaja.hebbar@...com>
> Cc: Mark Brown <broonie@...nel.org>
> Cc: Dmitry Torokhov <dmitry.torokhov@...il.com>
> Cc: Kevin Hilman <khilman@...aro.org>
> Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
> Cc: Stephen Warren <swarren@...dotorg.org>
> Cc: Wolfram Sang <wsa@...-dreams.de>
> Signed-off-by: Linus Walleij <linus.walleij@...aro.org>
Some nits:
> + if (IS_ERR(pins->sleep_state))
> + return 0; /* No default state */
Comment wants to say "sleep state"?
> + ret = pinctrl_select_state(pins->p, pins->sleep_state);
> + if (ret)
> + dev_err(dev, "failed to activate sleep pinctrl state\n");
Better say "pinctrl sleep state"?
> + if (IS_ERR(pins->idle_state))
> + return 0; /* No default state */
> + ret = pinctrl_select_state(pins->p, pins->idle_state);
> + if (ret)
> + dev_err(dev, "failed to activate idle pinctrl state\n");
Similar issues here...
Other than that, on all 3 patches:
Acked-by: Wolfram Sang <wsa@...-dreams.de>
Download attachment "signature.asc" of type "application/pgp-signature" (837 bytes)
Powered by blists - more mailing lists