summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorRaju Rangoju <Raju.Rangoju@amd.com>2026-03-08 12:28:50 +0300
committerJakub Kicinski <kuba@kernel.org>2026-03-11 05:51:22 +0300
commitfe81629217e09ed8772e63a4c9cb0d864d849174 (patch)
treeca8639826a86bf4bc2cc00e64fa3140c2463b7aa /include/linux
parent34bd3c6b0bd383a76d987c8c45c4f309b681b255 (diff)
downloadlinux-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')
0 files changed, 0 insertions, 0 deletions