Skip to content

Commit

Permalink
Fixed an bug with discovering the number of VDMA receive channels.
Browse files Browse the repository at this point in the history
The wrong value in the AXI DMA structure was being incremented, leading
to the VDMA receive channel being counted as a DMA receive channel.
  • Loading branch information
bperez77 committed Mar 21, 2017
1 parent 64a7680 commit 46c24a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver/axidma_of.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 46c24a5

Please sign in to comment.