From c9052a874fdfda675fc5d077662c8ef2b5665e07 Mon Sep 17 00:00:00 2001 From: andersm Date: Thu, 21 Oct 2021 03:11:18 -0400 Subject: [PATCH] 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 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2614263 Reviewed-by: svcacv Reviewed-by: svc_kernel_abi Reviewed-by: Bharat Nihalani Reviewed-by: mobile promotions Tested-by: mobile promotions GVS: Gerrit_Virtual_Submit --- drivers/misc/mods/mods_dma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/mods/mods_dma.c b/drivers/misc/mods/mods_dma.c index c0b12490..b63b1664 100644 --- a/drivers/misc/mods/mods_dma.c +++ b/drivers/misc/mods/mods_dma.c @@ -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); } }