Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: mvpp2: add xlg pcs inband capabilities

Add PCS inband capabilities for XLG in the Marvell PP2 driver, so
phylink knows that 5G and 10G speeds have no inband capabilities.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Daniel Golle <daniel@makrotopia.org>
Link: https://patch.msgid.link/E1uslR9-00000001OxL-44CD@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Russell King (Oracle) and committed by
Jakub Kicinski
99502c61 23a6037c

+7
+7
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
··· 6222 6222 return container_of(pcs, struct mvpp2_port, pcs_gmac); 6223 6223 } 6224 6224 6225 + static unsigned int mvpp2_xjg_pcs_inband_caps(struct phylink_pcs *pcs, 6226 + phy_interface_t interface) 6227 + { 6228 + return LINK_INBAND_DISABLE; 6229 + } 6230 + 6225 6231 static void mvpp2_xlg_pcs_get_state(struct phylink_pcs *pcs, 6226 6232 unsigned int neg_mode, 6227 6233 struct phylink_link_state *state) ··· 6262 6256 } 6263 6257 6264 6258 static const struct phylink_pcs_ops mvpp2_phylink_xlg_pcs_ops = { 6259 + .pcs_inband_caps = mvpp2_xjg_pcs_inband_caps, 6265 6260 .pcs_get_state = mvpp2_xlg_pcs_get_state, 6266 6261 .pcs_config = mvpp2_xlg_pcs_config, 6267 6262 };