Skip to contentSkip to conversation

net: ethernet: micrel: ks8842: use dmaengine_submit() instead of ->tx_submit()

PATCH Applied [email protected] 4 participants 5 messages Oct 2 – Oct 16

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: ethernet: micrel: ks8842: use dmaengine_submit() instead of ->tx_submit()

From: Frank Li <[email protected]>

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

Assisted-by LLM
---
 drivers/net/ethernet/micrel/ks8842.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/micrel/ks8842.c +2 -2
index b7cf2ee9115fd..f0d6bfc6025ca 100644
@@ -455,7 +455,7 @@ static int ks8842_tx_frame_dma(struct sk_buff *skb, struct net_device *netdev)
 
 	ctl->adesc->callback_param = netdev;
 	ctl->adesc->callback = ks8842_dma_tx_cb;
-	ctl->adesc->tx_submit(ctl->adesc);
+	dmaengine_submit(ctl->adesc);
 
 	netdev->stats.tx_bytes += skb->len;
 
@@ -569,7 +569,7 @@ static int __ks8842_start_new_rx_dma(struct net_device *netdev)
 
 		ctl->adesc->callback_param = netdev;
 		ctl->adesc->callback = ks8842_dma_rx_cb;
-		ctl->adesc->tx_submit(ctl->adesc);
+		dmaengine_submit(ctl->adesc);
 	} else {
 		err = -ENOMEM;
 		sg_dma_address(sg) = 0;
Signature · 1 line
2.43.0
reviewer
#1 lore raw
Quoted 7 lines · On Fri, Oct 02, 2026 at 03:30:19PM -0400, [email protected] wrote:

From: Frank Li <[email protected]>

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

Assisted-by LLM

Hi Frank,

Is there a back-story to this change?
Is it part of something larger?

In face value it looks like a cleanup to an unmaintained driver. And if so, I'm not sure it's worth the churn.

#2 lore raw
Quoted 6 lines · Simon Horman
Quoted 5 lines · On Fri, Oct 02, 2026 at 03:30:19PM -0400, [email protected] wrote:

From: Frank Li <[email protected]>

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

Quoted 7 lines
Quoted 2 lines
Assisted-by LLM

Hi Frank,

Is there a back-story to this change?
Is it part of something larger?

Yep, Frank has been fixing direct calls with wrappers with aim to eventually start moving dmaengine guts internal and have a good consumer/provider split of the engine and objects

Quoted 2 lines

In face value it looks like a cleanup to an unmaintained driver. And if so, I'm not sure it's worth the churn.

Signature · 1 line
~Vinod
reviewer Reviewed-by
#3 lore raw
Quoted 10 lines · Vinod Koul
Quoted 9 lines · Simon Horman
Quoted 7 lines · On Fri, Oct 02, 2026 at 03:30:19PM -0400, [email protected] wrote:

From: Frank Li <[email protected]>

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

Assisted-by LLM
Quoted 8 lines
Quoted 4 lines

Hi Frank,

Is there a back-story to this change?
Is it part of something larger?

Yep, Frank has been fixing direct calls with wrappers with aim to eventually start moving dmaengine guts internal and have a good consumer/provider split of the engine and objects

Thanks,

In that case all looks good to me.

Quoted 3 lines
Quoted 3 lines

In face value it looks like a cleanup to an unmaintained driver. And if so, I'm not sure it's worth the churn.

#4 lore raw
In reply to [email protected]
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 9 lines · On Fri, 2 Oct 2026 15:30:19 -0400 you wrote:

From: Frank Li <[email protected]>

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

Assisted-by LLM

[...]

Here is the summary with links:
- [1/1] net: ethernet: micrel: ks8842: use dmaengine_submit() instead of ->tx_submit()

    https://git.kernel.org/netdev/net-next/c/9b6fb15a5cc6

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html