aboutsummaryrefslogtreecommitdiff
path: root/drivers/i2c/busses/i2c-sh_mobile.c
diff options
context:
space:
mode:
authorWolfram Sang2021-12-08 09:45:42 +0100
committerWolfram Sang2021-12-16 22:22:56 +0100
commita5f7cf953f2b47e5025a7acd1698eea997b2fd94 (patch)
treeea3c04265ebda30cab1a93378c4f780586537745 /drivers/i2c/busses/i2c-sh_mobile.c
parentac18935d2e5130744b9675f6fb72acb783f86d77 (diff)
i2c: rcar: update to new DMAENGINE API when terminating
dmaengine_terminate_all() is deprecated. When converting the existing calls, it turned out that the termination in the interrupt handlers was superfluous and only a side effect of simply calling rcar_i2c_cleanup_dma(). As either no DMA transfers have been submitted yet or the last one has successfully completed, there is nothing to terminate and we can leave it out. So, merge the DMA unmap and cleanup function to save some code. Then, add a flag if the new cleanup function needs to terminate DMA. This is only the case for the erorr handling in the main thread, so we can finally switch from dmaengine_terminate_all() to dmaengine_terminate_sync() here. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c/busses/i2c-sh_mobile.c')
0 files changed, 0 insertions, 0 deletions