]> git.sur5r.net Git - u-boot/commit
net: macb: Fix GMAC not work when enable DM_ETH
authorWenyou Yang <wenyou.yang@atmel.com>
Thu, 20 Apr 2017 03:13:13 +0000 (11:13 +0800)
committerJoe Hershberger <joe.hershberger@ni.com>
Fri, 2 Jun 2017 19:44:19 +0000 (14:44 -0500)
commit6de046eaa74a2a0fb68f1055a1d38bc93f4f16c7
tree7cda1411bb907c4bfe55737e2bbe1c3423b4189e
parente09d0c8314933e586de6549581e35cb21f8b4da2
net: macb: Fix GMAC not work when enable DM_ETH

Always search the PHY to determine the macb->phy_addr before using
the PHY to fix "No PHY present" error.

Fix the wrong test of the GMAC's phy interface mode, it should be
PHY_INTERFACE_MODE_RGMII.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/macb.c