Commit 4d90bb1
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>1 parent 9a37110 commit 4d90bb1
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2743 | 2743 | | |
2744 | 2744 | | |
2745 | 2745 | | |
| 2746 | + | |
| 2747 | + | |
2746 | 2748 | | |
2747 | 2749 | | |
2748 | 2750 | | |
2749 | 2751 | | |
2750 | 2752 | | |
2751 | 2753 | | |
2752 | 2754 | | |
| 2755 | + | |
| 2756 | + | |
2753 | 2757 | | |
2754 | 2758 | | |
2755 | 2759 | | |
| |||
2774 | 2778 | | |
2775 | 2779 | | |
2776 | 2780 | | |
| 2781 | + | |
| 2782 | + | |
2777 | 2783 | | |
2778 | 2784 | | |
2779 | 2785 | | |
2780 | 2786 | | |
2781 | 2787 | | |
2782 | 2788 | | |
| 2789 | + | |
| 2790 | + | |
2783 | 2791 | | |
2784 | 2792 | | |
2785 | 2793 | | |
| |||
0 commit comments