PCI: rockchip-ep: Use INTX instead of legacy
authorDamien Le Moal <dlemoal@kernel.org>
Wed, 22 Nov 2023 06:04:04 +0000 (15:04 +0900)
committerLorenzo Pieralisi <lpieralisi@kernel.org>
Tue, 19 Dec 2023 08:36:42 +0000 (09:36 +0100)
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>
drivers/pci/controller/pcie-rockchip-ep.c

index 95b1c8ef59c3e73db486905c8e934b8ea3a76f4f..c9046e97a1d27fe2bd93d8b60e7f354bedabcba8 100644 (file)
  * @max_regions: maximum number of regions supported by hardware
  * @ob_region_map: bitmask of mapped outbound regions
  * @ob_addr: base addresses in the AXI bus where the outbound regions start
- * @irq_phys_addr: base address on the AXI bus where the MSI/legacy IRQ
+ * @irq_phys_addr: base address on the AXI bus where the MSI/INTX IRQ
  *                dedicated outbound regions is mapped.
  * @irq_cpu_addr: base address in the CPU space where a write access triggers
- *               the sending of a memory write (MSI) / normal message (legacy
+ *               the sending of a memory write (MSI) / normal message (INTX
  *               IRQ) TLP through the PCIe bus.
- * @irq_pci_addr: used to save the current mapping of the MSI/legacy IRQ
+ * @irq_pci_addr: used to save the current mapping of the MSI/INTX IRQ
  *               dedicated outbound region.
  * @irq_pci_fn: the latest PCI function that has updated the mapping of
- *             the MSI/legacy IRQ dedicated outbound region.
- * @irq_pending: bitmask of asserted legacy IRQs.
+ *             the MSI/INTX IRQ dedicated outbound region.
+ * @irq_pending: bitmask of asserted INTX IRQs.
  */
 struct rockchip_pcie_ep {
        struct rockchip_pcie    rockchip;
@@ -325,8 +325,8 @@ static void rockchip_pcie_ep_assert_intx(struct rockchip_pcie_ep *ep, u8 fn,
        }
 }
 
-static int rockchip_pcie_ep_send_legacy_irq(struct rockchip_pcie_ep *ep, u8 fn,
-                                           u8 intx)
+static int rockchip_pcie_ep_send_intx_irq(struct rockchip_pcie_ep *ep, u8 fn,
+                                         u8 intx)
 {
        u16 cmd;
 
@@ -413,7 +413,7 @@ static int rockchip_pcie_ep_raise_irq(struct pci_epc *epc, u8 fn, u8 vfn,
 
        switch (type) {
        case PCI_IRQ_INTX:
-               return rockchip_pcie_ep_send_legacy_irq(ep, fn, 0);
+               return rockchip_pcie_ep_send_intx_irq(ep, fn, 0);
        case PCI_IRQ_MSI:
                return rockchip_pcie_ep_send_msi_irq(ep, fn, interrupt_num);
        default: