powerpc/powernv/pci: Drop VF MPS fixup

The MPS field in the VF config space is marked as reserved in current
versions of the SR-IOV spec. In other words, this fixup doesn't do
anything.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200902035159.1762596-1-oohall@gmail.com
This commit is contained in:
Oliver O'Halloran 2020-09-02 13:51:59 +10:00 committed by Michael Ellerman
parent ad91f66f5f
commit a5d28039ec

View File

@ -1641,24 +1641,6 @@ static struct eeh_ops pnv_eeh_ops = {
.notify_resume = NULL
};
#ifdef CONFIG_PCI_IOV
static void pnv_pci_fixup_vf_mps(struct pci_dev *pdev)
{
struct pci_dn *pdn = pci_get_pdn(pdev);
int parent_mps;
if (!pdev->is_virtfn)
return;
/* Synchronize MPS for VF and PF */
parent_mps = pcie_get_mps(pdev->physfn);
if ((128 << pdev->pcie_mpss) >= parent_mps)
pcie_set_mps(pdev, parent_mps);
pdn->mps = pcie_get_mps(pdev);
}
DECLARE_PCI_FIXUP_HEADER(PCI_ANY_ID, PCI_ANY_ID, pnv_pci_fixup_vf_mps);
#endif /* CONFIG_PCI_IOV */
/**
* eeh_powernv_init - Register platform dependent EEH operations
*