i2c: qup: : use proper DMAENGINE API for termination
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 23 Jun 2021 09:59:38 +0000 (11:59 +0200)
committerWolfram Sang <wsa@kernel.org>
Wed, 11 Aug 2021 13:19:00 +0000 (15:19 +0200)
dmaengine_terminate_all() is deprecated in favor of explicitly saying if
it should be sync or async. Here, we want dmaengine_terminate_sync()
because there is no other synchronization code in the driver to handle
an async case.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-qup.c

index 61dc20fd1191b42b0cdcb61d399f1dfcc7e1010e..fcd35e8de83c9d4365a9fc2b9be48c4e7f4da31a 100644 (file)
@@ -778,7 +778,7 @@ static int qup_i2c_bam_schedule_desc(struct qup_i2c_dev *qup)
                        ret = -EINVAL;
 
                        /* abort TX descriptors */
-                       dmaengine_terminate_all(qup->btx.dma);
+                       dmaengine_terminate_sync(qup->btx.dma);
                        goto desc_err;
                }