projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d528682
)
rtw88: 8821ce: Disable PCIe ASPM L1 for 8821CE using chip ID
author
Jimmy Hon
<honyuenkwun@gmail.com>
Thu, 7 Apr 2022 07:51:23 +0000
(
02:51
-0500)
committer
Kalle Valo
<kvalo@kernel.org>
Tue, 12 Apr 2022 13:52:54 +0000
(16:52 +0300)
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
drivers/net/wireless/realtek/rtw88/pci.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/realtek/rtw88/pci.c
b/drivers/net/wireless/realtek/rtw88/pci.c
index
8e122e1
..
33042b6
100644
(file)
--- 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);