diff options
author | Jimmy Hon <honyuenkwun@gmail.com> | 2022-04-07 10:51:23 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2022-04-12 16:52:54 +0300 |
commit | b9eb5f0742d107ca9c0f33da58f61ce83e3ce2fc (patch) | |
tree | c1bdc0881f76409bf592256a894d9d720ea00f6f | |
parent | d5286826201ec226a683964122e207be60f62fbf (diff) | |
download | linux-b9eb5f0742d107ca9c0f33da58f61ce83e3ce2fc.tar.xz |
rtw88: 8821ce: Disable PCIe ASPM L1 for 8821CE using chip ID
Make workaround work for other 8821CE devices with different PCI ID
Signed-off-by: Jimmy Hon <honyuenkwun@gmail.com>
Reviewed-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220407075123.420696-3-honyuenkwun@gmail.com
-rw-r--r-- | drivers/net/wireless/realtek/rtw88/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/realtek/rtw88/pci.c b/drivers/net/wireless/realtek/rtw88/pci.c index 8e122e121e85..33042b63a151 100644 --- a/drivers/net/wireless/realtek/rtw88/pci.c +++ b/drivers/net/wireless/realtek/rtw88/pci.c @@ -1773,7 +1773,7 @@ int rtw_pci_probe(struct pci_dev *pdev, } /* Disable PCIe ASPM L1 while doing NAPI poll for 8821CE */ - if (pdev->device == 0xc821 && bridge->vendor == PCI_VENDOR_ID_INTEL) + if (rtwdev->chip->id == RTW_CHIP_TYPE_8821C && bridge->vendor == PCI_VENDOR_ID_INTEL) rtwpci->rx_no_aspm = true; rtw_pci_phy_cfg(rtwdev); |