Kartik 109a951a9f serial: tegra: Read DMA status before terminating
Read the DMA status before terminating the DMA, as doing so deletes
the DMA desc.

Also, to get the correct transfer status information, pause the DMA
using dmaengine_pause() before reading the DMA status.

Fixes: e9ea096dd225 ("serial: tegra: add serial driver")
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Akhil R <akhilrajeev@nvidia.com>
Signed-off-by: Kartik <kkartik@nvidia.com>
Link: https://lore.kernel.org/r/1666105086-17326-1-git-send-email-kkartik@nvidia.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-11-03 03:43:03 +01:00
..
2022-11-03 03:35:40 +01:00
2022-11-03 03:35:41 +01:00
2021-07-27 12:17:21 +02:00
2022-06-27 14:37:09 +02:00
2022-07-16 08:16:01 +02:00
2022-11-03 03:32:40 +01:00
2022-11-03 03:32:40 +01:00
2022-11-03 03:32:40 +01:00
2022-11-03 03:32:40 +01:00
2022-11-03 03:35:42 +01:00
2022-11-03 03:35:43 +01:00
2022-11-03 03:35:43 +01:00