Re: [PATCH net 1/2] net: stmmac: propagate platform mac_finish errors
From: Maxime Chevallier
Date: Wed Sep 16 2026 - 09:11:21 EST
Hi,
On 9/16/26 12:39, Thomas Karpiniec wrote:
> From: Thomas Karpiniec <tom@xxxxxxxx>
>
> stmmac_mac_finish() discards the platform callback's return value and
> always reports success to phylink. For example, the Qualcomm ETHQOS
> callback can return an error from phy_set_mode_ext() if SerDes
> configuration fails. Phylink then treats the interface as successfully
> configured and can report carrier even though the SerDes is not ready.
>
> Return the platform callback's result so that phylink can report the
> failure and keep the link down until a subsequent configuration succeeds.
> Keep returning zero when no platform callback is installed.
>
> Fixes: e654cfc718d4 ("net: stmmac: configure SerDes on mac_finish")
> Cc: stable@xxxxxxxxxxxxxxx
> Assisted-by: LLM sparse
> Signed-off-by: Thomas Karpiniec <tom@xxxxxxxx>
Let's see if this uncovers other dirt under the stmmac phylink carpet :)
Reviewed-by: Maxime Chevallier <maxime.chevallier@xxxxxxxxxxx>
Maxime