misc: mods: dmaengine terminate API update

- dmaengine_terminate_all API is deprecated and
- use dmaengine_terminate_sync instead

Bug 3403616

Change-Id: I87d3edfae1ea8f02ad3c78c1d862ce8bea8dab67
Signed-off-by: Anders Ma <andersm@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2614263
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
andersm
2021-10-21 03:11:18 -04:00
committed by Laxman Dewangan
parent 2ce330f11a
commit c9052a874f

View File

@@ -2,7 +2,7 @@
/*
* mods_dma.c - This file is part of NVIDIA MODS kernel driver.
*
* Copyright (c) 2017-2020, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2017-2021, NVIDIA CORPORATION. All rights reserved.
*
* NVIDIA MODS kernel driver is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License,
@@ -104,7 +104,7 @@ void mods_release_channel(u32 id)
/* do not call this when hold spin lock */
if (pch) {
dmaengine_terminate_all(pch);
dmaengine_terminate_sync(pch);
dma_release_channel(pch);
}
}