]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial_core: convert uart_close to use tty_port_close
authorRob Herring <robh@kernel.org>
Mon, 22 Aug 2016 22:39:10 +0000 (17:39 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Aug 2016 13:42:28 +0000 (15:42 +0200)
commit42d88fe325cf78eff1b9a301b7aa26f079a63747
treec4274fdb9bb559d7da5fbdd38c57ff7fcfb2fc7f
parent6ed42f97362fde57bc2c943072633b3b59f6064c
tty: serial_core: convert uart_close to use tty_port_close

tty_port_close handles much of the common parts of tty close. Convert
uart_close to use it and move the serial_core specific parts into
tty_port.shutdown function. This will be needed to use tty_port functions
directly from in kernel clients.

This change causes ops->stop_rx() to be called after uart_wait_until_sent()
is called which I think should be fine. Otherwise, the sequence of the
close should be the same.

Cc: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_core.c