]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
r8169: Enable chip-specific ASPM regardless of PCIe ASPM status
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Mon, 11 Oct 2021 04:16:25 +0000 (12:16 +0800)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 7 Dec 2021 06:32:19 +0000 (07:32 +0100)
commite71bf686774189367e8c24142a4cf4ae3fdac7ff
tree8e4f1b2ab999b0bd3d48dbb70ed486478d8e14a1
parent7ae78a34d5e7396ba64a401bd1ff1cfec393ca43
r8169: Enable chip-specific ASPM regardless of PCIe ASPM status

BugLink: https://bugs.launchpad.net/bugs/1946433
To really enable ASPM on r8169 NICs, both standard PCIe ASPM and
chip-specific ASPM have to be enabled at the same time.

Since PCIe ASPM can be enabled or disabled vis sysfs and there's no
mechanism to notify driver about ASPM change, unconditionally enable
chip-specific ASPM to make ASPM really take into effect.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
(cherry picked from
https://patchwork.ozlabs.org/project/linux-pci/patch/20211007161552.272771-3-kai.heng.feng@canonical.com/)
Signed-off-by: Chia-Lin Kao (AceLan) <acelan.kao@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
drivers/net/ethernet/realtek/r8169_main.c