On Tue, 15 Sep 2026 10:17:22 +0200, Julien Stephan wrote:

> phy_dev_ops() returns dev->driver->ops without checking it, and every
> generic_phy_*() helper dereferences the result unconditionally. A PHY
> driver registered without an operations table therefore faults on the
> first PHY access.
> 
> Add a uclass post_bind hook rejecting such drivers, as the pinctrl
> uclass already does, instead of open-coding a NULL check in each helper.
> Return -ENODEV so that lists_bind_fdt() only skips the offending device
> instead of failing the whole device tree scan.
> 
> [...]

Applied to u-boot/next, thanks!

[1/1] phy: reject drivers without operations at bind time
      commit: 52a1b525760abaf55fe0027a7bb57714028a7671
-- 
Tom


Reply via email to