提交 a86713b1 编写于 作者: S Sudhir Sreedharan 提交者: Greg Kroah-Hartman

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: NSudhir Sreedharan <ssreedharan@mvista.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 daea65a7
......@@ -2606,6 +2606,9 @@ int uart_add_one_port(struct uart_driver *drv, struct uart_port *uport)
if (uport->cons && uport->dev)
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);
num_groups = 2;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册