Revert "ANDROID: PCI: dwc: revert dwc 32-bit DMA mask for MSI address requirement"

This reverts commit 8f9f701b5c. The proper
fix was merged upstream in [1] and will come via the 5.20-rc1.

[1] https://lore.kernel.org/lkml/20220525223316.388490-1-willmcvicker@google.com/T/

Signed-off-by: Will McVicker <willmcvicker@google.com>
Change-Id: Iab788d4e32fd0fc42faff3c282c351f709f0f510
This commit is contained in:
Will McVicker
2022-08-08 20:41:01 +00:00
parent 0faa7e9fe2
commit 778306b543
@@ -389,6 +389,10 @@ int dw_pcie_host_init(struct pcie_port *pp)
dw_chained_msi_isr,
pp);
ret = dma_set_mask(pci->dev, DMA_BIT_MASK(32));
if (ret)
dev_warn(pci->dev, "Failed to set DMA mask to 32-bit. Devices with only 32-bit MSI support may not work properly\n");
pp->msi_data = dma_map_single_attrs(pci->dev, &pp->msi_msg,
sizeof(pp->msi_msg),
DMA_FROM_DEVICE,