Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
bd127639
Commit
bd127639
authored
Sep 04, 2013
by
Vinod Koul
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'topic/api_caps' into for-linus
parents
265d9c67
dbaf6d85
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
15 deletions
+8
-15
drivers/dma/pl330.c
drivers/dma/pl330.c
+8
-7
include/linux/dmaengine.h
include/linux/dmaengine.h
+0
-8
No files found.
drivers/dma/pl330.c
View file @
bd127639
...
...
@@ -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
);
...
...
include/linux/dmaengine.h
View file @
bd127639
...
...
@@ -380,11 +380,6 @@ 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
;
...
...
@@ -392,9 +387,6 @@ struct dma_slave_caps {
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment