]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: mtk_eth_soc: add pcs_get_state() implementation
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thu, 27 Oct 2022 13:10:52 +0000 (14:10 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 29 Oct 2022 04:48:30 +0000 (21:48 -0700)
commitc000dca098002da193b98099df051c9ead0cacb4
treefa29b4fac8aed47699bd97757fd4b26fedd5382c
parent5cf7797526ee81bea0f627bccaa3d887f48f53e0
net: mtk_eth_soc: add pcs_get_state() implementation

Add a pcs_get_state() implementation which uses the advertisements
to compute the resulting link modes, and BMSR contents to determine
negotiation and link status.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mediatek/mtk_sgmii.c