summaryrefslogtreecommitdiffstats
path: root/drivers/dma/pl330.c
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2013-09-04 15:06:53 +0200
committerVinod Koul <vinod.koul@intel.com>2013-09-04 15:06:53 +0200
commitbd127639f43ed00f721b403c7c252caa19d0f613 (patch)
treefbecc9ae6b7a0b41c061aafff06f1fabd7c1e73b /drivers/dma/pl330.c
parentMerge branch 'topic/sh' into for-linus (diff)
parentdmaengine: pl330: use dma_set_max_seg_size to set the sg limit (diff)
downloadlinux-bd127639f43ed00f721b403c7c252caa19d0f613.tar.xz
linux-bd127639f43ed00f721b403c7c252caa19d0f613.zip
Merge branch 'topic/api_caps' into for-linus
Diffstat (limited to 'drivers/dma/pl330.c')
-rw-r--r--drivers/dma/pl330.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
index 36ed30116ee0..a562d24d20bf 100644
--- a/drivers/dma/pl330.c
+++ b/drivers/dma/pl330.c
@@ -2886,13 +2886,6 @@ static int pl330_dma_device_slave_caps(struct dma_chan *dchan,
caps->cmd_pause = false;
caps->cmd_terminate = true;
- /*
- * This is the limit for transfers with a buswidth of 1, larger
- * buswidths will have larger limits.
- */
- caps->max_sg_len = 1900800;
- caps->max_sg_nr = 0;
-
return 0;
}
@@ -3017,6 +3010,14 @@ pl330_probe(struct amba_device *adev, const struct amba_id *id)
"unable to register DMA to the generic DT DMA helpers\n");
}
}
+ /*
+ * This is the limit for transfers with a buswidth of 1, larger
+ * buswidths will have larger limits.
+ */
+ ret = dma_set_max_seg_size(&adev->dev, 1900800);
+ if (ret)
+ dev_err(&adev->dev, "unable to set the seg size\n");
+
dev_info(&adev->dev,
"Loaded driver for PL330 DMAC-%d\n", adev->periphid);