Linux USB
 help / color / mirror / Atom feed
* [PATCH 1/1] usb: musb: use dmaengine_submit() instead of ->tx_submit()
@ 2026-10-02 19:28 Frank.Li
  0 siblings, 0 replies; only message in thread
From: Frank.Li @ 2026-10-02 19:28 UTC (permalink / raw)
  To: Bin Liu, Greg Kroah-Hartman,
	open list:MUSB MULTIPOINT HIGH SPEED DUAL-ROLE CONTROLLER,
	open list
  Cc: vkoul, imx, Frank Li

From: Frank Li <Frank.Li@nxp.com>

Replace direct dma_async_tx_descriptor->tx_submit() calls with the
proper dmaengine_submit() API wrapper in musb_cppi41 and ux500_dma.

Assisted-by: LLM
Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
 drivers/usb/musb/musb_cppi41.c | 4 ++--
 drivers/usb/musb/ux500_dma.c   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/usb/musb/musb_cppi41.c b/drivers/usb/musb/musb_cppi41.c
index 28e958fcc862c..37a009a4bd500 100644
--- a/drivers/usb/musb/musb_cppi41.c
+++ b/drivers/usb/musb/musb_cppi41.c
@@ -169,7 +169,7 @@ static void cppi41_trans_done(struct cppi41_dma_channel *cppi41_channel)
 
 		dma_desc->callback_result = cppi41_dma_callback;
 		dma_desc->callback_param = &cppi41_channel->channel;
-		cppi41_channel->cookie = dma_desc->tx_submit(dma_desc);
+		cppi41_channel->cookie = dmaengine_submit(dma_desc);
 		trace_musb_cppi41_cont(cppi41_channel);
 		dma_async_issue_pending(dc);
 
@@ -469,7 +469,7 @@ static bool cppi41_configure_channel(struct dma_channel *channel,
 
 	dma_desc->callback_result = cppi41_dma_callback;
 	dma_desc->callback_param = channel;
-	cppi41_channel->cookie = dma_desc->tx_submit(dma_desc);
+	cppi41_channel->cookie = dmaengine_submit(dma_desc);
 	cppi41_channel->channel.rx_packet_done = false;
 
 	trace_musb_cppi41_config(cppi41_channel);
diff --git a/drivers/usb/musb/ux500_dma.c b/drivers/usb/musb/ux500_dma.c
index bbb4978c0cd5f..7b62527ea3f74 100644
--- a/drivers/usb/musb/ux500_dma.c
+++ b/drivers/usb/musb/ux500_dma.c
@@ -118,7 +118,7 @@ static bool ux500_configure_channel(struct dma_channel *channel,
 
 	dma_desc->callback = ux500_dma_callback;
 	dma_desc->callback_param = channel;
-	ux500_channel->cookie = dma_desc->tx_submit(dma_desc);
+	ux500_channel->cookie = dmaengine_submit(dma_desc);
 
 	dma_async_issue_pending(dma_chan);
 
-- 
2.43.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-02 19:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-02 19:28 [PATCH 1/1] usb: musb: use dmaengine_submit() instead of ->tx_submit() Frank.Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox