Shardar Shariff Md db8e78474e serial: tegra: check the count and read if any from dma
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. However, instead of adding another
if-statement prior to calling tegra_uart_copy_rx_to_tty(), move the test
inside the function.

Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
[jonathanh@nvidia.com: Re-worked patch to move the check for the count
 value inside the function tegra_uart_copy_rx_to_tty(). Updated
 changelog with more commentary.]
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-05-10 19:12:18 +02:00
..
2015-03-26 23:00:36 +01:00
2015-03-26 22:49:10 +01:00
2015-04-07 11:07:20 +02:00
2015-05-10 19:08:16 +02:00
2014-12-14 16:10:09 -08:00
2015-03-26 22:49:10 +01:00
2015-03-26 22:49:10 +01:00
2014-12-14 16:10:09 -08:00
2015-03-09 07:08:37 +01:00
2015-03-26 22:49:10 +01:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2015-03-26 22:49:10 +01:00