phy: adin: fix broken support for adi, phy-mode-override
Currently, the adin driver fails to compile. The original patch introducing the adin driver used the function phy_get_interface_by_name to support the adi,phy-mode-override property. Unfortunately, a few days before the adin patch was accepted, another patch removed support for phy_get_interface_by_name: https://github.com/u-boot/u-boot/commit/123ca114e07ecf28aa2538748d733e2b22d8b8b5 This patch refactors adin_get_phy_mode_override, implementing the logic in the new function, ofnode_read_phy_mode, from the patch above. Signed-off-by:Nate Drude <nate.d@variscite.com> Tested-by:
Josua Mayer <josua@solid-run.com> Signed-off-by:
Josua Mayer <josua@solid-run.com>
Loading
Please register or sign in to comment