On Mon, Nov 30, 2026 at 02:55:21AM +0200, Cristian Ciocaltea wrote:
> The Aeonsemi PHYs report a generic PHY ID until their firmware is
> loaded, so the driver reads the ID from the hardware while matching
> instead of relying on the ID cached at bus scan time.
>
> The PHY only reports a valid ID while out of reset, which is not
> guaranteed. phy_remove() asserts the reset and phy_probe() deasserts
> it, but probing only happens once a driver has matched. Rebinding the
> driver, for instance by reloading the module, therefore reads the ID of
> a PHY held in reset. This fails to match, leaving the PHY in reset with
> no driver bound, which cannot be recovered without a power cycle.
We don't do fun and games like this. We just require the compatible in
DT contains the ID, if the ID cannot be reliably read from the device.
Andrew