Commit a5f7cf9
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>1 parent ac18935 commit a5f7cf9
1 file changed
Lines changed: 9 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
370 | | - | |
| 370 | + | |
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
375 | 379 | | |
376 | 380 | | |
377 | 381 | | |
| |||
386 | 390 | | |
387 | 391 | | |
388 | 392 | | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | 393 | | |
402 | 394 | | |
403 | 395 | | |
404 | 396 | | |
405 | 397 | | |
406 | 398 | | |
407 | | - | |
| 399 | + | |
408 | 400 | | |
409 | 401 | | |
410 | 402 | | |
| |||
456 | 448 | | |
457 | 449 | | |
458 | 450 | | |
459 | | - | |
| 451 | + | |
460 | 452 | | |
461 | 453 | | |
462 | 454 | | |
| |||
466 | 458 | | |
467 | 459 | | |
468 | 460 | | |
469 | | - | |
| 461 | + | |
470 | 462 | | |
471 | 463 | | |
472 | 464 | | |
| |||
846 | 838 | | |
847 | 839 | | |
848 | 840 | | |
849 | | - | |
| 841 | + | |
850 | 842 | | |
851 | 843 | | |
852 | 844 | | |
| |||
0 commit comments