tg3: convert EEE handling to use linkmode bitmaps
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 3 Feb 2024 21:12:50 +0000 (22:12 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 7 Feb 2024 02:59:58 +0000 (18:59 -0800)
commit9bc791341bc9a5c22b94889aa37993bb69faa317
tree5f55f77e36137c3c6cfef11c08908a6a991fa23c
parent5f9892286331caf7c1b258b58816cdc87a9f2387
tg3: convert EEE handling to use linkmode bitmaps

Convert EEE handling to use linkmode bitmaps. This prepares for
removing the legacy bitmaps from struct ethtool_keee.
No functional change intended.

Note: The change to mii_eee_cap1_mod_linkmode_t(tp->eee.advertised, val)
in tg3_phy_autoneg_cfg() isn't completely obvious, but it doesn't change
the current functionality.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/0652b910-6bcc-421f-8769-38f7dae5037e@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/tg3.c