]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MLK-9893 tty: serial: imx: sync the completed and cur index
authorFugang Duan <b38611@freescale.com>
Thu, 20 Nov 2014 09:50:41 +0000 (17:50 +0800)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:18:37 +0000 (21:18 -0600)
commit799fa8a0cc5e0fa7cd3c38d7a0210bc1e5586a33
treec2b8e5d1d627229e5fd8bc2c27ac61901a153245
parent11adb8522a65165d2fe551851f9f403f06639ad5
MLK-9893 tty: serial: imx: sync the completed and cur index

The current logic has one potential issue cause data buffer lost in
busy system. When sdma copy data buffer count is zero, completed index
also increase, which cause data buffer lost. The patch fix the issue.

(cherry-picked from commit: f7b01c9263ea73b9150e8a7fa48812c1d47d0493)

Signed-off-by: Fugang Duan <B38611@freescale.com>
drivers/tty/serial/imx.c