Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 8efc440

Browse files
Wolfram Sanggregkh
authored andcommitted
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>
1 parent aae20f6 commit 8efc440

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/tty/serial/sh-sci.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,6 +1257,7 @@ static int sci_dma_rx_find_active(struct sci_port *s)
12571257
return -1;
12581258
}
12591259

1260+
/* Must only be called with uart_port_lock taken */
12601261
static void sci_dma_rx_chan_invalidate(struct sci_port *s)
12611262
{
12621263
unsigned int i;

0 commit comments

Comments
 (0)