dmaengine: dw-edma: Add HDMA NATIVE map check
Subsystems (2)
PATCH RESEND 1/1 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]>
--- drivers/dma/dw-edma/dw-edma-pcie.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/dma/dw-edma/dw-edma-pcie.c +2 -1
@@ -136,7 +136,8 @@ static void dw_edma_pcie_get_vsec_dma_data(struct pci_dev *pdev, map =FIELD_GET (DW_PCIE_VSEC_DMA_MAP , val);if (map !=EDMA_MF_EDMA_LEGACY && map !=EDMA_MF_EDMA_UNROLL && - map !=EDMA_MF_HDMA_COMPAT ) + map !=EDMA_MF_HDMA_COMPAT && + map !=EDMA_MF_HDMA_NATIVE )return ; pdata->mf = map;
Signature · 1 line
2.43.0
Quoted 5 lines · Devendra K Verma
The HDMA IP supports the
HDMA_NATIVEmap format as part of Vendor-Specific Extended Capability. Added the check forHDMA_NATIVEmap format. The check for map format enables the IP specific function invocation during the DMA ops.
You also need to update the 'Debug info' part in dw_edma_pcie_probe().
- Mani
Quoted 22 lines
Signed-off-by Devendra K Verma <[email protected]>--- drivers/dma/dw-edma/dw-edma-pcie.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/dma/dw-edma/dw-edma-pcie.c +2
-1@@ -136,7 +136,8 @@ static void dw_edma_pcie_get_vsec_dma_data(struct pci_dev *pdev, map =FIELD_GET (DW_PCIE_VSEC_DMA_MAP , val);if (map !=EDMA_MF_EDMA_LEGACY && map !=EDMA_MF_EDMA_UNROLL && - map !=EDMA_MF_HDMA_COMPAT ) + map !=EDMA_MF_HDMA_COMPAT && + map !=EDMA_MF_HDMA_NATIVE )return ; pdata->mf = map;Signature · 1 line
2.43.0
Signature · 1 line
மணிவண்ணன் சதாசிவம்