forked from Minki/linux
serial: sh-sci: Stop calling sci_start_rx() from sci_request_dma()
There's no need to call sci_start_rx() from sci_request_dma() when DMA setup fails, as sci_startup() will call sci_start_rx() anyway. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
756981be74
commit
0e5c4b4d15
@ -1386,7 +1386,6 @@ static void sci_request_dma(struct uart_port *port)
|
|||||||
"Failed to allocate Rx dma buffer, using PIO\n");
|
"Failed to allocate Rx dma buffer, using PIO\n");
|
||||||
dma_release_channel(chan);
|
dma_release_channel(chan);
|
||||||
s->chan_rx = NULL;
|
s->chan_rx = NULL;
|
||||||
sci_start_rx(port);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user