diff options
author | Linas Vepstas <linas@austin.ibm.com> | 2007-08-09 19:27:00 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-10-02 08:09:56 -0400 |
commit | a7fb7ea76e20740c641a9b5401ef45b3b022cb69 (patch) | |
tree | d626bf86f098c3513fa1632ad6cb37a72830ef26 /arch/powerpc/platforms | |
parent | 576e393e74e58bd4c949d551a3340accc8dbab0f (diff) |
[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 <linas@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | 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 b242c6c34f81..22322b35a0ff 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) | |||
955 | pdn->eeh_freeze_count = 0; | 955 | pdn->eeh_freeze_count = 0; |
956 | pdn->eeh_false_positives = 0; | 956 | pdn->eeh_false_positives = 0; |
957 | 957 | ||
958 | if (status && strcmp(status, "ok") != 0) | 958 | if (status && strncmp(status, "ok", 2) != 0) |
959 | return NULL; /* ignore devices with bad status */ | 959 | return NULL; /* ignore devices with bad status */ |
960 | 960 | ||
961 | /* Ignore bad nodes. */ | 961 | /* Ignore bad nodes. */ |