]> git.baikalelectronics.ru Git - kernel.git/commit
phy: aquantia: Fix AN when higher speeds than 1G are not advertised
authorClaudiu Manoil <claudiu.manoil@nxp.com>
Fri, 10 Jun 2022 08:40:37 +0000 (11:40 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 17 Jun 2022 03:25:55 +0000 (20:25 -0700)
commit39636a658b6eb7bec27417e374ac99bb5802bff6
treea03b815cd1394a74dd8bdc6f34aea885f2a34317
parent4e573317ca76e5bf57c0e68724f50954812bc00d
phy: aquantia: Fix AN when higher speeds than 1G are not advertised

Even when the eth port is resticted to work with speeds not higher than 1G,
and so the eth driver is requesting the phy (via phylink) to advertise up
to 1000BASET support, the aquantia phy device is still advertising for 2.5G
and 5G speeds.
Clear these advertising defaults when requested.

Cc: Ondrej Spacek <ondrej.spacek@nxp.com>
Fixes: a264b1e211231 ("net: phy: aquantia: add support for auto-negotiation configuration")
Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Link: https://lore.kernel.org/r/20220610084037.7625-1-claudiu.manoil@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/aquantia_main.c