Re: [PATCH net 2/5] net: dsa: b53: fix the SRAB grant timeout check

From: Jonas Gorski

Date: Wed Oct 28 2026 - 05:15:29 EST


On Tue, Oct 27, 2026 at 9:22 PM Florian Fainelli
<florian.fainelli@xxxxxxxxxxxx> wrote:
>
> b53_srab_request_grant() polls for a grant up to 20 times, but checks for
> an iteration count of five to detect a timeout. This rejects a grant
> received on the sixth poll and reports success when all 20 polls finish
> without a grant. The latter allows a register access to proceed without
> ownership of the switch resources.
>
> Check for exhaustion of all 20 iterations instead.
>
> Fixes: 967dd82ffc52 ("net: dsa: b53: Add support for Broadcom RoboSwitch")
> Signed-off-by: Florian Fainelli <florian.fainelli@xxxxxxxxxxxx>

Reviewed-by: Jonas Gorski <jonas.gorski@xxxxxxxxx>