Skip to content

Commit 1922a6d

Browse files
davejiangdjbw
authored andcommitted
cxl: remove unnecessary calling of pci_enable_pcie_error_reporting()
With this [1] commit upstream, pci_enable_pci_error_report() is no longer necessary for the driver to call. Remove call and related cleanups. [1]: f26e58b ("PCI/AER: Enable error reporting when AER is native") Signed-off-by: Dave Jiang <[email protected]> Link: https://lore.kernel.org/r/167632012093.4153151.5360778069735064322.stgit@djiang5-mobl3.local Signed-off-by: Dan Williams <[email protected]>
1 parent af73370 commit 1922a6d

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

drivers/cxl/pci.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -412,11 +412,6 @@ static bool is_cxl_restricted(struct pci_dev *pdev)
412412
return pci_pcie_type(pdev) == PCI_EXP_TYPE_RC_END;
413413
}
414414

415-
static void disable_aer(void *pdev)
416-
{
417-
pci_disable_pcie_error_reporting(pdev);
418-
}
419-
420415
static int cxl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
421416
{
422417
struct cxl_register_map map;
@@ -494,12 +489,6 @@ static int cxl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
494489
if (IS_ERR(cxlmd))
495490
return PTR_ERR(cxlmd);
496491

497-
if (cxlds->regs.ras) {
498-
pci_enable_pcie_error_reporting(pdev);
499-
rc = devm_add_action_or_reset(&pdev->dev, disable_aer, pdev);
500-
if (rc)
501-
return rc;
502-
}
503492
pci_save_state(pdev);
504493

505494
return rc;

0 commit comments

Comments
 (0)