summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/sirfsoc_uart.h
diff options
context:
space:
mode:
authorQipan Li <Qipan.Li@csr.com>2015-07-14 00:52:23 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-07-23 15:32:04 -0700
commit466e285b1f63e84a6ced5cd18c3c3d90bda73404 (patch)
tree30e87148646da7df909f0609326c6a72b3b626c8 /drivers/tty/serial/sirfsoc_uart.h
parent1d26c9ff420f647df4a7a3e9a28736b9cff6359a (diff)
downloadblackbird-op-linux-466e285b1f63e84a6ced5cd18c3c3d90bda73404.tar.gz
blackbird-op-linux-466e285b1f63e84a6ced5cd18c3c3d90bda73404.zip
serial: sirf: let uart's receive start in right place
While UART work in DMA mode, function start_rx will request descriptor from DMA engine, if there is no left descriptor UART, driver will give err logs "DMA slave single fail". currently start_rx is called in set_termios function, so everytime, port setting will call start_rx once. Now put start_rx in startup, it will be called once while open the port. Signed-off-by: Qipan Li <Qipan.Li@csr.com> Signed-off-by: Barry Song <Baohua.Song@csr.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/sirfsoc_uart.h')
-rw-r--r--drivers/tty/serial/sirfsoc_uart.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/tty/serial/sirfsoc_uart.h b/drivers/tty/serial/sirfsoc_uart.h
index 671a08dc5497..c3a885b4d76a 100644
--- a/drivers/tty/serial/sirfsoc_uart.h
+++ b/drivers/tty/serial/sirfsoc_uart.h
@@ -423,7 +423,6 @@ struct sirfsoc_uart_port {
struct dma_chan *tx_dma_chan;
dma_addr_t tx_dma_addr;
struct dma_async_tx_descriptor *tx_dma_desc;
- unsigned int rx_io_count;
unsigned long transfer_size;
enum sirfsoc_tx_state tx_dma_state;
unsigned int cts_gpio;
OpenPOWER on IntegriCloud