Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 297178
b: refs/heads/master
c: 1a5c2e6
h: refs/heads/master
v: v3
  • Loading branch information
Gavin Shan authored and Benjamin Herrenschmidt committed Mar 28, 2012
1 parent 724d15f commit 3ac34b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 39baadbf36cee3ede5fdb8a34006d9109e5e2570
refs/heads/master: 1a5c2e63f497bdb5912138888053a02870ed1153
19 changes: 5 additions & 14 deletions trunk/arch/powerpc/platforms/pseries/eeh.c
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,8 @@ int __exit eeh_ops_unregister(const char *name)
*/
void __init eeh_init(void)
{
struct device_node *phb, *np;
struct pci_controller *hose, *tmp;
struct device_node *phb;
int ret;

/* call platform initialization function */
Expand All @@ -1000,19 +1001,9 @@ void __init eeh_init(void)

raw_spin_lock_init(&confirm_error_lock);

np = of_find_node_by_path("/rtas");
if (np == NULL)
return;

/* Enable EEH for all adapters. Note that eeh requires buid's */
for (phb = of_find_node_by_name(NULL, "pci"); phb;
phb = of_find_node_by_name(phb, "pci")) {
unsigned long buid;

buid = get_phb_buid(phb);
if (buid == 0 || !of_node_to_eeh_dev(phb))
continue;

/* Enable EEH for all adapters */
list_for_each_entry_safe(hose, tmp, &hose_list, list_node) {
phb = hose->dn;
traverse_pci_devices(phb, eeh_early_enable, NULL);
}

Expand Down

0 comments on commit 3ac34b8

Please sign in to comment.