|
@@ -30,6 +30,8 @@ struct device_node;
|
|
|
|
|
|
#ifdef CONFIG_EEH
|
|
|
|
|
|
+extern int eeh_subsystem_enabled;
|
|
|
+
|
|
|
/* Values for eeh_mode bits in device_node */
|
|
|
#define EEH_MODE_SUPPORTED (1<<0)
|
|
|
#define EEH_MODE_NOCHECK (1<<1)
|
|
@@ -75,7 +77,7 @@ void eeh_remove_device(struct pci_dev *);
|
|
|
* If this macro yields TRUE, the caller relays to eeh_check_failure()
|
|
|
* which does further tests out of line.
|
|
|
*/
|
|
|
-#define EEH_POSSIBLE_ERROR(val, type) ((val) == (type)~0)
|
|
|
+#define EEH_POSSIBLE_ERROR(val, type) ((val) == (type)~0 && eeh_subsystem_enabled)
|
|
|
|
|
|
/*
|
|
|
* Reads from a device which has been isolated by EEH will return
|