[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210815011243.prsztuzllmgiflui@skbuf>
Date: Sun, 15 Aug 2021 04:12:43 +0300
From: Vladimir Oltean <olteanv@...il.com>
To: Vladimir Oltean <vladimir.oltean@....com>
Cc: netdev@...r.kernel.org, Jakub Kicinski <kuba@...nel.org>,
"David S. Miller" <davem@...emloft.net>,
Russell King <linux@...linux.org.uk>,
Alexandre Belloni <alexandre.belloni@...tlin.com>,
Horatiu Vultur <horatiu.vultur@...rochip.com>,
Colin Foster <colin.foster@...advantage.com>,
Florian Fainelli <f.fainelli@...il.com>,
Andrew Lunn <andrew@...n.ch>,
Vivien Didelot <vivien.didelot@...il.com>,
Claudiu Manoil <claudiu.manoil@....com>,
UNGLinuxDriver@...rochip.com
Subject: Re: [PATCH net-next 2/2] net: mscc: ocelot: convert to phylink
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.
Powered by blists - more mailing lists