]> 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)
commit9b7fd1670a94a57d974795acebde843a5c1a354e
treea03b815cd1394a74dd8bdc6f34aea885f2a34317
parent48a23ec6ff2b2a5effe8d3ae5f17fc6b7f35df65
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: 09c4c57f7bc41 ("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