Re: [PATCH] pinctrl: at91: add the config GPIO_OUTPUT_x
From: Linus Walleij
Date: Fri Mar 14 2014 - 06:36:02 EST
On Tue, Mar 11, 2014 at 6:37 PM, Nicolas Ferre <nicolas.ferre@xxxxxxxxx> wrote:
> Linus,
>
> For the nature of this feature, I would like to have your clear advice
> as this is needed and has been proposed twice (at least). This feature
> is needed for power management states of GPIOs.
It seems that this is aligned with what other pin control drivers do
to move pins to low power states. As long as the same pins are
never used for "ordinary" GPIO through gpiolib I think doing this is
just some electric aspect of the pin and controlled by the device using
it as part of its normal low-power operation. No different from e.g.
setting a different biasing or decoupling or grounding the pin or whatever.
The fact that the register or bit(s) are named ...gpio-something... is
irrelevant if they cannot be accessed as such.
If you want to be *really* picky you can start go about to edit
your gpio-ranges so that it is impossible to cross-reference one of
these GPIOs to a pin, and thus impossible to use them from the
GPIO subsystem. (Right now the at91 driver is using
pinctrl_add_gpio_range() so switch this to using ranges defined
from the device tree if you are fully migrated to DT.)
Basically this is a system issue, how you guys want to handle the
AT91 low-power modes.
I think you are three maintainers of AT91:
M: Andrew Victor <linux@xxxxxxxxxxxx>
M: Nicolas Ferre <nicolas.ferre@xxxxxxxxx>
M: Jean-Christophe Plagniol-Villard <plagnioj@xxxxxxxxxxxx>
Can you get a majority vote on how you want this to work on AT91?
If two out of three AT91 maintainers ACK the patch I will apply it, and
then you three can fight amongst yourselves ;-)
Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/