Thread (4 messages) flat view 4 messages, 2 authors, 2021-08-15

Re: [PATCH net-next 2/2] net: mscc: ocelot: convert to phylink

From: Vladimir Oltean <olteanv@gmail.com>
Date: 2021-08-15 01:12:53

On Sun, Aug 15, 2021 at 03:56:22AM +0300, Vladimir Oltean wrote:
-	switch (phydev->speed) {
+	if (duplex == DUPLEX_FULL)
+		mode |= DEV_MAC_MODE_CFG_FDX_ENA;
+	/* Only full duplex supported for now */
+	ocelot_port_writel(ocelot_port, DEV_MAC_MODE_CFG_FDX_ENA |
+			   mode, DEV_MAC_MODE_CFG);
I forgot to add a change to the patch, we shouldn't unconditionally OR
with DEV_MAC_MODE_CFG_FDX_ENA like the old code did if we aren't in
DUPLEX_FULL mode.

Anyway I'll wait for the automatic build tests to finish and I'll resend
a v2 very quickly afterwards.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help