S3 suspend and serial console

Carl-Daniel Hailfinger
2005-02-03T14:09:07Z

Hi,

on resume from S3, my serial console prints garbage and stops working.
I assume the BIOS resets the serial port on resume, but I have
abolutely no idea how to find out what speed and parity the serial
port has after resume. A quick try of 9600,57600,115200 didn't
succeed and I now wonder if
- the kernel could reset the serial ports on resume
- the kernel could read the current parameters from the UART and print
them out so I can adjust my serial console.

Oh well... after some investigation, it seems the serial console
goes back to normal after issuing the command
echo foo >/dev/ttyS0

Could it be that the UART state is out-of-sync or something like that
after resume and the serial console code doesn't notice?

Regards,
Carl-Daniel
--