Re: [PATCH net-next 2/6] net: dsa: motorcomm: Rely on port isolation for CPU port

From: David Yang

Date: Wed Nov 04 2026 - 05:06:30 EST


On Wed, Nov 4, 2026 at 11:59 AM Andrew Lunn <andrew@xxxxxxx> wrote:
>
> > - ctrl = ~priv->cpu_ports_mask;
> > - res = yt921x_reg_write(priv, YT921X_PORTn_ISOLATION(port), ctrl);
> > - if (res)
> > - return res;
> > + if (!(BIT(port) & priv->cpu_ports_mask)) {
>
> if (!dsa_is_cpu_port(ds, port) ?
>

The next line is ctrl = ~priv->cpu_ports_mask, but could change both
if you prefer.