Re: [PATCH net-next v3 01/10] net: stmmac: move XPCS lifetime management to platform drivers
From: Maxime Chevallier
Date: Wed Sep 02 2026 - 18:24:15 EST
Hi,
On 9/1/26 17:01, Coia Prant wrote:
> The current XPCS creation logic in stmmac_pcs_setup() is problematic
> for several reasons.
[...]
>
> Existing platform drivers (intel, rzn1, socfpga) are updated to use
> the new callbacks by moving their XPCS creation and cleanup logic into
> pcs_init() and pcs_exit(). In their pcs_exit() implementations, the
> pointer to the destroyed PCS is explicitly set to NULL to avoid
> dangling pointer references.
Hopefully this covers all the glues out there, fingers crossed for
the qualcomm one. On Socfpga at least, no breakage reported :)
Romain may be able to run some tests on rzn1 at some point, but I
suspect this is fine as well.
Reviewed-by: Maxime Chevallier <maxime.chevallier@xxxxxxxxxxx>
Maxime