Thread (12 messages) 12 messages, 3 authors, 2020-11-29

Re: [PATCH 2/2] net: dsa: ksz8795: adjust CPU link to host interface

From: Andrew Lunn <andrew@lunn.ch>
Date: 2020-11-29 17:08:22
Also in: lkml

On Sun, Nov 29, 2020 at 11:24:00AM +0100, Jean Pihet wrote:
Add support for RGMII in 100 and 1000 Mbps.

Adjust the CPU port based on the host interface settings: interface
MII type, speed, duplex.
Please could you add some extra information here why this is needed. I
suspect you have back to back PHYs on the CPU port?
+void ksz8795_adjust_link(struct dsa_switch *ds, int port,
+						 struct phy_device *phydev)
+{
+	struct ksz_device *dev = ds->priv;
+	struct ksz_port *p = &dev->ports[port];
+
+	/* Adjust the link interface mode and speed for the CPU port */
+	if (port == dev->cpu_port)
dsa_is_cpu_port(ds, port)

		    Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help