[PATCH 37/42]: ppc64: set up the RTAS token just like the rest of them.

From: Linas Vepstas
Date: Thu Nov 03 2005 - 19:57:11 EST


237-eeh-bridge-token.patch

Minor: the rtas-bridge toekn should be set up the same way that all the
other tokens rtas tokens are set up.

Signed-off-by: Linas Vepstas <linas@xxxxxxxxxxxxxx>

Index: linux-2.6.14-git3/arch/powerpc/platforms/pseries/eeh.c
===================================================================
--- linux-2.6.14-git3.orig/arch/powerpc/platforms/pseries/eeh.c 2005-11-02 14:47:07.798456202 -0600
+++ linux-2.6.14-git3/arch/powerpc/platforms/pseries/eeh.c 2005-11-02 14:47:38.997080468 -0600
@@ -84,6 +84,7 @@
static int ibm_read_slot_reset_state2;
static int ibm_slot_error_detail;
static int ibm_get_config_addr_info;
+static int ibm_configure_bridge;

static int eeh_subsystem_enabled;

@@ -626,18 +627,14 @@
rtas_configure_bridge(struct pci_dn *pdn)
{
int config_addr;
- int token = rtas_token ("ibm,configure-bridge");
int rc;

- if (token == RTAS_UNKNOWN_SERVICE)
- return;
-
/* Use PE configuration address, if present */
config_addr = pdn->eeh_config_addr;
if (pdn->eeh_pe_config_addr)
config_addr = pdn->eeh_pe_config_addr;

- rc = rtas_call(token,3,1, NULL,
+ rc = rtas_call(ibm_configure_bridge,3,1, NULL,
config_addr,
BUID_HI(pdn->phb->buid),
BUID_LO(pdn->phb->buid));
@@ -789,6 +786,7 @@
ibm_read_slot_reset_state = rtas_token("ibm,read-slot-reset-state");
ibm_slot_error_detail = rtas_token("ibm,slot-error-detail");
ibm_get_config_addr_info = rtas_token("ibm,get-config-addr-info");
+ ibm_configure_bridge = rtas_token ("ibm,configure-bridge");

if (ibm_set_eeh_option == RTAS_UNKNOWN_SERVICE)
return;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/