Linux CXL
 help / color / mirror / Atom feed
* [PATCH] cxl: remove unnecessary calling of pci_enable_pcie_error_reporting()
@ 2023-02-13 20:28 Dave Jiang
  2023-02-14  1:22 ` Dan Williams
  0 siblings, 1 reply; 4+ messages in thread
From: Dave Jiang @ 2023-02-13 20:28 UTC (permalink / raw)
  To: linux-cxl; +Cc: dan.j.williams, bhelgaas, ira.weiny, Jonathan.Cameron, lukas

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]: f26e58bf6f54 ("PCI/AER: Enable error reporting when AER is native")

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
---
 drivers/cxl/pci.c |   11 -----------
 1 file changed, 11 deletions(-)

diff --git a/drivers/cxl/pci.c b/drivers/cxl/pci.c
index 4cf9a2191602..c87340095a8a 100644
--- a/drivers/cxl/pci.c
+++ b/drivers/cxl/pci.c
@@ -412,11 +412,6 @@ static bool is_cxl_restricted(struct pci_dev *pdev)
 	return pci_pcie_type(pdev) == PCI_EXP_TYPE_RC_END;
 }
 
-static void disable_aer(void *pdev)
-{
-	pci_disable_pcie_error_reporting(pdev);
-}
-
 static void free_event_buf(void *buf)
 {
 	kvfree(buf);
@@ -733,12 +728,6 @@ static int cxl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
 	if (rc)
 		return rc;
 
-	if (cxlds->regs.ras) {
-		pci_enable_pcie_error_reporting(pdev);
-		rc = devm_add_action_or_reset(&pdev->dev, disable_aer, pdev);
-		if (rc)
-			return rc;
-	}
 	pci_save_state(pdev);
 
 	return rc;



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-02-14 16:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-13 20:28 [PATCH] cxl: remove unnecessary calling of pci_enable_pcie_error_reporting() Dave Jiang
2023-02-14  1:22 ` Dan Williams
2023-02-14  3:59   ` Dave Jiang
2023-02-14 16:53     ` Dave Jiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox