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
f8d9f628
Commit
f8d9f628
authored
Oct 31, 2013
by
Vinod Koul
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dma_complete' into next
parents
f0dad6e7
db60d8da
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
arch/arm/common/edma.c
arch/arm/common/edma.c
+2
-2
drivers/dma/edma.c
drivers/dma/edma.c
+2
-2
include/linux/platform_data/edma.h
include/linux/platform_data/edma.h
+4
-4
No files found.
arch/arm/common/edma.c
View file @
f8d9f628
...
@@ -404,7 +404,7 @@ static irqreturn_t dma_irq_handler(int irq, void *data)
...
@@ -404,7 +404,7 @@ static irqreturn_t dma_irq_handler(int irq, void *data)
BIT
(
slot
));
BIT
(
slot
));
if
(
edma_cc
[
ctlr
]
->
intr_data
[
channel
].
callback
)
if
(
edma_cc
[
ctlr
]
->
intr_data
[
channel
].
callback
)
edma_cc
[
ctlr
]
->
intr_data
[
channel
].
callback
(
edma_cc
[
ctlr
]
->
intr_data
[
channel
].
callback
(
channel
,
DMA_COMPLETE
,
channel
,
EDMA_
DMA_COMPLETE
,
edma_cc
[
ctlr
]
->
intr_data
[
channel
].
data
);
edma_cc
[
ctlr
]
->
intr_data
[
channel
].
data
);
}
}
}
while
(
sh_ipr
);
}
while
(
sh_ipr
);
...
@@ -459,7 +459,7 @@ static irqreturn_t dma_ccerr_handler(int irq, void *data)
...
@@ -459,7 +459,7 @@ static irqreturn_t dma_ccerr_handler(int irq, void *data)
callback
)
{
callback
)
{
edma_cc
[
ctlr
]
->
intr_data
[
k
].
edma_cc
[
ctlr
]
->
intr_data
[
k
].
callback
(
k
,
callback
(
k
,
DMA_CC_ERROR
,
EDMA_
DMA_CC_ERROR
,
edma_cc
[
ctlr
]
->
intr_data
edma_cc
[
ctlr
]
->
intr_data
[
k
].
data
);
[
k
].
data
);
}
}
...
...
drivers/dma/edma.c
View file @
f8d9f628
...
@@ -471,7 +471,7 @@ static void edma_callback(unsigned ch_num, u16 ch_status, void *data)
...
@@ -471,7 +471,7 @@ static void edma_callback(unsigned ch_num, u16 ch_status, void *data)
edma_pause
(
echan
->
ch_num
);
edma_pause
(
echan
->
ch_num
);
switch
(
ch_status
)
{
switch
(
ch_status
)
{
case
DMA_COMPLETE
:
case
EDMA_
DMA_COMPLETE
:
spin_lock_irqsave
(
&
echan
->
vchan
.
lock
,
flags
);
spin_lock_irqsave
(
&
echan
->
vchan
.
lock
,
flags
);
edesc
=
echan
->
edesc
;
edesc
=
echan
->
edesc
;
...
@@ -490,7 +490,7 @@ static void edma_callback(unsigned ch_num, u16 ch_status, void *data)
...
@@ -490,7 +490,7 @@ static void edma_callback(unsigned ch_num, u16 ch_status, void *data)
spin_unlock_irqrestore
(
&
echan
->
vchan
.
lock
,
flags
);
spin_unlock_irqrestore
(
&
echan
->
vchan
.
lock
,
flags
);
break
;
break
;
case
DMA_CC_ERROR
:
case
EDMA_
DMA_CC_ERROR
:
spin_lock_irqsave
(
&
echan
->
vchan
.
lock
,
flags
);
spin_lock_irqsave
(
&
echan
->
vchan
.
lock
,
flags
);
edma_read_slot
(
EDMA_CHAN_SLOT
(
echan
->
slot
[
0
]),
&
p
);
edma_read_slot
(
EDMA_CHAN_SLOT
(
echan
->
slot
[
0
]),
&
p
);
...
...
include/linux/platform_data/edma.h
View file @
f8d9f628
...
@@ -67,10 +67,10 @@ struct edmacc_param {
...
@@ -67,10 +67,10 @@ struct edmacc_param {
#define ITCCHEN BIT(23)
#define ITCCHEN BIT(23)
/*ch_status paramater of callback function possible values*/
/*ch_status paramater of callback function possible values*/
#define DMA_COMPLETE 1
#define
EDMA_
DMA_COMPLETE 1
#define DMA_CC_ERROR 2
#define
EDMA_
DMA_CC_ERROR 2
#define DMA_TC1_ERROR 3
#define
EDMA_
DMA_TC1_ERROR 3
#define DMA_TC2_ERROR 4
#define
EDMA_
DMA_TC2_ERROR 4
enum
address_mode
{
enum
address_mode
{
INCR
=
0
,
INCR
=
0
,
...
...
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