Skip to content

Commit 671646c

Browse files
khfengdavem330
authored andcommitted
r8169: Don't disable ASPM in the driver
Enable or disable ASPM should be done in PCI core instead of in the device driver. Commit ba04c7c ("r8169: disable ASPM") uses pci_disable_link_state() to disable ASPM, but it's not the best way to do it. If the device really wants to disable ASPM, we can use a quirk in PCI core to prevent the PCI core from setting ASPM before probe. Let's remove pci_disable_link_state() for now. Use PCI core quirks if any regression happens. Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent cadefe5 commit 671646c

File tree

1 file changed

+0
-6
lines changed
  • drivers/net/ethernet/realtek

1 file changed

+0
-6
lines changed

drivers/net/ethernet/realtek/r8169.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#include <linux/dma-mapping.h>
2626
#include <linux/pm_runtime.h>
2727
#include <linux/firmware.h>
28-
#include <linux/pci-aspm.h>
2928
#include <linux/prefetch.h>
3029
#include <linux/ipv6.h>
3130
#include <net/ip6_checksum.h>
@@ -7647,11 +7646,6 @@ static int rtl_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
76477646
mii->reg_num_mask = 0x1f;
76487647
mii->supports_gmii = cfg->has_gmii;
76497648

7650-
/* disable ASPM completely as that cause random device stop working
7651-
* problems as well as full system hangs for some PCIe devices users */
7652-
pci_disable_link_state(pdev, PCIE_LINK_STATE_L0S | PCIE_LINK_STATE_L1 |
7653-
PCIE_LINK_STATE_CLKPM);
7654-
76557649
/* enable device (incl. PCI PM wakeup and hotplug setup) */
76567650
rc = pcim_enable_device(pdev);
76577651
if (rc < 0) {

0 commit comments

Comments
 (0)