From: Vladimir Oltean Date: Thu, 21 Aug 2025 15:20:14 +0000 (+0300) Subject: net: phy: aquantia: remove handling for get_rate_matching(PHY_INTERFACE_MODE_NA) X-Git-Tag: v6.18-rc1~132^2~353^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6fa022088b60338cf995c9238fe16bcea5c27484;p=thirdparty%2Fkernel%2Fstable.git net: phy: aquantia: remove handling for get_rate_matching(PHY_INTERFACE_MODE_NA) After commit 7642cc28fd37 ("net: phylink: fix PHY validation with rate adaption"), the API contract changed and PHY drivers are no longer required to respond to the .get_rate_matching() method for PHY_INTERFACE_MODE_NA. This was later followed up by documentation commit 6d4cfcf97986 ("net: phy: Update documentation for get_rate_matching"). As such, handling PHY_INTERFACE_MODE_NA in the Aquantia PHY driver implementation of this method is unnecessary and confusing. Remove it. Cc: Sean Anderson Signed-off-by: Vladimir Oltean Reviewed-by: Andrew Lunn Link: https://patch.msgid.link/20250821152022.1065237-8-vladimir.oltean@nxp.com Signed-off-by: Jakub Kicinski --- diff --git a/drivers/net/phy/aquantia/aquantia_main.c b/drivers/net/phy/aquantia/aquantia_main.c index 9d704b7e3dc8c..0f20ed6f96d8a 100644 --- a/drivers/net/phy/aquantia/aquantia_main.c +++ b/drivers/net/phy/aquantia/aquantia_main.c @@ -1067,8 +1067,7 @@ static int aqr_gen2_get_rate_matching(struct phy_device *phydev, phy_interface_t iface) { if (iface == PHY_INTERFACE_MODE_10GBASER || - iface == PHY_INTERFACE_MODE_2500BASEX || - iface == PHY_INTERFACE_MODE_NA) + iface == PHY_INTERFACE_MODE_2500BASEX) return RATE_MATCH_PAUSE; return RATE_MATCH_NONE; }