MLK-16535 net: fec: Fix issue in DM probe function
authorYe Li <ye.li@nxp.com>
Tue, 26 Sep 2017 05:44:47 +0000 (00:44 -0500)
committerJason Liu <jason.hui.liu@nxp.com>
Thu, 2 Nov 2017 18:37:18 +0000 (02:37 +0800)
commite1ac367efaf32a67f95121a7c1266eb44e86ba10
tree03ef9f0b63f02603149444fd2d2e69e6e53701ec
parent41cd537c731e8c647cd3254d67a53f585bc7fe1b
MLK-16535 net: fec: Fix issue in DM probe function

Met a problem that mii command fails to work after u-boot booting up.
The root cause is the fec_probe function initializes ethernet PHY first,
then reset the FEC controller. This causes the mii_speed register reset
to 0 and lead mdio can't work.
Change the flow to reset FEC controller prior than setup PHY.

Signed-off-by: Ye Li <ye.li@nxp.com>
drivers/net/fec_mxc.c