PCI/AER: Factor out interrupt toggling into helpers
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Fri, 12 May 2023 00:00:12 +0000 (08:00 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 25 Oct 2023 22:25:23 +0000 (17:25 -0500)
commit13cf36c648df0c7de6b74ca7163713d8fcae53e2
tree3e9e8d7fbae5ce317cd824cd2c3286887ed3f278
parent0bb80ecc33a8fb5a682236443c1e740d5c917d1d
PCI/AER: Factor out interrupt toggling into helpers

There are many places that enable and disable AER interrupt, so move
them into helpers.

Link: https://lore.kernel.org/r/20230512000014.118942-1-kai.heng.feng@canonical.com
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/pci/pcie/aer.c