Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] This patch adds `isolation_mask` to `struct yt921x_port`
(drivers/net/dsa/motorcomm/chip.h) and sets it in four places in…
--
net: dsa: motorcomm: Cache port isolation masks
This commit adds an isolation_mask field to struct yt921x_port. It keeps
a software copy of each port's YT921X_PORTn_ISOLATION register, updated
after each successful register write.
[ ... ]
> diff --git a/drivers/net/dsa/motorcomm/chip.h b/drivers/net/dsa/motorcomm/chip.h
> index d5ed580f8a78e..39b7721cff402 100644
> --- a/drivers/net/dsa/motorcomm/chip.h
> +++ b/drivers/net/dsa/motorcomm/chip.h
> @@ -464,6 +464,8 @@ struct yt921x_port {
>
> unsigned short acl_cnt;
>
> + u16 isolation_mask;
> +
[Severity: Low]
This isn't a bug, but nothing reads isolation_mask at this commit. Only
these functions write it:
yt921x_userport_standalone()
yt921x_isolate()
yt921x_bridge()
yt921x_port_setup()
The commit message only says:
Keep a software copy of PORTn_ISOLATION values for future use.
The code that reads it seems to come later in the series. It is in the
redirect handling in drivers/net/dsa/motorcomm/tc.c, added by "net: dsa:
motorcomm: Reject isolated redirect targets" and "net: dsa: motorcomm:
Recompute redirect rules on bridge changes".
Could the commit message say which later patches use the cache?
> #if IS_ENABLED(CONFIG_NET_DSA_YT921X_LEDS)
> unsigned char led_duty;
> unsigned short led_cycle;
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/2026…%40gmail.com