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 has an undeclared stable-backport dependency, and its Fixes tag does not match the tag on the patch it depends on. -- net: ethernet: ti: cpsw_ale: serialize control register updates This patch takes the ALE spinlock around the read-modify-write in cpsw_ale_control_set(). Without it, two concurrent updates of different fields in the same control register, such as ALE_PORTCTL or ALE_CONTROL, can lose each other's change. It also extends the comment on the lock in struct cpsw_ale to cover the control registers.
> diff --git a/drivers/net/ethernet/ti/cpsw_ale.c b/drivers/net/ethernet/ti/cpsw_ale.c > index dc550142ed822..69861d451ce41 100644 > --- a/drivers/net/ethernet/ti/cpsw_ale.c > +++ b/drivers/net/ethernet/ti/cpsw_ale.c > @@ -1205,9 +1205,11 @@ int cpsw_ale_control_set(struct cpsw_ale *ale, int port, int control, > offset = info->offset + (port * info->port_offset); > shift = info->shift + (port * info->port_shift); > > + spin_lock_bh(&ale->lock); > tmp = readl_relaxed(ale->params.ale_regs + offset); > tmp = (tmp & ~(mask << shift)) | (value << shift); > writel_relaxed(tmp, ale->params.ale_regs + offset); > + spin_unlock_bh(&ale->lock);
[Severity: Low] Will this patch backport cleanly to the stable trees its tags select? The baseline has neither ale->lock nor the comment that the cpsw_ale.h hunk edits. The previous patch in the series, "net: ethernet: ti: cpsw_ale: serialize ALE table accesses", adds both, along with the spin_lock_init(). The two patches have different Fixes tags: previous patch: Fixes: 1767bb2d47b7 ("ipv6: mcast: Don't hold RTNL for IPV6_ADD_MEMBERSHIP and MCAST_JOIN_GROUP.") this patch: Fixes: db82173f23c5 ("netdev: driver: ethernet: add cpsw address lookup engine support") Cc: stab…@vger.kernel.org db82173f23c5 dates from 2012, so stable tooling would queue this patch for every maintained branch. The prerequisite would only be picked for branches that contain 1767bb2d47b7, which dates from July 2025. Older LTS branches such as 5.10, 5.15, 6.1, 6.6 and 6.12 don't contain 1767bb2d47b7. There the cpsw_ale.h hunk wouldn't apply. If only the cpsw_ale.c hunk were taken, the build would fail with 'struct cpsw_ale' has no member named 'lock'. The changelog also says: This does not depend on the RTNL change named in the previous patch. That holds for the race itself. Could it lead a backporter to treat the code change as standalone, though? Would it help to add a stable dependency annotation, for example: Cc: stab…@vger.kernel.org # depends on "net: ethernet: ti: cpsw_ale: serialize ALE table accesses" Another option is to align the Fixes tags so both patches go to the same stable branches.
-- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/2026…%40amperfied.com