[PATCH 3/8] serial: tegra: check the count and read if any from dma

2015-05-05 Thread Jon Hunter
From: Shardar Shariff Md It is only necessary to read data from the dma buffer when the count value is non-zero and hence, tegra_uart_copy_rx_to_tty() so only be called when this is the case. Although, this was being tested for in two places, there is a third place where this was not tested.

[PATCH 3/8] serial: tegra: check the count and read if any from dma

2015-05-05 Thread Jon Hunter
From: Shardar Shariff Md smoham...@nvidia.com It is only necessary to read data from the dma buffer when the count value is non-zero and hence, tegra_uart_copy_rx_to_tty() so only be called when this is the case. Although, this was being tested for in two places, there is a third place where