Skip to content

Commit 3ba180c

Browse files
damien-lemoalLorenzo Pieralisi
authored andcommitted
PCI: tegra194: Use INTX instead of legacy
In the Designware tegra194 controller driver, change all names using "legacy" to use "intx", to match the term used in the PCI specifications. Link: https://lore.kernel.org/r/20231122060406.14695-13-dlemoal@kernel.org Signed-off-by: Damien Le Moal <dlemoal@kernel.org> Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
1 parent 1b79b2a commit 3ba180c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/pci/controller/dwc/pcie-tegra194.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -773,13 +773,13 @@ static void tegra_pcie_enable_system_interrupts(struct dw_pcie_rp *pp)
773773
val_w);
774774
}
775775

776-
static void tegra_pcie_enable_legacy_interrupts(struct dw_pcie_rp *pp)
776+
static void tegra_pcie_enable_intx_interrupts(struct dw_pcie_rp *pp)
777777
{
778778
struct dw_pcie *pci = to_dw_pcie_from_pp(pp);
779779
struct tegra_pcie_dw *pcie = to_tegra_pcie(pci);
780780
u32 val;
781781

782-
/* Enable legacy interrupt generation */
782+
/* Enable INTX interrupt generation */
783783
val = appl_readl(pcie, APPL_INTR_EN_L0_0);
784784
val |= APPL_INTR_EN_L0_0_SYS_INTR_EN;
785785
val |= APPL_INTR_EN_L0_0_INT_INT_EN;
@@ -830,7 +830,7 @@ static void tegra_pcie_enable_interrupts(struct dw_pcie_rp *pp)
830830
appl_writel(pcie, 0xFFFFFFFF, APPL_INTR_STATUS_L1_17);
831831

832832
tegra_pcie_enable_system_interrupts(pp);
833-
tegra_pcie_enable_legacy_interrupts(pp);
833+
tegra_pcie_enable_intx_interrupts(pp);
834834
if (IS_ENABLED(CONFIG_PCI_MSI))
835835
tegra_pcie_enable_msi_interrupts(pp);
836836
}
@@ -1947,7 +1947,7 @@ static irqreturn_t tegra_pcie_ep_pex_rst_irq(int irq, void *arg)
19471947
return IRQ_HANDLED;
19481948
}
19491949

1950-
static int tegra_pcie_ep_raise_legacy_irq(struct tegra_pcie_dw *pcie, u16 irq)
1950+
static int tegra_pcie_ep_raise_intx_irq(struct tegra_pcie_dw *pcie, u16 irq)
19511951
{
19521952
/* Tegra194 supports only INTA */
19531953
if (irq > 1)
@@ -1986,7 +1986,7 @@ static int tegra_pcie_ep_raise_irq(struct dw_pcie_ep *ep, u8 func_no,
19861986

19871987
switch (type) {
19881988
case PCI_IRQ_INTX:
1989-
return tegra_pcie_ep_raise_legacy_irq(pcie, interrupt_num);
1989+
return tegra_pcie_ep_raise_intx_irq(pcie, interrupt_num);
19901990

19911991
case PCI_IRQ_MSI:
19921992
return tegra_pcie_ep_raise_msi_irq(pcie, interrupt_num);

0 commit comments

Comments
 (0)