]> git.baikalelectronics.ru Git - kernel.git/commitdiff
dmaengine: xilinx_dma: Differentiate probe based on the ip type
authorKedareswara rao Appana <appana.durga.rao@xilinx.com>
Thu, 7 Dec 2017 05:21:07 +0000 (10:51 +0530)
committerVinod Koul <vinod.koul@intel.com>
Mon, 18 Dec 2017 05:14:09 +0000 (10:44 +0530)
This patch updates the probe banner info based on the ip probed.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/xilinx/xilinx_dma.c

index b09a8efcfb2d134bb2560350a0c4ed1032e4b25c..52e2f186c814b9c50db024458b2e9934d6e37dfd 100644 (file)
@@ -2680,7 +2680,12 @@ static int xilinx_dma_probe(struct platform_device *pdev)
                goto error;
        }
 
-       dev_info(&pdev->dev, "Xilinx AXI VDMA Engine Driver Probed!!\n");
+       if (xdev->dma_config->dmatype == XDMA_TYPE_AXIDMA)
+               dev_info(&pdev->dev, "Xilinx AXI DMA Engine Driver Probed!!\n");
+       else if (xdev->dma_config->dmatype == XDMA_TYPE_CDMA)
+               dev_info(&pdev->dev, "Xilinx AXI CDMA Engine Driver Probed!!\n");
+       else
+               dev_info(&pdev->dev, "Xilinx AXI VDMA Engine Driver Probed!!\n");
 
        return 0;