]> git.karo-electronics.de Git - karo-tx-linux.git/commit
serial: 8250: Document serial8250_modem_status() locking
authorPeter Hurley <peter@hurleysoftware.com>
Tue, 2 Sep 2014 21:39:20 +0000 (17:39 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Sep 2014 23:23:36 +0000 (16:23 -0700)
commit5435d20f506f16352a4e1637b8e8fb7c0d422bb9
tree032d052256d87cdd279e7ec26be3293b820584a3
parent8a949b07e4062cbd07e04e6a47249e69ca65b944
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>
drivers/tty/serial/8250/8250_core.c