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
nexedi
linux
Commits
a8fb688e
Commit
a8fb688e
authored
Jun 08, 2012
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: spear: update for PL08x dma engine changes
Signed-off-by:
Russell King
<
rmk+kernel@arm.linux.org.uk
>
parent
aeea1808
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
arch/arm/plat-spear/include/plat/pl080.h
arch/arm/plat-spear/include/plat/pl080.h
+3
-3
arch/arm/plat-spear/pl080.c
arch/arm/plat-spear/pl080.c
+4
-6
No files found.
arch/arm/plat-spear/include/plat/pl080.h
View file @
a8fb688e
...
...
@@ -14,8 +14,8 @@
#ifndef __PLAT_PL080_H
#define __PLAT_PL080_H
struct
pl08x_
dma_chan
;
int
pl080_get_signal
(
struct
pl08x_dma_chan
*
ch
);
void
pl080_put_signal
(
struct
pl08x_dma_chan
*
ch
);
struct
pl08x_
channel_data
;
int
pl080_get_signal
(
const
struct
pl08x_channel_data
*
cd
);
void
pl080_put_signal
(
const
struct
pl08x_channel_data
*
cd
,
int
signal
);
#endif
/* __PLAT_PL080_H */
arch/arm/plat-spear/pl080.c
View file @
a8fb688e
...
...
@@ -27,9 +27,8 @@ struct {
unsigned
char
val
;
}
signals
[
16
]
=
{{
0
,
0
},
};
int
pl080_get_signal
(
struct
pl08x_dma_chan
*
ch
)
int
pl080_get_signal
(
const
struct
pl08x_channel_data
*
cd
)
{
const
struct
pl08x_channel_data
*
cd
=
ch
->
cd
;
unsigned
int
signal
=
cd
->
min_signal
,
val
;
unsigned
long
flags
;
...
...
@@ -63,18 +62,17 @@ int pl080_get_signal(struct pl08x_dma_chan *ch)
return
signal
;
}
void
pl080_put_signal
(
struct
pl08x_dma_chan
*
ch
)
void
pl080_put_signal
(
const
struct
pl08x_channel_data
*
cd
,
int
signal
)
{
const
struct
pl08x_channel_data
*
cd
=
ch
->
cd
;
unsigned
long
flags
;
spin_lock_irqsave
(
&
lock
,
flags
);
/* if signal is not used */
if
(
!
signals
[
cd
->
min_
signal
].
busy
)
if
(
!
signals
[
signal
].
busy
)
BUG
();
signals
[
cd
->
min_
signal
].
busy
--
;
signals
[
signal
].
busy
--
;
spin_unlock_irqrestore
(
&
lock
,
flags
);
}
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