Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5305af02 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "PCI: Configure RC MPS to 128 for Realtek 8168 attach"

parents 1cf266a8 eaecb547
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -2415,6 +2415,20 @@ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_CK804_PCIE,
DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_NVIDIA,  PCI_DEVICE_ID_NVIDIA_CK804_PCIE,
			quirk_nvidia_ck804_pcie_aer_ext_cap);

/*
 * Quirk to limit QCOM RC MPS to 128 in case of Realtek 8168
 * attaches.
 */
static void quirk_realtek_rc_mpss_limit(struct pci_dev *pdev)
{
	struct pci_dev *root_port = pcie_find_root_port(pdev);

	if (root_port->vendor  == PCI_VENDOR_ID_QCOM)
		pcie_set_mps(root_port, 128);
}
DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_REALTEK, 0x8168,
			quirk_realtek_rc_mpss_limit);

static void quirk_via_cx700_pci_parking_caching(struct pci_dev *dev)
{
	/*