netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 1/2] e1000e: Only disable ASPM on 82573L devices
@ 2010-02-11 18:14 Matthew Garrett
  2010-02-11 18:14 ` [PATCH v3 2/2] e1000e: Don't disable jumbo frames on 82573L due to eeprom contents Matthew Garrett
  2010-02-19 21:53 ` [PATCH v3 1/2] e1000e: Only disable ASPM on 82573L devices Allan, Bruce W
  0 siblings, 2 replies; 5+ messages in thread
From: Matthew Garrett @ 2010-02-11 18:14 UTC (permalink / raw)
  To: e1000-devel; +Cc: netdev, linux-kernel, Matthew Garrett

The 82537 errata and comment in e1000e_disable_l1aspm both agree that
only 82537L devices are affected. Limit the L1 disable to them.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
---
 drivers/net/e1000e/netdev.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c
index 57f149b..27eed81 100644
--- a/drivers/net/e1000e/netdev.c
+++ b/drivers/net/e1000e/netdev.c
@@ -4642,6 +4642,10 @@ static void e1000e_disable_l1aspm(struct pci_dev *pdev)
 	 * Unfortunately this feature saves about 1W power consumption when
 	 * active.
 	 */
+
+	if (pdev->device != E1000_DEV_ID_82573L)
+		return;
+
 	pos = pci_find_capability(pdev, PCI_CAP_ID_EXP);
 	pci_read_config_word(pdev, pos + PCI_EXP_LNKCTL, &val);
 	if (val & 0x2) {
-- 
1.6.6.1


------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel&#174; Ethernet, visit http://communities.intel.com/community/wired

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-02-19 22:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-11 18:14 [PATCH v3 1/2] e1000e: Only disable ASPM on 82573L devices Matthew Garrett
2010-02-11 18:14 ` [PATCH v3 2/2] e1000e: Don't disable jumbo frames on 82573L due to eeprom contents Matthew Garrett
2010-02-19 21:53   ` Allan, Bruce W
2010-02-19 21:53 ` [PATCH v3 1/2] e1000e: Only disable ASPM on 82573L devices Allan, Bruce W
2010-02-19 22:03   ` Matthew Garrett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).