[PATCH 2/3] net: stmmac: restore pinctrl when driver remove.
Christophe Roullier
christophe.roullier at foss.st.com
Wed Feb 18 00:36:17 PST 2026
when system suspend or unbind, need to set pins
to low power state to save IO power consumption.
Signed-off-by: Christophe Roullier <christophe.roullier at foss.st.com>
---
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
index 067b17f03cd09..3d4f0e4cb53fb 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
@@ -8071,6 +8071,9 @@ void stmmac_dvr_remove(struct device *dev)
mutex_destroy(&priv->lock);
bitmap_free(priv->af_xdp_zc_qps);
+ /* Select sleep pin state */
+ pinctrl_pm_select_sleep_state(dev);
+
pm_runtime_disable(dev);
pm_runtime_put_noidle(dev);
--
2.43.0
More information about the linux-arm-kernel
mailing list