summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/sh-sci.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2015-09-18 13:08:27 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-04 17:36:10 +0100
commit0e5c4b4d154ee0a34e39e1a587f71d4671783abf (patch)
tree94d6e2eddd5c5cff5adabc991eb74b208a720774 /drivers/tty/serial/sh-sci.c
parent756981be7497ab76ae7ccd2fda9223a135320aa1 (diff)
downloadop-kernel-dev-0e5c4b4d154ee0a34e39e1a587f71d4671783abf.zip
op-kernel-dev-0e5c4b4d154ee0a34e39e1a587f71d4671783abf.tar.gz
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>
Diffstat (limited to 'drivers/tty/serial/sh-sci.c')
-rw-r--r--drivers/tty/serial/sh-sci.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c
index 02aaf4d..ac9ce8f 100644
--- a/drivers/tty/serial/sh-sci.c
+++ b/drivers/tty/serial/sh-sci.c
@@ -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;
}
OpenPOWER on IntegriCloud