diff options
author | 2024-05-06 13:40:18 +0200 | |
---|---|---|
committer | 2024-05-10 11:48:33 +0100 | |
commit | 8efc440549087de41abadf62f4bde1d827135338 (patch) | |
tree | f9a63a685c7f286b49d0754927231a53ebbd69cf /drivers/tty | |
parent | serial: sh-sci: protect invalidating RXDMA on shutdown (diff) | |
download | linux-8efc440549087de41abadf62f4bde1d827135338.tar.gz linux-8efc440549087de41abadf62f4bde1d827135338.tar.bz2 linux-8efc440549087de41abadf62f4bde1d827135338.zip |
serial: sh-sci: describe locking requirements for invalidating RXDMA
Make sure everyone knows that calling this function needs protection.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/20240506114016.30498-8-wsa+renesas@sang-engineering.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/sh-sci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index 4d34950268b9..7a7bc18e4705 100644 --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c @@ -1257,6 +1257,7 @@ static int sci_dma_rx_find_active(struct sci_port *s) return -1; } +/* Must only be called with uart_port_lock taken */ static void sci_dma_rx_chan_invalidate(struct sci_port *s) { unsigned int i; |