Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 876bb331 authored by Borislav Petkov's avatar Borislav Petkov Committed by Borislav Petkov
Browse files

EDAC: Respect operational state in edac_pci.c



Currently, we unconditionally enable PCI polling and we don't look at
the edac_op_state module parameter. Make this dependent on the parameter
setting supplied on the command line.

Signed-off-by: default avatarBorislav Petkov <borislav.petkov@amd.com>
parent 9489e9dc
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -470,6 +470,7 @@ struct edac_pci_ctl_info *edac_pci_create_generic_ctl(struct device *dev,

	pci->mod_name = mod_name;
	pci->ctl_name = EDAC_PCI_GENCTL_NAME;
	if (edac_op_state == EDAC_OPSTATE_POLL)
		pci->edac_check = edac_pci_generic_check;

	pdata->edac_idx = edac_pci_idx++;