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
This commit is contained in:
parent
d528682620
commit
b9eb5f0742
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user