]> git.karo-electronics.de Git - linux-beck.git/commit
serial: tegra: ack the rx dma desc after transfer terminated
authorPradeep Goudagunta <pgoudagunta@nvidia.com>
Fri, 6 Jun 2014 11:18:09 +0000 (16:48 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jul 2014 22:53:20 +0000 (15:53 -0700)
commitb31245b9420731cc62bb1eea0a2240b3e90a2e78
tree199b9ed722f37fb0331f9658d0402f0bca07b44f
parent5e3dbfca3b14a4a2950255c1628cd53b384d963e
serial: tegra: ack the rx dma desc after transfer terminated

The Rx dma descriptor allocated without the DMA_ACK flags so that
once after tarnsfer done or terminated, client can ack the descriptor
to free it for later use.

If the Rx DMA is terminated for some reason then rx-dma descriptor
is not getting acked which causes the memory leak and list of usage
desc to grow continuously.

Hence, acknowledge the rx-dma descriptor once transfer is terminated
to avoid memory leak and desc list to grow.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial-tegra.c