serial: tegra: update tx_circular buffer only when TX_DMA is in progress
authorPradeep Goudagunta <pgoudagunta@nvidia.com>
Fri, 6 Jun 2014 11:18:08 +0000 (16:48 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jul 2014 22:53:20 +0000 (15:53 -0700)
commit5e3dbfca3b14a4a2950255c1628cd53b384d963e
tree179c7922d6132716bbf39ed758c3321b2bcb6264
parent080029b149258b9ccb05f26ee5f5d18e359bce2d
serial: tegra: update tx_circular buffer only when TX_DMA is in progress

When channel is require to stop transmit then update the Tx circular
buffer only when DMA based transfer is in progress. If there is no
DMA based transfer then no need to update the Tx buffer.

Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial-tegra.c