]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: stmmac: rk: convert to suspend()/resume() methods
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Mon, 11 Aug 2025 18:51:14 +0000 (19:51 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 13 Aug 2025 01:04:54 +0000 (18:04 -0700)
commitd7a276a5768ffe4f3dbcb0a2d9d037f117b53784
treeb5eab7833d8e07bb2ba0ab45c717cfc56e1ef202
parentc91918a1e9767fc40488f69436f61af90221615b
net: stmmac: rk: convert to suspend()/resume() methods

Convert rk to use the new suspend() and resume() methods rather than
implementing these in custom wrappers around the main driver's
suspend/resume methods. This allows this driver to use the simmac
simple PM ops structure.

We can further simplify the driver as there is no need to track whether
the device was suspended, we only need to check whether the device is
wakeup capable in the resume method. This is because the resume method
will only be called after the suspend method.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1ulXc2-008grB-9k@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c