Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ath
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
qsdk
kvalo
ath
Commits
4bd61359
Commit
4bd61359
authored
9 years ago
by
Vinod Koul
Browse files
Options
Downloads
Plain Diff
Merge branch 'fix/omap' into fixes
parents
09c505ce
b96c033c
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/dma/omap-dma.c
+17
-9
17 additions, 9 deletions
drivers/dma/omap-dma.c
with
17 additions
and
9 deletions
drivers/dma/omap-dma.c
+
17
−
9
View file @
4bd61359
...
...
@@ -48,6 +48,7 @@ struct omap_chan {
unsigned
dma_sig
;
bool
cyclic
;
bool
paused
;
bool
running
;
int
dma_ch
;
struct
omap_desc
*
desc
;
...
...
@@ -294,6 +295,8 @@ static void omap_dma_start(struct omap_chan *c, struct omap_desc *d)
/* Enable channel */
omap_dma_chan_write
(
c
,
CCR
,
d
->
ccr
|
CCR_ENABLE
);
c
->
running
=
true
;
}
static
void
omap_dma_stop
(
struct
omap_chan
*
c
)
...
...
@@ -355,6 +358,8 @@ static void omap_dma_stop(struct omap_chan *c)
omap_dma_chan_write
(
c
,
CLNK_CTRL
,
val
);
}
c
->
running
=
false
;
}
static
void
omap_dma_start_sg
(
struct
omap_chan
*
c
,
struct
omap_desc
*
d
,
...
...
@@ -673,15 +678,20 @@ static enum dma_status omap_dma_tx_status(struct dma_chan *chan,
struct
omap_chan
*
c
=
to_omap_dma_chan
(
chan
);
struct
virt_dma_desc
*
vd
;
enum
dma_status
ret
;
uint32_t
ccr
;
unsigned
long
flags
;
ccr
=
omap_dma_chan_read
(
c
,
CCR
);
/* The channel is no longer active, handle the completion right away */
if
(
!
(
ccr
&
CCR_ENABLE
))
omap_dma_callback
(
c
->
dma_ch
,
0
,
c
);
ret
=
dma_cookie_status
(
chan
,
cookie
,
txstate
);
if
(
!
c
->
paused
&&
c
->
running
)
{
uint32_t
ccr
=
omap_dma_chan_read
(
c
,
CCR
);
/*
* The channel is no longer active, set the return value
* accordingly
*/
if
(
!
(
ccr
&
CCR_ENABLE
))
ret
=
DMA_COMPLETE
;
}
if
(
ret
==
DMA_COMPLETE
||
!
txstate
)
return
ret
;
...
...
@@ -945,9 +955,7 @@ static struct dma_async_tx_descriptor *omap_dma_prep_dma_memcpy(
d
->
ccr
=
c
->
ccr
;
d
->
ccr
|=
CCR_DST_AMODE_POSTINC
|
CCR_SRC_AMODE_POSTINC
;
d
->
cicr
=
CICR_DROP_IE
;
if
(
tx_flags
&
DMA_PREP_INTERRUPT
)
d
->
cicr
|=
CICR_FRAME_IE
;
d
->
cicr
=
CICR_DROP_IE
|
CICR_FRAME_IE
;
d
->
csdp
=
data_type
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment