powerpc/eeh: Improve debug messages around device addition
Also remove useless comment. Signed-off-by: Sam Bobroff <sbobroff@linux.ibm.com> Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/59db84f4bf94718a12f206bc923ac797d47e4cc1.1565930772.git.sbobroff@linux.ibm.com
This commit is contained in:

gecommit door
Michael Ellerman

bovenliggende
aa06e3d60e
commit
617082a481
@@ -44,10 +44,7 @@ void pnv_pcibios_bus_add_device(struct pci_dev *pdev)
|
||||
if (!pdev->is_virtfn)
|
||||
return;
|
||||
|
||||
/*
|
||||
* The following operations will fail if VF's sysfs files
|
||||
* aren't created or its resources aren't finalized.
|
||||
*/
|
||||
pr_debug("%s: EEH: Setting up device %s.\n", __func__, pci_name(pdev));
|
||||
eeh_add_device_early(pdn);
|
||||
eeh_add_device_late(pdev);
|
||||
eeh_sysfs_add_device(pdev);
|
||||
@@ -364,6 +361,10 @@ static void *pnv_eeh_probe(struct pci_dn *pdn, void *data)
|
||||
int ret;
|
||||
int config_addr = (pdn->busno << 8) | (pdn->devfn);
|
||||
|
||||
pr_debug("%s: probing %04x:%02x:%02x.%01x\n",
|
||||
__func__, hose->global_number, pdn->busno,
|
||||
PCI_SLOT(pdn->devfn), PCI_FUNC(pdn->devfn));
|
||||
|
||||
/*
|
||||
* When probing the root bridge, which doesn't have any
|
||||
* subordinate PCI devices. We don't have OF node for
|
||||
@@ -458,6 +459,11 @@ static void *pnv_eeh_probe(struct pci_dn *pdn, void *data)
|
||||
/* Save memory bars */
|
||||
eeh_save_bars(edev);
|
||||
|
||||
pr_debug("%s: EEH enabled on %02x:%02x.%01x PHB#%x-PE#%x\n",
|
||||
__func__, pdn->busno, PCI_SLOT(pdn->devfn),
|
||||
PCI_FUNC(pdn->devfn), edev->pe->phb->global_number,
|
||||
edev->pe->addr);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Verwijs in nieuw issue
Block a user