Skip to content

Commit 5815c2d

Browse files
damien-lemoalLorenzo Pieralisi
authored andcommitted
PCI: rockchip-ep: Use INTX instead of legacy
Rename the function rockchip_pcie_ep_send_legacy_irq() of the rockchip endpoint driver to rockchip_pcie_ep_send_intx_irq(). Uses of the term "legacy" are also replaced with "INTX" in comments. Link: https://lore.kernel.org/r/20231122060406.14695-15-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 c0dcdee commit 5815c2d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

drivers/pci/controller/pcie-rockchip-ep.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@
2626
* @max_regions: maximum number of regions supported by hardware
2727
* @ob_region_map: bitmask of mapped outbound regions
2828
* @ob_addr: base addresses in the AXI bus where the outbound regions start
29-
* @irq_phys_addr: base address on the AXI bus where the MSI/legacy IRQ
29+
* @irq_phys_addr: base address on the AXI bus where the MSI/INTX IRQ
3030
* dedicated outbound regions is mapped.
3131
* @irq_cpu_addr: base address in the CPU space where a write access triggers
32-
* the sending of a memory write (MSI) / normal message (legacy
32+
* the sending of a memory write (MSI) / normal message (INTX
3333
* IRQ) TLP through the PCIe bus.
34-
* @irq_pci_addr: used to save the current mapping of the MSI/legacy IRQ
34+
* @irq_pci_addr: used to save the current mapping of the MSI/INTX IRQ
3535
* dedicated outbound region.
3636
* @irq_pci_fn: the latest PCI function that has updated the mapping of
37-
* the MSI/legacy IRQ dedicated outbound region.
38-
* @irq_pending: bitmask of asserted legacy IRQs.
37+
* the MSI/INTX IRQ dedicated outbound region.
38+
* @irq_pending: bitmask of asserted INTX IRQs.
3939
*/
4040
struct rockchip_pcie_ep {
4141
struct rockchip_pcie rockchip;
@@ -325,8 +325,8 @@ static void rockchip_pcie_ep_assert_intx(struct rockchip_pcie_ep *ep, u8 fn,
325325
}
326326
}
327327

328-
static int rockchip_pcie_ep_send_legacy_irq(struct rockchip_pcie_ep *ep, u8 fn,
329-
u8 intx)
328+
static int rockchip_pcie_ep_send_intx_irq(struct rockchip_pcie_ep *ep, u8 fn,
329+
u8 intx)
330330
{
331331
u16 cmd;
332332

@@ -413,7 +413,7 @@ static int rockchip_pcie_ep_raise_irq(struct pci_epc *epc, u8 fn, u8 vfn,
413413

414414
switch (type) {
415415
case PCI_IRQ_INTX:
416-
return rockchip_pcie_ep_send_legacy_irq(ep, fn, 0);
416+
return rockchip_pcie_ep_send_intx_irq(ep, fn, 0);
417417
case PCI_IRQ_MSI:
418418
return rockchip_pcie_ep_send_msi_irq(ep, fn, interrupt_num);
419419
default:

0 commit comments

Comments
 (0)