We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bd23e0 commit aae20f6Copy full SHA for aae20f6
drivers/tty/serial/sh-sci.c
@@ -1270,9 +1270,14 @@ static void sci_dma_rx_chan_invalidate(struct sci_port *s)
1270
static void sci_dma_rx_release(struct sci_port *s)
1271
{
1272
struct dma_chan *chan = s->chan_rx_saved;
1273
+ struct uart_port *port = &s->port;
1274
+ unsigned long flags;
1275
1276
+ uart_port_lock_irqsave(port, &flags);
1277
s->chan_rx_saved = NULL;
1278
sci_dma_rx_chan_invalidate(s);
1279
+ uart_port_unlock_irqrestore(port, flags);
1280
+
1281
dmaengine_terminate_sync(chan);
1282
dma_free_coherent(chan->device->dev, s->buf_len_rx * 2, s->rx_buf[0],
1283
sg_dma_address(&s->sg_rx[0]));
0 commit comments