Skip to content

Commit 1d86abf

Browse files
paliLorenzo Pieralisi
authored andcommitted
PCI: aardvark: Replace custom PCIE_CORE_INT_* macros with PCI_INTERRUPT_*
Header file linux/pci.h defines enum pci_interrupt_pin with corresponding PCI_INTERRUPT_* values. Link: https://lore.kernel.org/r/20220110015018.26359-2-kabel@kernel.org Signed-off-by: Pali Rohár <pali@kernel.org> Signed-off-by: Marek Behún <kabel@kernel.org> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Reviewed-by: Bjorn Helgaas <bhelgaas@google.com>
1 parent e783362 commit 1d86abf

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

drivers/pci/controller/pci-aardvark.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@
3838
#define PCIE_CORE_ERR_CAPCTL_ECRC_CHK_TX_EN BIT(6)
3939
#define PCIE_CORE_ERR_CAPCTL_ECRC_CHCK BIT(7)
4040
#define PCIE_CORE_ERR_CAPCTL_ECRC_CHCK_RCV BIT(8)
41-
#define PCIE_CORE_INT_A_ASSERT_ENABLE 1
42-
#define PCIE_CORE_INT_B_ASSERT_ENABLE 2
43-
#define PCIE_CORE_INT_C_ASSERT_ENABLE 3
44-
#define PCIE_CORE_INT_D_ASSERT_ENABLE 4
4541
/* PIO registers base address and register offsets */
4642
#define PIO_BASE_ADDR 0x4000
4743
#define PIO_CTRL (PIO_BASE_ADDR + 0x0)
@@ -959,7 +955,7 @@ static int advk_sw_pci_bridge_init(struct advk_pcie *pcie)
959955
bridge->conf.pref_mem_limit = cpu_to_le16(PCI_PREF_RANGE_TYPE_64);
960956

961957
/* Support interrupt A for MSI feature */
962-
bridge->conf.intpin = PCIE_CORE_INT_A_ASSERT_ENABLE;
958+
bridge->conf.intpin = PCI_INTERRUPT_INTA;
963959

964960
/* Aardvark HW provides PCIe Capability structure in version 2 */
965961
bridge->pcie_conf.cap = cpu_to_le16(2);

0 commit comments

Comments
 (0)