diff options
author | Minda Chen <minda.chen@starfivetech.com> | 2024-03-28 17:18:30 +0800 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2024-05-28 11:15:29 -0500 |
commit | a576fff39eecb89befbb0bf567a5b5d889199d56 (patch) | |
tree | bdd6b7665ad4052cf59c8352036527eb49a12b3e /drivers/pci/controller/plda/pcie-microchip-host.c | |
parent | 4602c370bdf6946b4e954a3db0ef5958aac2b7b4 (diff) |
PCI: plda: Add event bitmap field to struct plda_pcie_rp
PLDA DMA interrupts are not all implemented, and the non-implemented
interrupts should be masked. Add a bitmap field to mask the non-implemented
interrupts.
Link: https://lore.kernel.org/linux-pci/20240328091835.14797-18-minda.chen@starfivetech.com
Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
Signed-off-by: Krzysztof WilczyĆski <kwilczynski@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/controller/plda/pcie-microchip-host.c')
-rw-r--r-- | drivers/pci/controller/plda/pcie-microchip-host.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/controller/plda/pcie-microchip-host.c b/drivers/pci/controller/plda/pcie-microchip-host.c index a5442d89dfbf9..36e4aef3e5268 100644 --- a/drivers/pci/controller/plda/pcie-microchip-host.c +++ b/drivers/pci/controller/plda/pcie-microchip-host.c @@ -635,6 +635,7 @@ static int mc_platform_init(struct pci_config_window *cfg) port->plda.event_ops = &mc_event_ops; port->plda.event_irq_chip = &mc_event_irq_chip; + port->plda.events_bitmap = GENMASK(NUM_EVENTS - 1, 0); /* Address translation is up; safe to enable interrupts */ ret = plda_init_interrupts(pdev, &port->plda, &mc_event); |