Title: [4156] branches/2008R1/drivers/net/bfin_mac.c: Patch [#3699]
bfin-mac power down mode
- Revision
- 4156
- Author
- cooloney
- Date
- 2008-01-28 20:40:23 -0600 (Mon, 28 Jan 2008)
Log Message
Patch [#3699] bfin-mac power down mode
This patch puts phy in power-down mode when interface is down.
Also we should think about energy detect power-down mode, that will
decrease power consumption when no link.
Signed-off-by: Vitja Makarov <[EMAIL PROTECTED]>
Diffstat
bfin_mac.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Modified Paths
Diff
Modified: branches/2008R1/drivers/net/bfin_mac.c (4155 => 4156)
--- branches/2008R1/drivers/net/bfin_mac.c 2008-01-29 02:37:35 UTC (rev 4155)
+++ branches/2008R1/drivers/net/bfin_mac.c 2008-01-29 02:40:23 UTC (rev 4156)
@@ -903,10 +903,10 @@
return retval;
phy_start(lp->phydev);
+ phy_write(lp->phydev, MII_BMCR, BMCR_RESET);
setup_system_regs(dev);
bf537mac_disable();
bf537mac_enable();
-
pr_debug("hardware init finished\n");
netif_start_queue(dev);
netif_carrier_on(dev);
@@ -929,6 +929,7 @@
netif_carrier_off(dev);
phy_stop(lp->phydev);
+ phy_write(lp->phydev, MII_BMCR, BMCR_PDOWN);
/* clear everything */
bf537mac_shutdown(dev);
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits