Message ID | 20191120012859.23300-17-oohall@gmail.com (mailing list archive) |
---|---|
State | RFC |
Headers | show |
Series | [Very,RFC,01/46] powerpc/eeh: Don't attempt to restore VF config space after reset | expand |
On 20/11/2019 12:28, Oliver O'Halloran wrote: > Neaten things up a bit and remove a pci_dn use. > > Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru> but it also could be merged into some bigger patch, it is hardly useful on its own. > --- > arch/powerpc/platforms/powernv/eeh-powernv.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/arch/powerpc/platforms/powernv/eeh-powernv.c b/arch/powerpc/platforms/powernv/eeh-powernv.c > index aaccb3768393..f58fe6bda46e 100644 > --- a/arch/powerpc/platforms/powernv/eeh-powernv.c > +++ b/arch/powerpc/platforms/powernv/eeh-powernv.c > @@ -1001,10 +1001,8 @@ static void pnv_eeh_wait_for_pending(struct eeh_dev *edev, const char *type, > msleep((1 << i) * 100); > } > > - pr_warn("%s: Pending transaction while issuing %sFLR to %04x:%02x:%02x.%01x\n", > - __func__, type, > - pdn->phb->global_number, pdn->busno, > - PCI_SLOT(pdn->devfn), PCI_FUNC(pdn->devfn)); > + eeh_edev_warn(edev, "%s: Pending transaction while issuing %sFLR\n", > + __func__, type); > } > > static int pnv_eeh_do_flr(struct eeh_dev *edev, int option) >
diff --git a/arch/powerpc/platforms/powernv/eeh-powernv.c b/arch/powerpc/platforms/powernv/eeh-powernv.c index aaccb3768393..f58fe6bda46e 100644 --- a/arch/powerpc/platforms/powernv/eeh-powernv.c +++ b/arch/powerpc/platforms/powernv/eeh-powernv.c @@ -1001,10 +1001,8 @@ static void pnv_eeh_wait_for_pending(struct eeh_dev *edev, const char *type, msleep((1 << i) * 100); } - pr_warn("%s: Pending transaction while issuing %sFLR to %04x:%02x:%02x.%01x\n", - __func__, type, - pdn->phb->global_number, pdn->busno, - PCI_SLOT(pdn->devfn), PCI_FUNC(pdn->devfn)); + eeh_edev_warn(edev, "%s: Pending transaction while issuing %sFLR\n", + __func__, type); } static int pnv_eeh_do_flr(struct eeh_dev *edev, int option)
Neaten things up a bit and remove a pci_dn use. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> --- arch/powerpc/platforms/powernv/eeh-powernv.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)