[PATCH 4/7] tty: serial: support pinmux in pxa serial
Greg KH
greg at kroah.com
Wed Nov 30 06:04:09 EST 2011
On Mon, Nov 28, 2011 at 10:15:34AM +0100, Linus Walleij wrote:
> 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.
Acked-by: Greg Kroah-Hartman <gregkh at suse.de>
More information about the linux-arm-kernel
mailing list