summaryrefslogtreecommitdiff
path: root/drivers/staging/vme/bridges/vme_ca91cx42.c
diff options
context:
space:
mode:
authorMartyn Welch <martyn.welch@gefanuc.com>2010-02-18 15:12:58 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2010-03-04 00:43:00 (GMT)
commit4f723df45d3952c485ee0125fb6797ad615901c3 (patch)
tree3db9d8a00c01c0ffa4d3d66630abf4e72e4771ed /drivers/staging/vme/bridges/vme_ca91cx42.c
parent66bd8db52ab48e7189e02d4bf1f23109cc1ede70 (diff)
downloadlinux-fsl-qoriq-4f723df45d3952c485ee0125fb6797ad615901c3.tar.xz
Staging: vme: Attribute Testing For Dma Request
Check the directions in which the DMA controller is expected to operate before giving control of a resource. Signed-off-by: Martyn Welch <martyn.welch@gefanuc.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/vme/bridges/vme_ca91cx42.c')
-rw-r--r--drivers/staging/vme/bridges/vme_ca91cx42.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/vme/bridges/vme_ca91cx42.c b/drivers/staging/vme/bridges/vme_ca91cx42.c
index 272cc26..7eaba35 100644
--- a/drivers/staging/vme/bridges/vme_ca91cx42.c
+++ b/drivers/staging/vme/bridges/vme_ca91cx42.c
@@ -1109,6 +1109,8 @@ static int ca91cx42_probe(struct pci_dev *pdev, const struct pci_device_id *id)
mutex_init(&(dma_ctrlr->mtx));
dma_ctrlr->locked = 0;
dma_ctrlr->number = i;
+ dma_ctrlr->route_attr = VME_DMA_VME_TO_MEM |
+ VME_DMA_MEM_TO_VME;
INIT_LIST_HEAD(&(dma_ctrlr->pending));
INIT_LIST_HEAD(&(dma_ctrlr->running));
list_add_tail(&(dma_ctrlr->list),