Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: renesas_usbhs: 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: Wolfram Sang <wsa+renesas@sang-engineering.com>
Cc: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/20250603180131.14579-4-wsa+renesas@sang-engineering.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Wolfram Sang and committed by
Greg Kroah-Hartman
b26fa800 1c2d81bd

+1 -1
+1 -1
drivers/usb/renesas_usbhs/fifo.c
··· 123 123 if (fifo) 124 124 chan = usbhsf_dma_chan_get(fifo, pkt); 125 125 if (chan) { 126 - dmaengine_terminate_all(chan); 126 + dmaengine_terminate_sync(chan); 127 127 usbhsf_dma_unmap(pkt); 128 128 } else { 129 129 if (usbhs_pipe_is_dir_in(pipe))