From 46c24a5b10e29e599998ba6c19f5c1ad6e7bf848 Mon Sep 17 00:00:00 2001 From: Brandon Perez Date: Mon, 20 Mar 2017 22:37:23 -0400 Subject: [PATCH] Fixed an bug with discovering the number of VDMA receive channels. The wrong value in the AXI DMA structure was being incremented, leading to the VDMA receive channel being counted as a DMA receive channel. --- driver/axidma_of.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/axidma_of.c b/driver/axidma_of.c index 5c76ba0..f638d1d 100644 --- a/driver/axidma_of.c +++ b/driver/axidma_of.c @@ -46,7 +46,7 @@ static int axidma_parse_compatible_property(struct device_node *dma_chan_node, } else if (of_device_is_compatible(np, "xlnx,axi-vdma-s2mm-channel") > 0) { chan->type = AXIDMA_VDMA; chan->dir = AXIDMA_READ; - dev->num_dma_rx_chans += 1; + dev->num_vdma_rx_chans += 1; } else if (of_find_property(np, "compatible", NULL) == NULL) { axidma_node_err(np, "DMA channel lacks 'compatible' property.\n"); } else {