Thread (19 messages) flat view 19 messages, 2 authors, 2h ago

Re: [PATCH net-next v3 01/10] net: stmmac: move XPCS lifetime management to platform drivers

From: Maxime Chevallier <maxime.chevallier@bootlin.com>
Date: 2026-09-02 22:24:11
Also in: linux-arm-kernel, linux-devicetree, linux-phy, linux-renesas-soc, linux-rockchip, lkml

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help