]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: sun8i_emac: Test the correct phy
authorEmmanuel Vadot <manu@freebsd.org>
Fri, 19 Jul 2019 20:26:38 +0000 (22:26 +0200)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 25 Jul 2019 18:36:13 +0000 (13:36 -0500)
commitd53e52225527625c72c4dbff4fe8c0b68a553340
treedd697d41d86af4df0caa588f7cb5f01ed8b63d66
parente809285d4942cbd6c3efb381bd48dcf8294639a7
net: sun8i_emac: Test the correct phy

H3/H5 can either use the internal phy or an external one.
Before getting clock and resets for the internal phy,
test that we are using it because otherwise it break emac
when using an external phy.

Tested-on: OrangePi PC2 (H5)
Fixes: 2348453c41 (net: sun8i_emac: Add EPHY CLK and RESET support)
Signed-off-by: Emmanuel Vadot <manu@freebsd.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/sun8i_emac.c