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:
committed by
Carlos Llamas
parent
7b26719a77
commit
99af01f2b7
@@ -373,6 +373,10 @@ int dw_pcie_host_init(struct pcie_port *pp)
|
|||||||
dw_chained_msi_isr,
|
dw_chained_msi_isr,
|
||||||
pp);
|
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,
|
pp->msi_data = dma_map_single_attrs(pci->dev, &pp->msi_msg,
|
||||||
sizeof(pp->msi_msg),
|
sizeof(pp->msi_msg),
|
||||||
DMA_FROM_DEVICE,
|
DMA_FROM_DEVICE,
|
||||||
|
|||||||
Reference in New Issue
Block a user