Thread (11 messages) flat view 11 messages, 5 authors, 2025-01-07

Re: [PATCH net-next 3/6] net: pcs: mtk-lynxi: fill in PCS supported_interfaces

From: Daniel Golle <daniel@makrotopia.org>
Date: 2025-01-03 11:27:39
Also in: linux-arm-kernel, linux-mediatek


On 3 January 2025 11:16:41 UTC, "Russell King (Oracle)" [off-list ref] wrote:
Fill in the new PCS supported_interfaces member with the interfaces
that the Mediatek LynxI supports.

Signed-off-by: Russell King (Oracle) <redacted>
Acked-by: Daniel Golle <daniel@makrotopia.org>
quoted hunk ↗ jump to hunk
---
drivers/net/pcs/pcs-mtk-lynxi.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/net/pcs/pcs-mtk-lynxi.c b/drivers/net/pcs/pcs-mtk-lynxi.c
index 7de804535229..a6153e9999a7 100644
--- a/drivers/net/pcs/pcs-mtk-lynxi.c
+++ b/drivers/net/pcs/pcs-mtk-lynxi.c
@@ -306,6 +306,10 @@ struct phylink_pcs *mtk_pcs_lynxi_create(struct device *dev,
	mpcs->pcs.poll = true;
	mpcs->interface = PHY_INTERFACE_MODE_NA;

+	__set_bit(PHY_INTERFACE_MODE_SGMII, mpcs->pcs.supported_interfaces);
+	__set_bit(PHY_INTERFACE_MODE_1000BASEX, mpcs->pcs.supported_interfaces);
+	__set_bit(PHY_INTERFACE_MODE_2500BASEX, mpcs->pcs.supported_interfaces);
+
	return &mpcs->pcs;
}
EXPORT_SYMBOL(mtk_pcs_lynxi_create);
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help