diff options
author | Vinod Koul <vinod.koul@intel.com> | 2013-09-02 12:24:48 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-09-02 23:43:14 -0400 |
commit | dbaf6d85114bd2043f3ca758f71f9f7e4e579601 (patch) | |
tree | 19f9a63f8b9937623d1255ae28d0e3ead8739cc7 /drivers/dma/pl330.c | |
parent | 14f00c74f787a263e443b6901083187ffae641de (diff) |
dmaengine: pl330: use dma_set_max_seg_size to set the sg limit
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/pl330.c')
-rw-r--r-- | drivers/dma/pl330.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index 7c02e83c7308..6a6e82c2a57b 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c | |||
@@ -2871,13 +2871,6 @@ static int pl330_dma_device_slave_caps(struct dma_chan *dchan, | |||
2871 | caps->cmd_pause = false; | 2871 | caps->cmd_pause = false; |
2872 | caps->cmd_terminate = true; | 2872 | caps->cmd_terminate = true; |
2873 | 2873 | ||
2874 | /* | ||
2875 | * This is the limit for transfers with a buswidth of 1, larger | ||
2876 | * buswidths will have larger limits. | ||
2877 | */ | ||
2878 | caps->max_sg_len = 1900800; | ||
2879 | caps->max_sg_nr = 0; | ||
2880 | |||
2881 | return 0; | 2874 | return 0; |
2882 | } | 2875 | } |
2883 | 2876 | ||
@@ -3001,6 +2994,14 @@ pl330_probe(struct amba_device *adev, const struct amba_id *id) | |||
3001 | "unable to register DMA to the generic DT DMA helpers\n"); | 2994 | "unable to register DMA to the generic DT DMA helpers\n"); |
3002 | } | 2995 | } |
3003 | } | 2996 | } |
2997 | /* | ||
2998 | * This is the limit for transfers with a buswidth of 1, larger | ||
2999 | * buswidths will have larger limits. | ||
3000 | */ | ||
3001 | ret = dma_set_max_seg_size(&adev->dev, 1900800); | ||
3002 | if (ret) | ||
3003 | dev_err(&adev->dev, "unable to set the seg size\n"); | ||
3004 | |||
3004 | 3005 | ||
3005 | dev_info(&adev->dev, | 3006 | dev_info(&adev->dev, |
3006 | "Loaded driver for PL330 DMAC-%d\n", adev->periphid); | 3007 | "Loaded driver for PL330 DMAC-%d\n", adev->periphid); |