powerpc/powernv: Include VF PE in PELTV of PF PE
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Mon, 22 Jun 2015 03:45:47 +0000 (13:45 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 13 Jul 2015 06:12:22 +0000 (16:12 +1000)
The PELTV of PF PE should include VF PE, which is missed by current
code, so that the VF PE is frozen automatically when freezing PF PE.
The patch fixes the PELTV of PF PE to include VF PE.

Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/pci-ioda.c

index 70641617ff20d59d216e6cdc453bb12bb5549099..e1ea449e481181b735f0c55f6b3b84d806323d11 100644 (file)
@@ -622,7 +622,7 @@ static int pnv_ioda_set_peltv(struct pnv_phb *phb,
                pdev = pe->pdev->bus->self;
 #ifdef CONFIG_PCI_IOV
        else if (pe->flags & PNV_IODA_PE_VF)
-               pdev = pe->parent_dev->bus->self;
+               pdev = pe->parent_dev;
 #endif /* CONFIG_PCI_IOV */
        while (pdev) {
                struct pci_dn *pdn = pci_get_pdn(pdev);