From: Sebastian Andrzej Siewior Date: Fri, 5 Sep 2014 19:02:36 +0000 (+0200) Subject: tty: serial: 8250_core: provide a function to export uart_8250_port X-Git-Tag: fixes-for-v3.18-merge-window~14^2~52 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae14a7954f5124208e6e93cafb3099f83acd43f5;p=pandora-kernel.git 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 Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed