mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-06 05:06:29 +00:00
serial: sh-sci: simplify locking when re-issuing RXDMA fails
Avoid a superfluous unlock/lock-pair by simply moving the printout to the end of bailing out. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Link: https://lore.kernel.org/r/20240506114016.30498-10-wsa+renesas@sang-engineering.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0c9c1ea583
commit
ae1b6b4c0a
@ -1360,14 +1360,12 @@ static void sci_dma_rx_complete(void *arg)
|
||||
return;
|
||||
|
||||
fail:
|
||||
uart_port_unlock_irqrestore(port, flags);
|
||||
dev_warn(port->dev, "Failed submitting Rx DMA descriptor\n");
|
||||
/* Switch to PIO */
|
||||
uart_port_lock_irqsave(port, &flags);
|
||||
dmaengine_terminate_async(chan);
|
||||
sci_dma_rx_chan_invalidate(s);
|
||||
sci_dma_rx_reenable_irq(s);
|
||||
uart_port_unlock_irqrestore(port, flags);
|
||||
dev_warn(port->dev, "Failed submitting Rx DMA descriptor\n");
|
||||
}
|
||||
|
||||
static void sci_dma_tx_release(struct sci_port *s)
|
||||
|
Loading…
Reference in New Issue
Block a user