RE: [PATCH] serial-core: power up uart port early before we do set_termios when resuming

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----Original Message-----
> diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c
> index 5c04cb9..4f75918 100644
> --- a/drivers/tty/serial/serial_core.c
> +++ b/drivers/tty/serial/serial_core.c
> @@ -1981,6 +1981,8 @@ int uart_resume_port(struct uart_driver *drv, struct uart_port *uport)
>   		if (port->tty&&  port->tty->termios&&  termios.c_cflag == 0)
>   			termios = *(port->tty->termios);
>
> +		if (console_suspend_enabled)
> +			uart_change_pm(state, 0);
>   		uport->ops->set_termios(uport,&termios, NULL);
>   		if (console_suspend_enabled)
>   			console_start(uport->cons);
I just found the same issue. Looks good to me.

Feel free to add,
Tested-by: Mayank Rana <mrana@xxxxxxxxxxxxxx>

-----

Thanks, Mayank. I've only tested it on pxa platform. More testing on other platforms is welcome.

Sincerely Yours,
Ning Jiang


--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux