]> 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)
commit3d5e65d39d6c6fdbc9ad14cd8ec67dd8795b64ed
treea03b815cd1394a74dd8bdc6f34aea885f2a34317
parent076fa4f83b53377d46a303798efbf98dcbff602a
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: a9894f007b7e1 ("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