Thread (4 messages) flat view 4 messages, 4 authors, 2026-08-18

RE: [PATCH] net: renesas: rswitch-main: fix runtime PM cleanup

From: Michael Dege <hidden>
Date: 2026-08-18 13:02:00
Also in: linux-renesas-soc, lkml

Hi Jiawen,

Thank you for your patch.
-----Original Message-----
From: Jiawen Liu <redacted>
Sent: Tuesday, August 18, 2026 2:42 PM
To: Andrew Lunn <andrew+netdev@lunn.ch>; David S. Miller <davem@davemloft.net>; Eric Dumazet
[off-list ref]; Jakub Kicinski [off-list ref]; Paolo Abeni [off-list ref];
netdev@vger.kernel.org; linux-renesas-soc@vger.kernel.org; linux-kernel@vger.kernel.org
Cc: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>; jiawen <redacted>
Subject: [PATCH] net: renesas: rswitch-main: fix runtime PM cleanup

[You don't often get email from 1298662399@qq.com. Learn why this is important at
https://aka.ms/LearnAboutSenderIdentification ]

From: jiawen <redacted>

Update renesas_eth_sw_probe() for the confirmed driver lifecycle defect.

Keep the change limited to the concrete operation shown in the final patch.

Signed-off-by: jiawen <redacted>
Reviewed-by: Michael Dege <Michael.dege@renesas.com >
quoted hunk ↗ jump to hunk
---
diff --git a/drivers/net/ethernet/renesas/rswitch_main.c b/drivers/net/ethernet/renesas/rswitch_main.c
--- a/drivers/net/ethernet/renesas/rswitch_main.c
+++ b/drivers/net/ethernet/renesas/rswitch_main.c
@@ -2123,6 +2123,8 @@
        { /* Sentinel */ }
 };

+static void rswitch_deinit(struct rswitch_private *priv);
+
 static int renesas_eth_sw_probe(struct platform_device *pdev)  {
        const struct soc_device_attribute *attr; @@ -2194,6 +2196,9 @@
        ret = rswitch_register_notifiers();
        if (ret) {
                dev_err(&pdev->dev, "could not register notifiers\n");
+               rswitch_deinit(priv);
+               pm_runtime_put(&pdev->dev);
+               pm_runtime_disable(&pdev->dev);
                return ret;
        }
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help