aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac/e752x_edac.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/edac/e752x_edac.c')
-rw-r--r--drivers/edac/e752x_edac.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/drivers/edac/e752x_edac.c b/drivers/edac/e752x_edac.c
index 12e7677b834b..c94a0eb492cb 100644
--- a/drivers/edac/e752x_edac.c
+++ b/drivers/edac/e752x_edac.c
@@ -1117,16 +1117,6 @@ static int e752x_probe1(struct pci_dev *pdev, int dev_idx)
1117 debugf0("%s(): mci\n", __func__); 1117 debugf0("%s(): mci\n", __func__);
1118 debugf0("Starting Probe1\n"); 1118 debugf0("Starting Probe1\n");
1119 1119
1120 /* make sure error reporting method is sane */
1121 switch (edac_op_state) {
1122 case EDAC_OPSTATE_POLL:
1123 case EDAC_OPSTATE_NMI:
1124 break;
1125 default:
1126 edac_op_state = EDAC_OPSTATE_POLL;
1127 break;
1128 }
1129
1130 /* check to see if device 0 function 1 is enabled; if it isn't, we 1120 /* check to see if device 0 function 1 is enabled; if it isn't, we
1131 * assume the BIOS has reserved it for a reason and is expecting 1121 * assume the BIOS has reserved it for a reason and is expecting
1132 * exclusive access, we take care not to violate that assumption and 1122 * exclusive access, we take care not to violate that assumption and
@@ -1303,6 +1293,10 @@ static int __init e752x_init(void)
1303 int pci_rc; 1293 int pci_rc;
1304 1294
1305 debugf3("%s()\n", __func__); 1295 debugf3("%s()\n", __func__);
1296
1297 /* Ensure that the OPSTATE is set correctly for POLL or NMI */
1298 opstate_init();
1299
1306 pci_rc = pci_register_driver(&e752x_driver); 1300 pci_rc = pci_register_driver(&e752x_driver);
1307 return (pci_rc < 0) ? pci_rc : 0; 1301 return (pci_rc < 0) ? pci_rc : 0;
1308} 1302}
@@ -1323,6 +1317,7 @@ MODULE_DESCRIPTION("MC support for Intel e752x/3100 memory controllers");
1323module_param(force_function_unhide, int, 0444); 1317module_param(force_function_unhide, int, 0444);
1324MODULE_PARM_DESC(force_function_unhide, "if BIOS sets Dev0:Fun1 up as hidden:" 1318MODULE_PARM_DESC(force_function_unhide, "if BIOS sets Dev0:Fun1 up as hidden:"
1325 " 1=force unhide and hope BIOS doesn't fight driver for Dev0:Fun1 access"); 1319 " 1=force unhide and hope BIOS doesn't fight driver for Dev0:Fun1 access");
1320
1326module_param(edac_op_state, int, 0444); 1321module_param(edac_op_state, int, 0444);
1327MODULE_PARM_DESC(edac_op_state, "EDAC Error Reporting state: 0=Poll,1=NMI"); 1322MODULE_PARM_DESC(edac_op_state, "EDAC Error Reporting state: 0=Poll,1=NMI");
1328 1323