Skip to contentSkip to conversation

net: ethernet: ravb: Do not check URAM suspension when WoL is active

PATCH Applied Niklas Söderlund 3 participants 3 messages May 10 – May 13

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

PATCH v2 1/1 net: ethernet: ravb: Do not check URAM suspension when WoL is active

When updating the driver to match latest datasheet to suspend access to URAM when suspending DMA transfers a corner-case was missed, URAM access will not be suspended if WoL is enabled. This lead to the error message (correctly) being triggered as URAM access is not suspended even tho it's requested as part of stopping DMA.

Avoid checking if URAM access is suspended and printing the error message if WoL is enabled when we suspend the system, as we know it will not be.

---
 drivers/net/ethernet/renesas/ravb_main.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
drivers/net/ethernet/renesas/ravb_main.c +6 -3
index 1dbfadb2a881..5f88733094d0 100644
@@ -1108,9 +1108,12 @@ static int ravb_stop_dma(struct net_device *ndev)
 
 	/* Request for transmission suspension */
 	ravb_modify(ndev, CCC, CCC_DTSR, CCC_DTSR);
-	error = ravb_wait(ndev, CSR, CSR_DTS, CSR_DTS);
-	if (error)
-		netdev_err(ndev, "failed to stop AXI BUS\n");
+	/* Access to URAM will not be suspended if WoL is enabled. */
+	if (!priv->wol_enabled) {
+		error = ravb_wait(ndev, CSR, CSR_DTS, CSR_DTS);
+		if (error)
+			netdev_err(ndev, "failed to stop AXI BUS\n");
+	}
 
 	/* Stop AVB-DMAC process */
 	return ravb_set_opmode(ndev, CCC_OPC_CONFIG);
Signature · 1 line
2.54.0
#1 lore raw

Hi Niklas,

Quoted 10 lines · Niklas Söderlund

When updating the driver to match latest datasheet to suspend access to URAM when suspending DMA transfers a corner-case was missed, URAM access will not be suspended if WoL is enabled. This lead to the error message (correctly) being triggered as URAM access is not suspended even tho it's requested as part of stopping DMA.

Avoid checking if URAM access is suspended and printing the error message if WoL is enabled when we suspend the system, as we know it will not be.

Quoted 6 lines

Thanks for the update!

I wondered what changed...

v2:
- Add Reviewed-by, Tested-by.

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
#2 lore raw
In reply to Niklas Söderlund
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:

Hello:

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

Quoted 11 lines · On Sun, 10 May 2026 12:30:17 +0200 you wrote:

When updating the driver to match latest datasheet to suspend access to URAM when suspending DMA transfers a corner-case was missed, URAM access will not be suspended if WoL is enabled. This lead to the error message (correctly) being triggered as URAM access is not suspended even tho it's requested as part of stopping DMA.

Avoid checking if URAM access is suspended and printing the error message if WoL is enabled when we suspend the system, as we know it will not be.

[...]

Here is the summary with links:
- [next-next,v2] net: ethernet: ravb: Do not check URAM suspension when WoL is active

    https://git.kernel.org/netdev/net/c/f5b2772d1488

You are awesome, thank you!

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