aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorAkhil R <[email protected]>2024-03-15 18:14:11 +0530
committerVinod Koul <[email protected]>2024-03-28 12:31:42 +0530
commit30f0ced9971b2d8c8c24ae75786f9079489a012d (patch)
treed184f6052fdde008d985acd3f226bcfa9152acca /tools/testing/selftests/bpf/progs/test_autoload.c
parent43c633ef93a5d293c96ebcedb40130df13128428 (diff)
dmaengine: tegra186: Fix residual calculation
The existing residual calculation returns an incorrect value when bytes_xfer == bytes_req. This scenario occurs particularly with drivers like UART where DMA is scheduled for maximum number of bytes and is terminated when the bytes inflow stops. At higher baud rates, it could request the tx_status while there is no bytes left to transfer. This will lead to incorrect residual being set. Hence return residual as '0' when bytes transferred equals to the bytes requested. Fixes: ee17028009d4 ("dmaengine: tegra: Add tegra gpcdma driver") Signed-off-by: Akhil R <[email protected]> Reviewed-by: Jon Hunter <[email protected]> Acked-by: Thierry Reding <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions