Thread (12 messages) 12 messages, 3 authors, 2020-09-07

Re: [PATCH net-next v3 4/6] net: dsa: mt7530: Add the support of MT7531 switch

From: Jakub Kicinski <kuba@kernel.org>
Date: 2020-09-05 23:50:54
Also in: linux-devicetree, linux-mediatek, lkml, netdev

On Fri, 4 Sep 2020 22:21:59 +0800 Landen Chao wrote:
+static int
+mt7531_cpu_port_config(struct dsa_switch *ds, int port)
+{
+	struct mt7530_priv *priv = ds->priv;
+	phy_interface_t interface;
+	int speed;
+
+	switch (port) {
+	case 5:
+		if (mt7531_is_rgmii_port(priv, port))
+			interface = PHY_INTERFACE_MODE_RGMII;
+		else
+			interface = PHY_INTERFACE_MODE_2500BASEX;
+
+		priv->p5_interface = interface;
+		break;
+	case 6:
+		interface = PHY_INTERFACE_MODE_2500BASEX;
+
+		mt7531_pad_setup(ds, interface);
+
+		priv->p6_interface = interface;
+		break;
+	};
stray semicolon

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help