]> git.baikalelectronics.ru Git - kernel.git/commit
serial: core: Document and assert lock requirements for irq helpers
authorPeter Hurley <peter@hurleysoftware.com>
Wed, 10 Sep 2014 19:06:23 +0000 (15:06 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Sep 2014 04:19:34 +0000 (21:19 -0700)
commit4e1039ec123f12485a950995d536a317e557c287
treeb6ae1e41260d1591aeabc56bb54969ffb4061729
parent87902d816ec146f5055bcc8868ada3ae88df87aa
serial: core: Document and assert lock requirements for irq helpers

The serial core provides two helper functions, uart_handle_dcd_change()
and uart_handle_cts_change(), for UART drivers to use at interrupt
time. The serial core expects the UART driver to hold the uart port lock
when calling these helpers to prevent state corruption.

If lockdep enabled, trigger a warning if the uart port lock is not held
when calling these helper functions.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_core.c