PCI/AER: Simplify AER_RECOVER_RING_SIZE definition
authorBjorn Helgaas <bhelgaas@google.com>
Wed, 27 May 2020 21:01:48 +0000 (16:01 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 25 Aug 2023 13:15:18 +0000 (08:15 -0500)
commit95881c86c987eb73936e5eb3cf93b9b17d137d5a
tree15eff69ae28d23c6f36dd66200d01c543229e7ef
parent32e2a3f938f6a170dec86acca5fa9810d33552f8
PCI/AER: Simplify AER_RECOVER_RING_SIZE definition

ACPI Platform Error Interfaces (APEI) convey error information to the OS.
If the APEI GHES driver receives information about PCI errors, it queues it
in aer_recover_ring for processing by the PCI AER code.

AER_RECOVER_RING_SIZE is the size of the aer_recover_ring FIFO and is
arbitrary, with no direct connection to hardware.

AER_RECOVER_RING_ORDER was only used to compute AER_RECOVER_RING_SIZE.
Remove it and define AER_RECOVER_RING_SIZE directly.  No functional change
intended.

Link: https://lore.kernel.org/r/20230824193712.542167-7-helgaas@kernel.org
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/pci/pcie/aer.c