lkml.org 
[lkml]   [2005]   [Nov]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 37/42]: ppc64: set up the RTAS token just like the rest of them.
    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@austin.ibm.com>

    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@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2005-11-04 01:59    [W:0.026 / U:95.196 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site