# Re: \[PATCH net-next v11 01/13\] net: pse-pd: Introduce attached\_phydev to pse control

- From: Oleksij Rempel \<o.rempel@pengutronix.de\>
- Date: 2025-05-22 06:43:46 
- List: netdev
- Page: https://ratatoskr.run/netdev/2025/05/3065232
- Thread: https://ratatoskr.run/netdev/2025/05/3062669/t.md

```text
On Tue, May 20, 2025 at 06:11:03PM +0200, Kory Maincent wrote:
> From: Kory Maincent (Dent Project) <kory.maincent@bootlin.com>
> 
> In preparation for reporting PSE events via ethtool notifications,
> introduce an attached_phydev field in the pse_control structure.
> This field stores the phy_device associated with the PSE PI,
> ensuring that notifications are sent to the correct network
> interface.
> 
> The attached_phydev pointer is directly tied to the PHY lifecycle. It
> is set when the PHY is registered and cleared when the PHY is removed.
> There is no need to use a refcount, as doing so could interfere with
> the PHY removal process.
> 
> Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>

Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de> 

Thank you!
-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
```
