termios and console cflag problems (on uart) with suspend/resume

From: Wireen
Date: Fri Feb 25 2011 - 04:19:38 EST

As I have understood it when resume is done the cflag from the console
is being used to reinitialize the uart unless a userspace process has
opened the uart in which case the termios setting is being used. This
seem to have been done by resetting the cflag for the console and in
that case use the termios settings. However it looks (to me) that when
the userspace process closes the uart the termios settings will be gone
(and the cflag for the console is gone too), this will make the
suspend/resume not being able to restore the uart settings (which in
turn means that kernel logging to uart will stop working after suspend).

Have I missed something (ie is it supposed to work in another way?) or
is this an intensional behavior?

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