]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: stmmac: ingenic: convert to stmmac_pltfr_pm_ops
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Mon, 14 Apr 2025 15:51:01 +0000 (16:51 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Apr 2025 15:36:54 +0000 (08:36 -0700)
commitdebfcb3f58488e1ee8177a03bf9338ede936158f
tree5d8578441e439c018f6696c92c4e99575d63eadc
parentb2ee4451c1d42a736a94ee582c67c0ccdc05f715
net: stmmac: ingenic: convert to stmmac_pltfr_pm_ops

Convert the Ingenic glue driver to use the generic stmmac platform
power management operations.

In order to do this, we need to make ingenic_mac_init() arguments
compatible with plat_dat->init() by adding a plat_dat member to struct
ingenic_mac. This allows the custom suspend/resume operations to be
removed, and the PM ops pointer replaced with stmmac_pltfr_pm_ops.

This will adds runtime PM and noirq suspend/resume ops to this driver.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/E1u4M5N-000YGD-5i@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c