hsu: workaround premature TX DMA irq
authorAlek Du <alek.du@intel.com>
Tue, 22 May 2012 10:32:50 +0000 (10:32 +0000)
committerbuildbot <buildbot@intel.com>
Wed, 23 May 2012 17:38:33 +0000 (10:38 -0700)
commit4cb6bb7b93622cb61aa656280bf275917c4d7dad
tree12abf6569b20b7fc2a11b7a53f8b1e9a8805f320
parenta9b42d8e5c2a39d4a1e3a013fb02a87e4b5bd093
hsu: workaround premature TX DMA irq

BZ: 25843

When CTS assert, HSU TX DMA will stop and report TX DMA irq, which is a
violation against the HSU spec.

Workaround this by reading D0SAR and count the real chars sent -- don't
assume all TX chars are sent.

Change-Id: Ic43f40e1d2437d6e33f8d53b84d116168f921a45
Signed-off-by: Alek Du <alek.du@intel.com>
Reviewed-on: http://android.intel.com:8080/49696
Reviewed-by: Yang, Bin <bin.yang@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/tty/serial/mfd.c