]> git.baikalelectronics.ru Git - uboot.git/commit
net: fec_mxc: fix PHY initialization bug with CONFIG_DM_ETH
authorLothar Waßmann <LW@KARO-electronics.de>
Tue, 27 Jun 2017 13:23:16 +0000 (15:23 +0200)
committerStefano Babic <sbabic@denx.de>
Wed, 12 Jul 2017 07:44:22 +0000 (09:44 +0200)
commit508583fb4ecdc0ac7c37c789e3b9cb3df03e2593
tree767de80c5acf62e09ad3cbb27bfa1e2d811b1056
parentf74b12d214a55b328fd9a1d155c06073235776c6
net: fec_mxc: fix PHY initialization bug with CONFIG_DM_ETH

When CONFIG_DM_ETH is set, the FEC ethernet controller is reset after
the PHY has been set up and initialzed. This breaks the communication
with the PHY and results in an inoperable ethernet interface.

Do the initialization with CONFIG_DM_ETH in the same order as with
legacy ETH support to fix this.

Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/fec_mxc.c