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@bootlin.com>
Maxime