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
dbaf6d85
Commit
dbaf6d85
authored
Sep 02, 2013
by
Vinod Koul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmaengine: pl330: use dma_set_max_seg_size to set the sg limit
Signed-off-by:
Vinod Koul
<
vinod.koul@intel.com
>
parent
14f00c74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
drivers/dma/pl330.c
drivers/dma/pl330.c
+8
-7
No files found.
drivers/dma/pl330.c
View file @
dbaf6d85
...
...
@@ -2871,13 +2871,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
;
}
...
...
@@ -3001,6 +2994,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
);
...
...
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