Skip to content

Commit e81e36a

Browse files
Alan DouglasLorenzo Pieralisi
authored andcommitted
PCI: cadence: Write MSI data with 32bits
According to the PCIe specification, although the MSI data is only 16bits, the upper 16bits should be written as 0. Use writel instead of writew when writing the MSI data to the host. Fixes: 37dddf1 ("PCI: cadence: Add EndPoint Controller driver for Cadence PCIe controller") Signed-off-by: Alan Douglas <adouglas@cadence.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
1 parent 0652d4b commit e81e36a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ static int cdns_pcie_ep_send_msi_irq(struct cdns_pcie_ep *ep, u8 fn,
355355
ep->irq_pci_addr = (pci_addr & ~pci_addr_mask);
356356
ep->irq_pci_fn = fn;
357357
}
358-
writew(data, ep->irq_cpu_addr + (pci_addr & pci_addr_mask));
358+
writel(data, ep->irq_cpu_addr + (pci_addr & pci_addr_mask));
359359

360360
return 0;
361361
}

0 commit comments

Comments
 (0)