We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7ec9ff9 + 815953d commit 0321da8Copy full SHA for 0321da8
1 file changed
drivers/pci/controller/dwc/pcie-designware-host.c
@@ -362,6 +362,12 @@ int dw_pcie_host_init(struct pcie_port *pp)
362
if (ret < 0)
363
return ret;
364
} else if (pp->has_msi_ctrl) {
365
+ u32 ctrl, num_ctrls;
366
+
367
+ num_ctrls = pp->num_vectors / MAX_MSI_IRQS_PER_CTRL;
368
+ for (ctrl = 0; ctrl < num_ctrls; ctrl++)
369
+ pp->irq_mask[ctrl] = ~0;
370
371
if (!pp->msi_irq) {
372
pp->msi_irq = platform_get_irq_byname_optional(pdev, "msi");
373
if (pp->msi_irq < 0) {
@@ -541,7 +547,6 @@ void dw_pcie_setup_rc(struct pcie_port *pp)
541
547
542
548
/* Initialize IRQ Status array */
543
549
for (ctrl = 0; ctrl < num_ctrls; ctrl++) {
544
- pp->irq_mask[ctrl] = ~0;
545
550
dw_pcie_writel_dbi(pci, PCIE_MSI_INTR0_MASK +
546
551
(ctrl * MSI_REG_CTRL_BLOCK_SIZE),
552
pp->irq_mask[ctrl]);
0 commit comments