Re: [PATCH net-next] net: phy: Handle PHY reset during initial PHY ID read
From: Andrew Lunn
Date: Thu Mar 12 2026 - 11:44:43 EST
> I agree it's not just a MDIO/PHY problem. I am looking into it for all
> the common enumerable bus types.
Great.
> We already have the power sequencing framework (drivers/power/sequencing).
> So instead of the open coded reset GPIO I did in this patch, it would
> just be calls to pwrseq_get() and pwrseq_power_on(). I would need to
> figure out how to actually work them into the MDIO subsystem, and also
> how to model a generic PHY power sequencing provider. But the recent
> M.2 slot work [1] provides some good examples.
You need to be careful with "generic PHY". That generally means
drivers/phy and the config symbol GENERIC_PHY. Ethernet PHYs have been
around a long time, so PHY generally means Ethernet PHY. But
"recently", devices with SERDES interfaces, PCIe, SATA, USB, Ethernet
PCS have a 'phy' which needs configuring, so we gained the Generic PHY
subsystem. And we gained the confusion of PHY vs Generic PHY.
> Does that sound more acceptable?
Yes it does.
Thanks
Andrew