git: 68d7d3a6c44a - stable/15 - axgbe: Wire iflib power management methods

From: Kevin Bowling <kbowling_at_FreeBSD.org>
Date: Fri, 18 Sep 2026 00:10:01 UTC
The branch stable/15 has been updated by kbowling:

URL: https://cgit.FreeBSD.org/src/commit/?id=68d7d3a6c44a333f88f83c96746c390970ecd702

commit 68d7d3a6c44a333f88f83c96746c390970ecd702
Author:     Kevin Bowling <kbowling@FreeBSD.org>
AuthorDate: 2026-09-03 03:32:14 +0000
Commit:     Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2026-09-18 00:09:53 +0000

    axgbe: Wire iflib power management methods
    
    Register the standard iflib device methods for shutdown, suspend, and
    resume.  This gives axgbe the framework managed reinitialization used by
    other iflib drivers after a power transition.
    
    Sponsored by:   BBOX.io
    
    (cherry picked from commit 2397b18ceb5d69d4d4e3bd0b3ca07dcd077bf843)
---
 sys/dev/axgbe/if_axgbe_pci.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys/dev/axgbe/if_axgbe_pci.c b/sys/dev/axgbe/if_axgbe_pci.c
index cb119a68cfe2..51db5ce54df7 100644
--- a/sys/dev/axgbe/if_axgbe_pci.c
+++ b/sys/dev/axgbe/if_axgbe_pci.c
@@ -187,6 +187,9 @@ static device_method_t ax_methods[] = {
 	DEVMETHOD(device_probe, iflib_device_probe),
 	DEVMETHOD(device_attach, iflib_device_attach),
 	DEVMETHOD(device_detach, iflib_device_detach),
+	DEVMETHOD(device_shutdown, iflib_device_shutdown),
+	DEVMETHOD(device_suspend, iflib_device_suspend),
+	DEVMETHOD(device_resume, iflib_device_resume),
 
 	/* MII interface */
 	DEVMETHOD(miibus_readreg, axgbe_miibus_readreg),