]> git.baikalelectronics.ru Git - kernel.git/commit
net: phylink: rename mac_link_state() op to mac_pcs_get_state()
authorRussell King <rmk+kernel@armlinux.org.uk>
Thu, 21 Nov 2019 00:36:22 +0000 (00:36 +0000)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Sun, 24 Nov 2019 00:13:39 +0000 (16:13 -0800)
commit00e8daea689e8655833ab4c38af06a33cfd9fbcb
treed841ff4cec5acfc14f0517b409b055d279895832
parentc3f9c83c4324805157d7c1560b3533c735146f8f
net: phylink: rename mac_link_state() op to mac_pcs_get_state()

Rename the mac_link_state() method to mac_pcs_get_state() to make it
clear that it should be returning the MACs PCS current state, which
is used for inband negotiation rather than just reading back what the
MAC has been configured for. Update the documentation to explicitly
mention that this is for inband.

We drop the return value as well; most of phylink doesn't check the
return value and it is not clear what it should do on error - instead
arrange for state->link to be false.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
drivers/net/ethernet/cadence/macb_main.c
drivers/net/ethernet/marvell/mvneta.c
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
drivers/net/ethernet/mediatek/mtk_eth_soc.c
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
drivers/net/ethernet/xilinx/xilinx_axienet_main.c
drivers/net/phy/phylink.c
include/linux/phylink.h
net/dsa/dsa_priv.h
net/dsa/port.c