]> git.sur5r.net Git - u-boot/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)
commit306dd7dabd6472b8b66ab5106d5a6a516ef15d79
tree767de80c5acf62e09ad3cbb27bfa1e2d811b1056
parent34d45d123aeaa0a23e5c9bf87eb996cb95df37b1
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