projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d0d0b1
)
net/ethernet/jme: disable ASPM
author
Kevin Baradon
<
[email protected]
>
Wed, 10 Oct 2012 10:50:49 +0000
(10:50 +0000)
committer
David S. Miller
<
[email protected]
>
Thu, 11 Oct 2012 19:18:49 +0000
(15:18 -0400)
Based on patch from Matthew Garrett <
[email protected]
> (https://lkml.org/lkml/2011/11/11/168).
http://driveragent.com/archive/30421/7-0-14 indicates that ASPM is
disabled on the 250 and 260. Duplicate for sanity.
Fixes random RX engine hangs I experienced with JMC250 on Clevo W270HU.
Signed-off-by: Kevin Baradon <
[email protected]
>
Cc: Guo-Fu Tseng <
[email protected]
>
Cc: Matthew Garrett <
[email protected]
>
Cc:
[email protected]
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/jme.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/jme.c
b/drivers/net/ethernet/jme.c
index c911d883c27e6fbd922eab405aa2457db25be782..f8064df10cc4ca1d1c6bcf05b42858ae5c9071fc 100644
(file)
--- a/
drivers/net/ethernet/jme.c
+++ b/
drivers/net/ethernet/jme.c
@@
-27,6
+27,7
@@
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/pci.h>
+#include <linux/pci-aspm.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/ethtool.h>
@@
-2973,6
+2974,9
@@
jme_init_one(struct pci_dev *pdev,
/*
* set up PCI device basics
*/
+ pci_disable_link_state(pdev, PCIE_LINK_STATE_L0S | PCIE_LINK_STATE_L1 |
+ PCIE_LINK_STATE_CLKPM);
+
rc = pci_enable_device(pdev);
if (rc) {
pr_err("Cannot enable PCI device\n");