Commit 7474ef6f authored by Anton Blanchard's avatar Anton Blanchard

ppc64: fixes for pci_name() changes

parent 9b3fd877
...@@ -115,8 +115,17 @@ unsigned long eeh_check_failure(void *token, unsigned long val) ...@@ -115,8 +115,17 @@ unsigned long eeh_check_failure(void *token, unsigned long val)
ret = rtas_call(ibm_read_slot_reset_state, 3, 3, rets, ret = rtas_call(ibm_read_slot_reset_state, 3, 3, rets,
dn->eeh_config_addr, BUID_HI(dn->phb->buid), BUID_LO(dn->phb->buid)); dn->eeh_config_addr, BUID_HI(dn->phb->buid), BUID_LO(dn->phb->buid));
if (ret == 0 && rets[1] == 1 && rets[0] >= 2) { if (ret == 0 && rets[1] == 1 && rets[0] >= 2) {
panic("EEH: MMIO failure (%ld) on device:\n %s %s\n", /*
rets[0], pci_name(dev), dev->dev.name); * XXX We should create a separate sysctl for this.
*
* Since the panic_on_oops sysctl is used to halt
* the system in light of potential corruption, we
* can use it here.
*/
if (panic_on_oops)
panic("EEH: MMIO failure (%ld) on device:\n%s\n", rets[0], pci_name(dev));
else
printk("EEH: MMIO failure (%ld) on device:\n%s\n", rets[0], pci_name(dev));
} }
} }
eeh_false_positives++; eeh_false_positives++;
......
...@@ -427,6 +427,7 @@ unsigned long __init find_and_init_phbs(void) ...@@ -427,6 +427,7 @@ unsigned long __init find_and_init_phbs(void)
void pcibios_name_device(struct pci_dev *dev) void pcibios_name_device(struct pci_dev *dev)
{ {
#if 0
struct device_node *dn; struct device_node *dn;
/* /*
...@@ -446,6 +447,7 @@ void pcibios_name_device(struct pci_dev *dev) ...@@ -446,6 +447,7 @@ void pcibios_name_device(struct pci_dev *dev)
} }
} }
} }
#endif
} }
void __init pcibios_fixup_device_resources(struct pci_dev *dev, void __init pcibios_fixup_device_resources(struct pci_dev *dev,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment