diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2014-09-05 21:02:36 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-08 16:32:36 -0700 |
commit | ae14a7954f5124208e6e93cafb3099f83acd43f5 (patch) | |
tree | 6dcba5a0186a067bf650d10f2dd9f7d96e3e828c /include/linux/serial_core.h | |
parent | 9d329c1c68d2cc625bb4b8191f37297db6061448 (diff) | |
download | op-kernel-dev-ae14a7954f5124208e6e93cafb3099f83acd43f5.zip op-kernel-dev-ae14a7954f5124208e6e93cafb3099f83acd43f5.tar.gz |
tty: serial: 8250_core: provide a function to export uart_8250_port
There is no way to access a struct uart_8250_port for a specific
line. This is only required outside of the 8250/uart callbacks like for
devices' suspend & remove callbacks. For those the 8250-core provides a
wrapper like serial8250_unregister_port() which passes the struct
to the proper function based on the line argument.
For run time suspend I need access to this struct not only to make
serial_out() work but also to properly restore up->ier and up->mcr.
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/serial_core.h')
0 files changed, 0 insertions, 0 deletions