diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2010-08-06 06:45:44 +0530 |
---|---|---|
committer | Gary King <gking@nvidia.com> | 2010-08-06 14:10:01 -0700 |
commit | 1d37d0aa2e3dc546736430479053cf12c59011e7 (patch) | |
tree | 137abdfacc373e1e0f143d01645e11fdceb3f4fd /crypto/anubis.c | |
parent | 785fb21c5b0de6cfa4cc9bb40e6a8717d6fffa07 (diff) |
[arm/tegrar]serial:Make sure dma status updated before dma stop.tegra-10.8.1
Sometimes, when uart ask for the dma for get the number of bytes
transferred by dma, the dma does not return the actual number of
bytes transffred, it returns the less number of byes (less by
burst size) and so uart driver client gets the data loss in
communication.
So to avoid the race condition, the driver stops the incoming data
by making RTS line to inactive and wait for some time to complete
the dma burst and then ask dma to get number of bytes transffred
by dma from fifo to memory.
Change-Id: I08de955fde77431115626bd884b68c8e42d52270
Reviewed-on: http://git-master/r/4832
Reviewed-by: Anantha Idapalapati <aidapalapati@nvidia.com>
Tested-by: Anantha Idapalapati <aidapalapati@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Gary King <gking@nvidia.com>
Diffstat (limited to 'crypto/anubis.c')
0 files changed, 0 insertions, 0 deletions