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.