summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial
diff options
context:
space:
mode:
authorPeter Hurley2014-09-02 23:39:20 +0200
committerGreg Kroah-Hartman2014-09-09 01:23:36 +0200
commit5435d20f506f16352a4e1637b8e8fb7c0d422bb9 (patch)
tree032d052256d87cdd279e7ec26be3293b820584a3 /drivers/tty/serial
parentserial: core: Document lock requirement for UPF_* flags updates (diff)
downloadkernel-qcow2-linux-5435d20f506f16352a4e1637b8e8fb7c0d422bb9.tar.gz
kernel-qcow2-linux-5435d20f506f16352a4e1637b8e8fb7c0d422bb9.tar.xz
kernel-qcow2-linux-5435d20f506f16352a4e1637b8e8fb7c0d422bb9.zip
serial: 8250: Document serial8250_modem_status() locking
Existing callers of serial8250_modem_status() [1] hold the uart port lock; document. [1] In-tree callers of serial8250_modem_status() drivers/tty/serial/8250/8250_fsl.c fsl8250_handle_irq() drivers/tty/serial/8250/8250_core.c serial8250_handle_irq() serial8250_console_write() serial8250_get_mctrl() * * Call graphs for callers of serial8250_get_mctrl() from the function which acquires the uart port lock drivers/tty/serial/serial_core.c uart_port_startup() uart_tiocmget() uart_set_termios() uart_carrier_raised() ops->get_mctrl() ---> serial8250_get_mctrl() Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial')
-rw-r--r--drivers/tty/serial/8250/8250_core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/tty/serial/8250/8250_core.c b/drivers/tty/serial/8250/8250_core.c
index 46c1f5fc44d3..b597e730b9e7 100644
--- a/drivers/tty/serial/8250/8250_core.c
+++ b/drivers/tty/serial/8250/8250_core.c
@@ -1463,6 +1463,7 @@ void serial8250_tx_chars(struct uart_8250_port *up)
}
EXPORT_SYMBOL_GPL(serial8250_tx_chars);
+/* Caller holds uart port lock */
unsigned int serial8250_modem_status(struct uart_8250_port *up)
{
struct uart_port *port = &up->port;