Skip to content

Commit d713090

Browse files
xdev0x01vinodkoul
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent d175222 commit d713090

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/dma/dw-edma/dw-edma-pcie.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ static void dw_edma_pcie_get_vsec_dma_data(struct pci_dev *pdev,
136136
map = FIELD_GET(DW_PCIE_VSEC_DMA_MAP, val);
137137
if (map != EDMA_MF_EDMA_LEGACY &&
138138
map != EDMA_MF_EDMA_UNROLL &&
139-
map != EDMA_MF_HDMA_COMPAT)
139+
map != EDMA_MF_HDMA_COMPAT &&
140+
map != EDMA_MF_HDMA_NATIVE)
140141
return;
141142

142143
pdata->mf = map;
@@ -291,6 +292,8 @@ static int dw_edma_pcie_probe(struct pci_dev *pdev,
291292
pci_dbg(pdev, "Version:\teDMA Unroll (0x%x)\n", chip->mf);
292293
else if (chip->mf == EDMA_MF_HDMA_COMPAT)
293294
pci_dbg(pdev, "Version:\tHDMA Compatible (0x%x)\n", chip->mf);
295+
else if (chip->mf == EDMA_MF_HDMA_NATIVE)
296+
pci_dbg(pdev, "Version:\tHDMA Native (0x%x)\n", chip->mf);
294297
else
295298
pci_dbg(pdev, "Version:\tUnknown (0x%x)\n", chip->mf);
296299

0 commit comments

Comments
 (0)