From: Michael Hennerich Date: Sun, 27 Jul 2008 14:45:05 +0000 (+0800) Subject: Blackfin EMAC Driver: Functional power management support X-Git-Tag: v2.6.27-rc2~102^2~21^2~10 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ee02fee8f698aee72f43b3ee5fd818393b110402;p=linux-2.6-omap-h63xx.git Blackfin EMAC Driver: Functional power management support Reprogram MAC address after resume from Suspend Mem (Blackfin Hibernate looses all CORE and SYSTEM register content) Signed-off-by: Michael Hennerich Signed-off-by: Bryan Wu Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/bfin_mac.c b/drivers/net/bfin_mac.c index ab728006cfa..70c465db17c 100644 --- a/drivers/net/bfin_mac.c +++ b/drivers/net/bfin_mac.c @@ -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");