Commit 0425b937 authored by Wolfram Sang's avatar Wolfram Sang Committed by Wolfram Sang

i2c: qup: : use proper DMAENGINE API for termination

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: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent 101703ca
...@@ -778,7 +778,7 @@ static int qup_i2c_bam_schedule_desc(struct qup_i2c_dev *qup) ...@@ -778,7 +778,7 @@ static int qup_i2c_bam_schedule_desc(struct qup_i2c_dev *qup)
ret = -EINVAL; ret = -EINVAL;
/* abort TX descriptors */ /* abort TX descriptors */
dmaengine_terminate_all(qup->btx.dma); dmaengine_terminate_sync(qup->btx.dma);
goto desc_err; goto desc_err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment