[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1251906680-5828-1-git-send-email-anemo@mba.ocn.ne.jp>
Date: Thu, 3 Sep 2009 00:51:20 +0900
From: Atsushi Nemoto <anemo@....ocn.ne.jp>
To: netdev@...r.kernel.org
Cc: David Miller <davem@...emloft.net>
Subject: [PATCH] tc35815: Disable PM capability
This chip may report existance of PM registers though they are not
supported. Disable PM features by clearing pdev->pm_cap.
Signed-off-by: Atsushi Nemoto <anemo@....ocn.ne.jp>
---
drivers/net/tc35815.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/drivers/net/tc35815.c b/drivers/net/tc35815.c
index d2ca47f..71e4482 100644
--- a/drivers/net/tc35815.c
+++ b/drivers/net/tc35815.c
@@ -909,6 +909,11 @@ static int __devinit tc35815_init_one(struct pci_dev *pdev,
lp = netdev_priv(dev);
lp->dev = dev;
+ /* This device may have PM registers but they are not supported. */
+ if (pdev->pm_cap) {
+ dev_info(&pdev->dev, "Disable PM\n");
+ pdev->pm_cap = 0;
+ }
/* enable device (incl. PCI PM wakeup), and bus-mastering */
rc = pcim_enable_device(pdev);
if (rc)
--
1.5.6.5
--
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