]> www.infradead.org Git - users/willy/pagecache.git/commit
net: phy: aquantia: remove usage of phy_set_max_speed
authorAbhishek Chauhan <quic_abchauha@quicinc.com>
Tue, 1 Oct 2024 22:46:26 +0000 (15:46 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 3 Oct 2024 23:16:03 +0000 (16:16 -0700)
commit8f61d73306c62e3c0e368cf6051330f4593415f6
treeec75b25e1689b4ad2e01daf7848163fa885453ce
parent17cbfcdd85f6c93b2e9565d61110ad0b90440436
net: phy: aquantia: remove usage of phy_set_max_speed

Remove the use of phy_set_max_speed in phy driver as the
function is mainly used in MAC driver to set the max
speed.

Instead use get_features to fix up Phy PMA capabilities for
AQR111, AQR111B0, AQR114C and AQCS109

Fixes: 038ba1dc4e54 ("net: phy: aquantia: add AQR111 and AQR111B0 PHY ID")
Fixes: 0974f1f03b07 ("net: phy: aquantia: remove false 5G and 10G speed ability for AQCS109")
Fixes: c278ec644377 ("net: phy: aquantia: add support for AQR114C PHY ID")
Link: https://lore.kernel.org/all/20240913011635.1286027-1-quic_abchauha@quicinc.com/T/
Signed-off-by: Abhishek Chauhan <quic_abchauha@quicinc.com>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/20241001224626.2400222-3-quic_abchauha@quicinc.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/aquantia/aquantia_main.c