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
60f1df5d
Commit
60f1df5d
authored
Jan 31, 2011
by
Sascha Hauer
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dmaengine-shawn' into dmaengine
parents
2335d338
341b9419
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
drivers/dma/imx-sdma.c
drivers/dma/imx-sdma.c
+6
-10
No files found.
drivers/dma/imx-sdma.c
View file @
60f1df5d
...
...
@@ -450,7 +450,7 @@ static void sdma_handle_channel_loop(struct sdma_channel *sdmac)
if
(
bd
->
mode
.
status
&
BD_RROR
)
sdmac
->
status
=
DMA_ERROR
;
else
sdmac
->
status
=
DMA_
SUCC
ESS
;
sdmac
->
status
=
DMA_
IN_PROGR
ESS
;
bd
->
mode
.
status
|=
BD_DONE
;
sdmac
->
buf_tail
++
;
...
...
@@ -942,15 +942,12 @@ static struct dma_async_tx_descriptor *sdma_prep_slave_sg(
param
=
BD_DONE
|
BD_EXTD
|
BD_CONT
;
if
(
sdmac
->
flags
&
IMX_DMA_SG_LOOP
)
{
if
(
i
+
1
==
sg_len
)
{
param
|=
BD_INTR
;
if
(
i
+
1
==
sg_len
)
param
|=
BD_WRAP
;
param
|=
BD_LAST
;
param
&=
~
BD_CONT
;
}
if
(
i
+
1
==
sg_len
)
param
|=
BD_INTR
;
dev_dbg
(
sdma
->
dev
,
"entry %d: count: %d dma: 0x%08x %s%s
\n
"
,
i
,
count
,
sg
->
dma_address
,
param
&
BD_WRAP
?
"wrap"
:
""
,
...
...
@@ -964,6 +961,7 @@ static struct dma_async_tx_descriptor *sdma_prep_slave_sg(
return
&
sdmac
->
desc
;
err_out:
sdmac
->
status
=
DMA_ERROR
;
return
NULL
;
}
...
...
@@ -1077,14 +1075,12 @@ static enum dma_status sdma_tx_status(struct dma_chan *chan,
{
struct
sdma_channel
*
sdmac
=
to_sdma_chan
(
chan
);
dma_cookie_t
last_used
;
enum
dma_status
ret
;
last_used
=
chan
->
cookie
;
ret
=
dma_async_is_complete
(
cookie
,
sdmac
->
last_completed
,
last_used
);
dma_set_tx_state
(
txstate
,
sdmac
->
last_completed
,
last_used
,
0
);
return
ret
;
return
sdmac
->
status
;
}
static
void
sdma_issue_pending
(
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