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

This reverts commit e43c6c7330. This was
a workaround. Now that the fix has been merged upstream, we can apply
that instead.

Bug: 232293973
Signed-off-by: Will McVicker <willmcvicker@google.com>
Change-Id: Ief14543f51ed46bfc7660d66365f2ee7e80815a3
This commit is contained in:
Will McVicker 2022-06-14 09:53:52 -07:00 committed by Carlos Llamas
parent 7b26719a77
commit 99af01f2b7
1 changed files with 4 additions and 0 deletions

View File

@ -373,6 +373,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,