TTY: serial, fill uart_port_shutdown
authorJiri Slaby <jslaby@suse.cz>
Wed, 9 Nov 2011 20:33:51 +0000 (21:33 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Nov 2011 23:59:03 +0000 (15:59 -0800)
commitb922e19d03a680d732b61dc8e82d9948f6f8b6c7
treeb2bb41893f4c11b049af559feae99e168b458f6f
parent0b1db83081599615cf7b254aebc14a2d8f6ca056
TTY: serial, fill uart_port_shutdown

Let's fill the port_ops->shutdown. We will need this for hangup and
close port helpers.

We don't need to touch DTR/RTS registers in uart_port_shutdown. They
are set to off from port_close_start properly already.

Also we don't need to pin the TTY_IO_ERROR bit. This will be done in
close/hangup paths.

We leave uart_shutdown as is, because it is used (and will be) from
several paths now. Like from suspend.

The point is to not touch ASYNC_INITIALIZED bit. It will be set (and
checked) properly by the tty port helpers.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/serial/serial_core.c