Skip to content

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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
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)