aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-17 12:33:18 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-17 12:33:18 -0500
commit8f898bfd048f65856d8911a89b1616ad3e677c6c (patch)
tree8441b94166de6d33584ea0aad067926c7b1cc99f
parent4d0ed18277cc6f07513ee0b04475f19cd69e75ef (diff)
Revert "serial: pl011: use DMA RX polling by default"
This reverts commit 17438217a6f5e33d920ed3821a4b857311cc2872 on request of Linus Walleij: Greg can you please drop or revert commit 17438217a6f5e33d920ed3821a4b857311cc2872 "serial: pl011: use DMA RX polling by default" from the TTY tree until this has been sorted out? Cc: Linus Walleij <linus.walleij@linaro.org> Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/tty/serial/amba-pl011.c2
-rw-r--r--include/linux/amba/serial.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c
index c8cc8f02b092..a183aceb6d15 100644
--- a/drivers/tty/serial/amba-pl011.c
+++ b/drivers/tty/serial/amba-pl011.c
@@ -325,7 +325,7 @@ static void pl011_dma_probe_initcall(struct device *dev, struct uart_amba_port *
325 dmaengine_slave_config(chan, &rx_conf); 325 dmaengine_slave_config(chan, &rx_conf);
326 uap->dmarx.chan = chan; 326 uap->dmarx.chan = chan;
327 327
328 if (plat) { 328 if (plat && plat->dma_rx_poll_enable) {
329 /* Set poll rate if specified. */ 329 /* Set poll rate if specified. */
330 if (plat->dma_rx_poll_rate) { 330 if (plat->dma_rx_poll_rate) {
331 uap->dmarx.auto_poll_rate = false; 331 uap->dmarx.auto_poll_rate = false;
diff --git a/include/linux/amba/serial.h b/include/linux/amba/serial.h
index 0891ea0458f6..0ddb5c02ad8b 100644
--- a/include/linux/amba/serial.h
+++ b/include/linux/amba/serial.h
@@ -203,6 +203,7 @@ struct amba_pl011_data {
203 bool (*dma_filter)(struct dma_chan *chan, void *filter_param); 203 bool (*dma_filter)(struct dma_chan *chan, void *filter_param);
204 void *dma_rx_param; 204 void *dma_rx_param;
205 void *dma_tx_param; 205 void *dma_tx_param;
206 bool dma_rx_poll_enable;
206 unsigned int dma_rx_poll_rate; 207 unsigned int dma_rx_poll_rate;
207 unsigned int dma_rx_poll_timeout; 208 unsigned int dma_rx_poll_timeout;
208 void (*init) (void); 209 void (*init) (void);