Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a7fb7ea76e20740c641a9b5401ef45b3b022cb69
Commit:     a7fb7ea76e20740c641a9b5401ef45b3b022cb69
Parent:     576e393e74e58bd4c949d551a3340accc8dbab0f
Author:     Linas Vepstas <[EMAIL PROTECTED]>
AuthorDate: Fri Aug 10 09:27:00 2007 +1000
Committer:  Paul Mackerras <[EMAIL PROTECTED]>
CommitDate: Tue Oct 2 22:09:56 2007 +1000

    [POWERPC] pseries: device node status can be "ok" or "okay"
    
    It seems that some versions of firmware will report a device
    node status as the string "okay". As we are not expecting this
    string, the device node will be ignored by the EEH subsystem.
    Which means EEH will not be enabled.
    
    When EEH is not enabled, PCI errors will be converted into
    Machine Check exceptions, and we'll have a very unhappy system.
    
    Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>
---
 arch/powerpc/platforms/pseries/eeh.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/platforms/pseries/eeh.c 
b/arch/powerpc/platforms/pseries/eeh.c
index b242c6c..22322b3 100644
--- a/arch/powerpc/platforms/pseries/eeh.c
+++ b/arch/powerpc/platforms/pseries/eeh.c
@@ -955,7 +955,7 @@ static void *early_enable_eeh(struct device_node *dn, void 
*data)
        pdn->eeh_freeze_count = 0;
        pdn->eeh_false_positives = 0;
 
-       if (status && strcmp(status, "ok") != 0)
+       if (status && strncmp(status, "ok", 2) != 0)
                return NULL;    /* ignore devices with bad status */
 
        /* Ignore bad nodes. */
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to