diff options
| author | Raju Rangoju <Raju.Rangoju@amd.com> | 2026-03-08 12:28:50 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-03-11 05:51:22 +0300 |
| commit | fe81629217e09ed8772e63a4c9cb0d864d849174 (patch) | |
| tree | ca8639826a86bf4bc2cc00e64fa3140c2463b7aa /include/linux/debugobjects.h | |
| parent | 34bd3c6b0bd383a76d987c8c45c4f309b681b255 (diff) | |
| download | linux-fe81629217e09ed8772e63a4c9cb0d864d849174.tar.xz | |
amd-xgbe: Simplify powerdown/powerup paths
The caller parameter in xgbe_powerdown() and xgbe_powerup() was intended
to differentiate between driver and ioctl contexts, but the only
remaining usage is from the driver suspend/resume path.
Simplify this by:
- Removing the unused XGMAC_DRIVER_CONTEXT and XGMAC_IOCTL_CONTEXT
macros
- Dropping the now-unused caller parameter
- Reordering operations in xgbe_powerdown() to disable NAPI before
stopping TX/RX, matching the order used in xgbe_stop()
This makes the powerdown/powerup paths easier to follow and keeps the
ordering consistent with the rest of the driver.
Signed-off-by: Raju Rangoju <Raju.Rangoju@amd.com>
Link: https://patch.msgid.link/20260308092851.1510214-2-Raju.Rangoju@amd.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
