net: macb: Disable clocks once
authorNeil Mandir <neil.mandir@seco.com>
Tue, 26 Aug 2025 14:30:22 +0000 (10:30 -0400)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 28 Aug 2025 08:12:21 +0000 (10:12 +0200)
commitdac978e51cce0c1f00a14c4a82f81d387f79b2d4
treeaf2456b89b87a8761e093a58802800d82151e3d5
parentbd2902e0bcac8e4daf9cf630517cda4448665667
net: macb: Disable clocks once

When the driver is removed the clocks are disabled twice: once in
macb_remove and a second time by runtime pm. Disable wakeup in remove so
all the clocks are disabled and skip the second call to macb_clks_disable.
Always suspend the device as we always set it active in probe.

Fixes: d54f89af6cc4 ("net: macb: Add pm runtime support")
Signed-off-by: Neil Mandir <neil.mandir@seco.com>
Co-developed-by: Sean Anderson <sean.anderson@linux.dev>
Signed-off-by: Sean Anderson <sean.anderson@linux.dev>
Link: https://patch.msgid.link/20250826143022.935521-1-sean.anderson@linux.dev
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/cadence/macb_main.c