Hi,
Le 27/05/2010 23:02, Eric Bénard a écrit :
while testing suspend/resume on i.MX27, I meet a problem on resume : if
the console is on the UART the baudrate it not restored properly (I get
random bitrate between 50 to 2Mbps). Here is a patch to add pm to the
uart_ops (but the problem occurs also without this patch) :
http://lists.infradead.org/pipermail/linux-arm-kernel/2010-May/016495.html
I've noticed that commenting out the following line in serial_core.c
"fix" the problem :
diff --git a/drivers/serial/serial_core.c b/drivers/serial/serial_core.c
index 7f28307..c63476e 100644
--- a/drivers/serial/serial_core.c
+++ b/drivers/serial/serial_core.c
@@ -2092,7 +2092,7 @@ int uart_resume_port(struct uart_driver *drv,
struct uart_
*/
if (uart_console(uport)) {
uart_change_pm(state, 0);
- uport->ops->set_termios(uport, &termios, NULL);
+// uport->ops->set_termios(uport, &termios, NULL);
console_start(uport->cons);
}
Do you have a hint of why the baudrate is not properly restored for the
console or where I should dig to fix this in serial/imx.c ?
Thanks
Eric
--
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