[PATCH] pl011: added clock management feature

Russell King - ARM Linux linux at arm.linux.org.uk
Tue Nov 9 10:44:39 EST 2010


On Tue, Nov 09, 2010 at 04:30:37PM +0100, Linus Walleij wrote:
> From: Grzegorz Sygieda <grzegorz.sygieda at tieto.com>
> 
> This patch allows to control the pl011 clock using set_termios
> callback. Any positive baudrate passed enables clock, otherwise
> disables. This saves a lot of power on submicron designs since
> we can clock off and disable unused UARTs.

Why not just close the port to save power - the clock in that case will
automatically be turned off.

It's not like the port can be used without the baud rate correctly set -
or indeed characters transmitted or received without the clock running.
So all the time that the clock is disabled, the port is inoperable.

If you want to maintain the modem control line settings while the port
is closed, why not clear the HUPCL termios flag?



More information about the linux-arm-kernel mailing list