OpenCloudOS-Kernel/drivers/scsi/lpfc
Kairui Song 49b91dfd06 PCI/AER: Rationalize error status register clearing
commit 894020fdd8 upstream.

Conflicts:
  - Minor refractor due to code differences, Thanks to Katrin
  - Introduce an compact helper in include/linux/aer
    Too many 3rd part modules depend on this symbol, it can break
    easily later if we drop in some other modules, so use a
    function as alias. We may make is a GPL_SYMBOL later.

The AER interfaces to clear error status registers were a confusing mess:

	- pci_cleanup_aer_uncorrect_error_status() cleared non-fatal errors
	from the Uncorrectable Error Status register.

	- pci_aer_clear_fatal_status() cleared fatal errors from the
	Uncorrectable Error Status register.

	- pci_cleanup_aer_error_status_regs() cleared the Root Error Status
	register (for Root Ports), the Uncorrectable Error Status register,
	and the Correctable Error Status register.

Rename them to make them consistent:

	From                                     To
	---------------------------------------- -------------------------------
	pci_cleanup_aer_uncorrect_error_status() pci_aer_clear_nonfatal_status()
	pci_aer_clear_fatal_status()             pci_aer_clear_fatal_status()
	pci_cleanup_aer_error_status_regs()      pci_aer_clear_status()

Since pci_cleanup_aer_error_status_regs() (renamed to
pci_aer_clear_status()) is only used within drivers/pci/, move the
declaration from <linux/aer.h> to drivers/pci/pci.h.

[bhelgaas: commit log, add renames]
Link: https://lore.kernel.org/r/d1310a75dc3d28f7e8da4e99c45fbd3e60fe238e.1585000084.git.sathyanarayanan.kuppuswamy@linux.intel.com
Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Kairui Song <kasong@tencent.com>
Signed-off-by: Xinghui Li <korantli@tencent.com>
2024-06-11 21:10:54 +08:00
..
COPYING ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
ChangeLog ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
GNUmakefile ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
Makefile ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lpfc.h ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lpfc_attr.c PCI/AER: Rationalize error status register clearing 2024-06-11 21:10:54 +08:00
lpfc_attr.h ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lpfc_auth.c ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lpfc_auth.h ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lpfc_bsg.c ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lpfc_bsg.h ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lpfc_compat.h ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lpfc_crtn.h ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lpfc_ct.c ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lpfc_debugfs.c ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lpfc_debugfs.h ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lpfc_disc.h ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lpfc_els.c ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lpfc_hbadisc.c ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lpfc_hw.h ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lpfc_hw4.h ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lpfc_ids.h ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lpfc_init.c ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lpfc_logmsg.h ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lpfc_mbox.c ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lpfc_mem.c ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lpfc_nl.h ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lpfc_nportdisc.c ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lpfc_nvme.c ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lpfc_nvme.h ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lpfc_nvmet.c ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lpfc_nvmet.h ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lpfc_scsi.c ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lpfc_scsi.h ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lpfc_sli.c ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lpfc_sli.h ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lpfc_sli4.h ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lpfc_version.h ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lpfc_vport.c ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lpfc_vport.h ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00