diff options
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2025-01-03 12:16:36 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-01-07 01:26:12 +0100 |
commit | 906909fabb81dedf93a786c2d7247cab12e0a232 (patch) | |
tree | 065f71875801335c4c43ffe1efa41815fbdd8049 /drivers/net/pcs | |
parent | net: phylink: add support for PCS supported_interfaces bitmap (diff) | |
download | linux-906909fabb81dedf93a786c2d7247cab12e0a232.tar.xz linux-906909fabb81dedf93a786c2d7247cab12e0a232.zip |
net: pcs: xpcs: fill in PCS supported_interfaces
Fill in the new PCS supported_interfaces member with the interfaces
that XPCS supports.
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1tTffQ-007RoJ-4u@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/pcs')
-rw-r--r-- | drivers/net/pcs/pcs-xpcs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/pcs/pcs-xpcs.c b/drivers/net/pcs/pcs-xpcs.c index f70ca39f0905..cf41dc5e74e8 100644 --- a/drivers/net/pcs/pcs-xpcs.c +++ b/drivers/net/pcs/pcs-xpcs.c @@ -1446,6 +1446,8 @@ static struct dw_xpcs *xpcs_create(struct mdio_device *mdiodev) if (ret) goto out_clear_clks; + xpcs_get_interfaces(xpcs, xpcs->pcs.supported_interfaces); + if (xpcs->info.pma == WX_TXGBE_XPCS_PMA_10G_ID) xpcs->pcs.poll = false; else |