]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: sun8i-emac: Add support for fixed-link phy
authorMaksim Kiselev <bigunclemax@gmail.com>
Sat, 20 Jan 2024 16:26:24 +0000 (19:26 +0300)
committerAndre Przywara <andre.przywara@arm.com>
Mon, 29 Jan 2024 14:30:59 +0000 (14:30 +0000)
commit2bfab76f4c73536717f6c6cda2dcb2a60bb25ece
treeaa22b83349d698c93e1b42a575ddd864cc399095
parent1cca1011cb4e0f43ba42763a9cbf203df38dd862
net: sun8i-emac: Add support for fixed-link phy

Make the "phy-handle" property optional, which allows support
for a fixed-link phy configuration.

Thus if the "phy-handle" is present in a DT, then driver will work as
before. Otherwise, phyaddr initialization will not be necessary,
as it is not needed in case of a fixed-link config.

Signed-off-by: Maksim Kiselev <bigunclemax@gmail.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
drivers/net/sun8i_emac.c