Blackfin EMAC Driver: Functional power management support
authorMichael Hennerich <michael.hennerich@analog.com>
Sun, 27 Jul 2008 14:45:05 +0000 (22:45 +0800)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 29 Jul 2008 21:48:35 +0000 (17:48 -0400)
Reprogram MAC address after resume from Suspend Mem
(Blackfin Hibernate looses all CORE and SYSTEM register content)

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/bfin_mac.c

index ab72800..70c465d 100644 (file)
@@ -971,6 +971,7 @@ static int bfin_mac_open(struct net_device *dev)
        phy_start(lp->phydev);
        phy_write(lp->phydev, MII_BMCR, BMCR_RESET);
        setup_system_regs(dev);
+       setup_mac_addr(dev->dev_addr);
        bfin_mac_disable();
        bfin_mac_enable();
        pr_debug("hardware init finished\n");