diff options
author | Graf Yang <graf.yang@analog.com> | 2009-06-11 08:42:17 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-11 11:51:04 -0400 |
commit | f9d36da9cdc2504cd9bb6034cfaba0673ce2d6df (patch) | |
tree | 36789122ce363636792d90b809b3bdff20e39876 /drivers/serial/bfin_5xx.c | |
parent | 7de7c55bf54dede2bd2262349fc7b558bcc8e413 (diff) |
Blackfin Serial Driver: fix missing new lines when under load
Add a SSYNC() into bfin_serial_dma_tx_chars() to ensure DMA registers are
written with new data otherwise we might miss a byte or two when the
system is under load. PIO mode is OK though.
Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/serial/bfin_5xx.c')
-rw-r--r-- | drivers/serial/bfin_5xx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/serial/bfin_5xx.c b/drivers/serial/bfin_5xx.c index dfae22d47bf7..676efdad3712 100644 --- a/drivers/serial/bfin_5xx.c +++ b/drivers/serial/bfin_5xx.c | |||
@@ -415,6 +415,7 @@ static void bfin_serial_dma_tx_chars(struct bfin_serial_port *uart) | |||
415 | set_dma_start_addr(uart->tx_dma_channel, (unsigned long)(xmit->buf+xmit->tail)); | 415 | set_dma_start_addr(uart->tx_dma_channel, (unsigned long)(xmit->buf+xmit->tail)); |
416 | set_dma_x_count(uart->tx_dma_channel, uart->tx_count); | 416 | set_dma_x_count(uart->tx_dma_channel, uart->tx_count); |
417 | set_dma_x_modify(uart->tx_dma_channel, 1); | 417 | set_dma_x_modify(uart->tx_dma_channel, 1); |
418 | SSYNC(); | ||
418 | enable_dma(uart->tx_dma_channel); | 419 | enable_dma(uart->tx_dma_channel); |
419 | 420 | ||
420 | UART_SET_IER(uart, ETBEI); | 421 | UART_SET_IER(uart, ETBEI); |