aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bfin_mac.c
diff options
context:
space:
mode:
authorMichael Hennerich <michael.hennerich@analog.com>2008-07-27 10:45:05 -0400
committerJeff Garzik <jgarzik@redhat.com>2008-07-29 17:48:35 -0400
commitee02fee8f698aee72f43b3ee5fd818393b110402 (patch)
treec35c739cdc8a65d0d5898cbfe0076d12c190ce10 /drivers/net/bfin_mac.c
parenta50c0c05c3bdead1ac405ca8cefd8dc290043933 (diff)
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 <michael.hennerich@analog.com> Signed-off-by: Bryan Wu <cooloney@kernel.org> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/bfin_mac.c')
-rw-r--r--drivers/net/bfin_mac.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/bfin_mac.c b/drivers/net/bfin_mac.c
index ab728006cfa5..70c465db17c6 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)
971 phy_start(lp->phydev); 971 phy_start(lp->phydev);
972 phy_write(lp->phydev, MII_BMCR, BMCR_RESET); 972 phy_write(lp->phydev, MII_BMCR, BMCR_RESET);
973 setup_system_regs(dev); 973 setup_system_regs(dev);
974 setup_mac_addr(dev->dev_addr);
974 bfin_mac_disable(); 975 bfin_mac_disable();
975 bfin_mac_enable(); 976 bfin_mac_enable();
976 pr_debug("hardware init finished\n"); 977 pr_debug("hardware init finished\n");