Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a86713b1 authored by Sudhir Sreedharan's avatar Sudhir Sreedharan Committed by Greg Kroah-Hartman
Browse files

serial/core: Initialize the console pm state



For console devices having UART_CAP_SLEEP capability, the uart_pm_state has
to be initialized to UART_PM_STATE_ON. Otherwise the LCR regiser values
are reinitialized when uart_change_pm is called from uart_configure_port.

Signed-off-by: default avatarSudhir Sreedharan <ssreedharan@mvista.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent daea65a7
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -2606,6 +2606,9 @@ int uart_add_one_port(struct uart_driver *drv, struct uart_port *uport)
	if (uport->cons && uport->dev)
	if (uport->cons && uport->dev)
		of_console_check(uport->dev->of_node, uport->cons->name, uport->line);
		of_console_check(uport->dev->of_node, uport->cons->name, uport->line);


	if (uart_console(uport))
		state->pm_state = UART_PM_STATE_ON;

	uart_configure_port(drv, state, uport);
	uart_configure_port(drv, state, uport);


	num_groups = 2;
	num_groups = 2;