[PATCH 4/7] tty: serial: support pinmux in pxa serial

Linus Walleij linus.walleij at linaro.org
Mon Nov 28 04:15:34 EST 2011


On Sat, Nov 26, 2011 at 12:09 AM, Haojian Zhuang
<haojian.zhuang at marvell.com> wrote:

> From: Haojian Zhuang <hzhuang1 at hexinfolabs.org>
>
> PXA serial driver can configure pin directly.
>
> Signed-off-by: Haojian Zhuang <hzhuang1 at hexinfolabs.org>
(...)
> + err_pmx:
> +       pinmux_disable(sport->pmx);
> +       pinmux_put(sport->pmx);

There is this little discussion whether each individual driver should access
it's pins or whether it should be done all centrally.

After some thinking and resoning I actually think this may be best
to have in each driver in most cases. The reason is that while it is
possible to standardize for simple usecases (like this one, just activate
it at probe() and deactivate it at remove()) it gets really complicated
and hairy to have it in central places when we come to things like
suspend()/resume(), idling and sometimes even
runtime_[suspend|resume].

So unless someone else disagrees or talks agains me, and
provided this is how you want to do it for all PXA drivers:
Acked-by: Linus Walleij <linus.walleij at linaro.org>

I need Gregs ACK if you want it to go iin through the pinctrl
tree.

Thanks,
Linus Walleij



More information about the linux-arm-kernel mailing list