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
Kirill Smelkov
linux
Commits
1e070a60
Commit
1e070a60
authored
Jan 12, 2011
by
Sascha Hauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmaengine i.MX dma: set maximum segment size for our device
Signed-off-by:
Sascha Hauer
<
s.hauer@pengutronix.de
>
parent
1bae4ce2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
drivers/dma/imx-dma.c
drivers/dma/imx-dma.c
+4
-0
No files found.
drivers/dma/imx-dma.c
View file @
1e070a60
...
@@ -49,6 +49,7 @@ struct imxdma_channel {
...
@@ -49,6 +49,7 @@ struct imxdma_channel {
struct
imxdma_engine
{
struct
imxdma_engine
{
struct
device
*
dev
;
struct
device
*
dev
;
struct
device_dma_parameters
dma_parms
;
struct
dma_device
dma_device
;
struct
dma_device
dma_device
;
struct
imxdma_channel
channel
[
MAX_DMA_CHANNELS
];
struct
imxdma_channel
channel
[
MAX_DMA_CHANNELS
];
};
};
...
@@ -370,6 +371,9 @@ static int __init imxdma_probe(struct platform_device *pdev)
...
@@ -370,6 +371,9 @@ static int __init imxdma_probe(struct platform_device *pdev)
platform_set_drvdata
(
pdev
,
imxdma
);
platform_set_drvdata
(
pdev
,
imxdma
);
imxdma
->
dma_device
.
dev
->
dma_parms
=
&
imxdma
->
dma_parms
;
dma_set_max_seg_size
(
imxdma
->
dma_device
.
dev
,
0xffffff
);
ret
=
dma_async_device_register
(
&
imxdma
->
dma_device
);
ret
=
dma_async_device_register
(
&
imxdma
->
dma_device
);
if
(
ret
)
{
if
(
ret
)
{
dev_err
(
&
pdev
->
dev
,
"unable to register
\n
"
);
dev_err
(
&
pdev
->
dev
,
"unable to register
\n
"
);
...
...
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