Skip to content

Commit 5b0fbad

Browse files
damien-lemoalLorenzo Pieralisi
authored andcommitted
PCI: endpoint: Rename LEGACY to INTX in test function driver
In the endpoint test function driver, rename IRQ_TYPE_LEGACY to IRQ_TYPE_INTX and COMMAND_RAISE_LEGACY_IRQ to COMMAND_RAISE_INTX_IRQ to match the term used in the PCI specifications. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Damien Le Moal <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]>
1 parent 8a608da commit 5b0fbad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/pci/endpoint/functions/pci-epf-test.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
#include <linux/pci-epf.h>
2020
#include <linux/pci_regs.h>
2121

22-
#define IRQ_TYPE_LEGACY 0
22+
#define IRQ_TYPE_INTX 0
2323
#define IRQ_TYPE_MSI 1
2424
#define IRQ_TYPE_MSIX 2
2525

26-
#define COMMAND_RAISE_LEGACY_IRQ BIT(0)
26+
#define COMMAND_RAISE_INTX_IRQ BIT(0)
2727
#define COMMAND_RAISE_MSI_IRQ BIT(1)
2828
#define COMMAND_RAISE_MSIX_IRQ BIT(2)
2929
#define COMMAND_READ BIT(3)
@@ -600,7 +600,7 @@ static void pci_epf_test_raise_irq(struct pci_epf_test *epf_test,
600600
WRITE_ONCE(reg->status, status);
601601

602602
switch (reg->irq_type) {
603-
case IRQ_TYPE_LEGACY:
603+
case IRQ_TYPE_INTX:
604604
pci_epc_raise_irq(epc, epf->func_no, epf->vfunc_no,
605605
PCI_IRQ_INTX, 0);
606606
break;
@@ -659,7 +659,7 @@ static void pci_epf_test_cmd_handler(struct work_struct *work)
659659
}
660660

661661
switch (command) {
662-
case COMMAND_RAISE_LEGACY_IRQ:
662+
case COMMAND_RAISE_INTX_IRQ:
663663
case COMMAND_RAISE_MSI_IRQ:
664664
case COMMAND_RAISE_MSIX_IRQ:
665665
pci_epf_test_raise_irq(epf_test, reg);

0 commit comments

Comments
 (0)