]> code.ossystems Code Review - bsp/u-boot.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)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 12 Jul 2017 12:05:01 +0000 (09:05 -0300)
commit10d185960ea033c3704a4905e43b75cf0e0e1de3
tree98be07d8d65a9db9b5449d69eef981630f10762a
parentb2d4bf303e7d70aa4ede6d41532bdb45fb579ac8
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