Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PCI: dwc: drop dependency on ZONE_DMA32
Re-work the msi_msg DMA allocation logic to use dma_alloc_coherent() which uses the coherent DMA mask to try and return an allocation within the DMA mask limits. This allows kernel configurations that disable ZONE_DMA32 to continue supporting a 32-bit DMA mask. Without this patch, the PCIe host device will fail to probe when ZONE_DMA32 is disabled. Fixes: 35797e6 ("PCI: dwc: Fix MSI msi_msg DMA mapping") Signed-off-by: Will McVicker <willmcvicker@google.com>
- Loading branch information