Cc: Nicolas Ferre <nicolas.ferre@xxxxxxxxx> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@xxxxxxxxxxxx> --- drivers/net/macb.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/macb.c b/drivers/net/macb.c index 962a889..3026507 100644 --- a/drivers/net/macb.c +++ b/drivers/net/macb.c @@ -214,6 +214,9 @@ static int macb_open(struct eth_device *edev) dev_dbg(macb->dev, "%s\n", __func__); + /* Enable TX and RX */ + macb_writel(macb, NCR, MACB_BIT(TE) | MACB_BIT(RE)); + /* Obtain the PHY's address/id */ return phy_device_connect(edev, &macb->miibus, macb->phy_addr, macb_adjust_link, macb->phy_flags, @@ -259,8 +262,6 @@ static void macb_init(struct macb_device *macb) #endif macb_writel(macb, USRIO, val); - /* Enable TX and RX */ - macb_writel(macb, NCR, MACB_BIT(TE) | MACB_BIT(RE)); } static void macb_halt(struct eth_device *edev) -- 1.7.10.4 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox