[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1325183594-8947-1-git-send-email-tbroch@chromium.org>
Date: Thu, 29 Dec 2011 10:33:14 -0800
From: Todd Broch <tbroch@...omium.org>
To: nic_swsd@...ltek.com
Cc: Francois Romieu <romieu@...zoreil.com>, netdev@...r.kernel.org,
Todd Broch <tbroch@...omium.org>
Subject: [PATCH] r8169: Enable suspend when device is idle from boot.
The r8169 driver supports power management and correctly transitions
from active to suspend when link transitions from connected to
disconnected. However, if link is not connected at boot the device
remains active after the initial probe.
This change adds a check of the link status to the idle pm_op that
will schedule a suspend if inactive.
Signed-off-by: Todd Broch <tbroch@...omium.org>
---
drivers/net/ethernet/realtek/r8169.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c
index 67bf078..3dbb5fd 100644
--- a/drivers/net/ethernet/realtek/r8169.c
+++ b/drivers/net/ethernet/realtek/r8169.c
@@ -6137,6 +6137,7 @@ static int rtl8169_runtime_idle(struct device *device)
struct net_device *dev = pci_get_drvdata(pdev);
struct rtl8169_private *tp = netdev_priv(dev);
+ __rtl8169_check_link_status(dev, tp, tp->mmio_addr, true);
return tp->TxDescArray ? -EBUSY : 0;
}
--
1.7.3.1
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists