Skip to content

Commit

Permalink
Merge branch 'topic/api_caps' into for-linus
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinod Koul committed Sep 4, 2013
2 parents 265d9c6 + dbaf6d8 commit bd12763
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
15 changes: 8 additions & 7 deletions drivers/dma/pl330.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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);
Expand Down
8 changes: 0 additions & 8 deletions include/linux/dmaengine.h
Original file line number Diff line number Diff line change
Expand Up @@ -380,21 +380,13 @@ struct dma_slave_config {
* should be checked by controller as well
* @cmd_pause: true, if pause and thereby resume is supported
* @cmd_terminate: true, if terminate cmd is supported
*
* @max_sg_nr: maximum number of SG segments supported
* 0 for no maximum
* @max_sg_len: maximum length of a SG segment supported
* 0 for no maximum
*/
struct dma_slave_caps {
u32 src_addr_widths;
u32 dstn_addr_widths;
u32 directions;
bool cmd_pause;
bool cmd_terminate;

u32 max_sg_nr;
u32 max_sg_len;
};

static inline const char *dma_chan_name(struct dma_chan *chan)
Expand Down

0 comments on commit bd12763

Please sign in to comment.