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
4bd61359
Commit
4bd61359
authored
Apr 16, 2016
by
Vinod Koul
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/omap' into fixes
parents
09c505ce
b96c033c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
drivers/dma/omap-dma.c
drivers/dma/omap-dma.c
+17
-9
No files found.
drivers/dma/omap-dma.c
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
;
...
...
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