serial: sh-sci: Stop calling sci_start_rx() from sci_request_dma()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 18 Sep 2015 11:08:27 +0000 (13:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 16:36:10 +0000 (17:36 +0100)
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>
drivers/tty/serial/sh-sci.c

index 02aaf4d..ac9ce8f 100644 (file)
@@ -1386,7 +1386,6 @@ static void sci_request_dma(struct uart_port *port)
                                 "Failed to allocate Rx dma buffer, using PIO\n");
                        dma_release_channel(chan);
                        s->chan_rx = NULL;
-                       sci_start_rx(port);
                        return;
                }