Re: [PATCH net-next v2] tg3: Propagate PHY reset retry failures in tg3_phy_reset_5703_4_5()
From: Ian Rogers
Date: Tue Nov 24 2026 - 19:40:32 EST
On Sun, Nov 22, 2026 at 8:56 PM <netdev-bot+sashiko@xxxxxxxxxx> wrote:
>
> [Severity: Medium]
> Is this description accurate? In tg3_get_invariants(), an error from
> tg3_phy_probe() is logged and probe keeps going:
[...]
> [Severity: High]
> Can this early return leave the BCM5703/5704/5705 PHY in its DSP test
> configuration?
Both points are valid - returning early skips unblocking DSP 0x8005 and
clearing MII_TG3_EXT_CTRL 0x3000 when test-pattern retries are exhausted
(while callers such as tg3_reset_hw() ignore tg3_phy_reset()'s return
value), and tg3_get_invariants() logs the tg3_phy_probe() failure
without aborting PCI probe.
I'll send a v3 for net-next that keeps the existing post-loop cleanup
intact and simply guards the MII_CTRL1000 restore with a boolean flag so
phy9_orig is only written back if MII_CTRL1000 was actually read.
Thanks,
Ian
pw-bot: cr