Re: [PATCH net] net: dsa: b53: fix ageing time for BCM53101
From: Andrew Lunn
Date: Sat Aug 23 2025 - 11:01:28 EST
On Sat, Aug 23, 2025 at 11:06:16AM +0200, Jonas Gorski wrote:
> For some reason Broadcom decided that BCM53101 uses 0.5s increments for
> the ageing time register, but kept the field width the same [1]. Due to
> this, the actual ageing time was always half of what was configured.
>
> Fix this by adapting the limits and value calculation for BCM53101.
>
> [1] https://github.com/Broadcom-Network-Switching-Software/OpenMDK/blob/master/cdk/PKG/chip/bcm53101/bcm53101_a0_defs.h#L28966
Is line 28966 correct? In order to find a reference to age, i needed
to search further in the file.
Are these devices organised in families/generations. Are you sure this
does not apply to:
BCM53101_DEVICE_ID = 0x53101,
BCM53115_DEVICE_ID = 0x53115,
BCM53125_DEVICE_ID = 0x53125,
BCM53128_DEVICE_ID = 0x53128,
Andrew