diff options
-rw-r--r-- | arch/powerpc/platforms/pseries/eeh.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/powerpc/platforms/pseries/eeh.c b/arch/powerpc/platforms/pseries/eeh.c index 4da77571288b..d8d24502970f 100644 --- a/arch/powerpc/platforms/pseries/eeh.c +++ b/arch/powerpc/platforms/pseries/eeh.c | |||
@@ -83,6 +83,7 @@ static int ibm_read_slot_reset_state; | |||
83 | static int ibm_read_slot_reset_state2; | 83 | static int ibm_read_slot_reset_state2; |
84 | static int ibm_slot_error_detail; | 84 | static int ibm_slot_error_detail; |
85 | static int ibm_get_config_addr_info; | 85 | static int ibm_get_config_addr_info; |
86 | static int ibm_configure_bridge; | ||
86 | 87 | ||
87 | int eeh_subsystem_enabled; | 88 | int eeh_subsystem_enabled; |
88 | EXPORT_SYMBOL(eeh_subsystem_enabled); | 89 | EXPORT_SYMBOL(eeh_subsystem_enabled); |
@@ -626,18 +627,14 @@ void | |||
626 | rtas_configure_bridge(struct pci_dn *pdn) | 627 | rtas_configure_bridge(struct pci_dn *pdn) |
627 | { | 628 | { |
628 | int config_addr; | 629 | int config_addr; |
629 | int token = rtas_token ("ibm,configure-bridge"); | ||
630 | int rc; | 630 | int rc; |
631 | 631 | ||
632 | if (token == RTAS_UNKNOWN_SERVICE) | ||
633 | return; | ||
634 | |||
635 | /* Use PE configuration address, if present */ | 632 | /* Use PE configuration address, if present */ |
636 | config_addr = pdn->eeh_config_addr; | 633 | config_addr = pdn->eeh_config_addr; |
637 | if (pdn->eeh_pe_config_addr) | 634 | if (pdn->eeh_pe_config_addr) |
638 | config_addr = pdn->eeh_pe_config_addr; | 635 | config_addr = pdn->eeh_pe_config_addr; |
639 | 636 | ||
640 | rc = rtas_call(token,3,1, NULL, | 637 | rc = rtas_call(ibm_configure_bridge,3,1, NULL, |
641 | config_addr, | 638 | config_addr, |
642 | BUID_HI(pdn->phb->buid), | 639 | BUID_HI(pdn->phb->buid), |
643 | BUID_LO(pdn->phb->buid)); | 640 | BUID_LO(pdn->phb->buid)); |
@@ -789,6 +786,7 @@ void __init eeh_init(void) | |||
789 | ibm_read_slot_reset_state = rtas_token("ibm,read-slot-reset-state"); | 786 | ibm_read_slot_reset_state = rtas_token("ibm,read-slot-reset-state"); |
790 | ibm_slot_error_detail = rtas_token("ibm,slot-error-detail"); | 787 | ibm_slot_error_detail = rtas_token("ibm,slot-error-detail"); |
791 | ibm_get_config_addr_info = rtas_token("ibm,get-config-addr-info"); | 788 | ibm_get_config_addr_info = rtas_token("ibm,get-config-addr-info"); |
789 | ibm_configure_bridge = rtas_token ("ibm,configure-bridge"); | ||
792 | 790 | ||
793 | if (ibm_set_eeh_option == RTAS_UNKNOWN_SERVICE) | 791 | if (ibm_set_eeh_option == RTAS_UNKNOWN_SERVICE) |
794 | return; | 792 | return; |