PCI/AER: Factor COR/UNCOR error handling out from aer_isr_one_error()
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 22 May 2025 23:21:09 +0000 (18:21 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 23 May 2025 16:00:01 +0000 (11:00 -0500)
commit6fc4dae74afcf29ef82afbaaa9b082893871eda4
tree29c6ca4c533bf6977ff0b91838f1bfd4990285ae
parenta0b62cc310239c7f1323fb20bd3789f21bdd8615
PCI/AER: Factor COR/UNCOR error handling out from aer_isr_one_error()

aer_isr_one_error() duplicates the Error Source ID logging and AER error
processing for Correctable Errors and Uncorrectable Errors.  Factor out the
duplicated code to aer_isr_one_error_type().

aer_isr_one_error() doesn't need the struct aer_rpc pointer, so pass it the
Root Port or RCEC pci_dev pointer instead.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Link: https://patch.msgid.link/20250522232339.1525671-4-helgaas@kernel.org
drivers/pci/pcie/aer.c