]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
usb: renesas_usbhs: use proper DMAENGINE API for termination
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 3 Jun 2025 17:58:54 +0000 (19:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2025 10:26:30 +0000 (12:26 +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>
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>
drivers/usb/renesas_usbhs/fifo.c

index 10607e2738791396bb33bb8623f1b70fc3c80ddb..bac6f8fd0055e4b486182613dcabca08417616e6 100644 (file)
@@ -123,7 +123,7 @@ struct usbhs_pkt *usbhs_pkt_pop(struct usbhs_pipe *pipe, struct usbhs_pkt *pkt)
                if (fifo)
                        chan = usbhsf_dma_chan_get(fifo, pkt);
                if (chan) {
-                       dmaengine_terminate_all(chan);
+                       dmaengine_terminate_sync(chan);
                        usbhsf_dma_unmap(pkt);
                } else {
                        if (usbhs_pipe_is_dir_in(pipe))