]> git.baikalelectronics.ru Git - uboot.git/commit
phy: adin: fix broken support for adi, phy-mode-override
authorNate Drude <nate.d@variscite.com>
Thu, 19 May 2022 09:31:56 +0000 (12:31 +0300)
committerStefano Babic <sbabic@denx.de>
Tue, 14 Jun 2022 19:25:26 +0000 (21:25 +0200)
commit733d9501772a78725c7d39343157fa0e0ed683af
tree26fda438ba460de1823f07c807845f813694b57a
parentbdc2b52cf77c4809b213ca23d9c7a0cc3b554048
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/8386f459afa481ad4562ef3d5249a5ebde6d06d7

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>
drivers/net/phy/adin.c