Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: dw-edma: Add HDMA NATIVE map check

The HDMA IP supports the HDMA_NATIVE map format as part of Vendor-Specific
Extended Capability. Added the check for HDMA_NATIVE map format.
The check for map format enables the IP specific function invocation
during the DMA ops.

Signed-off-by: Devendra K Verma <devverma@amd.com>
Link: https://lore.kernel.org/r/20250513070314.577823-1-devverma@amd.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Devendra K Verma and committed by
Vinod Koul
d7130902 d175222f

+4 -1
+4 -1
drivers/dma/dw-edma/dw-edma-pcie.c
··· 136 136 map = FIELD_GET(DW_PCIE_VSEC_DMA_MAP, val); 137 137 if (map != EDMA_MF_EDMA_LEGACY && 138 138 map != EDMA_MF_EDMA_UNROLL && 139 - map != EDMA_MF_HDMA_COMPAT) 139 + map != EDMA_MF_HDMA_COMPAT && 140 + map != EDMA_MF_HDMA_NATIVE) 140 141 return; 141 142 142 143 pdata->mf = map; ··· 292 291 pci_dbg(pdev, "Version:\teDMA Unroll (0x%x)\n", chip->mf); 293 292 else if (chip->mf == EDMA_MF_HDMA_COMPAT) 294 293 pci_dbg(pdev, "Version:\tHDMA Compatible (0x%x)\n", chip->mf); 294 + else if (chip->mf == EDMA_MF_HDMA_NATIVE) 295 + pci_dbg(pdev, "Version:\tHDMA Native (0x%x)\n", chip->mf); 295 296 else 296 297 pci_dbg(pdev, "Version:\tUnknown (0x%x)\n", chip->mf); 297 298