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
56cbb3dd
Commit
56cbb3dd
authored
Apr 25, 2012
by
Vinod Koul
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixes' into next
parents
affa115e
88c08a3f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
10 deletions
+16
-10
drivers/dma/amba-pl08x.c
drivers/dma/amba-pl08x.c
+1
-0
drivers/dma/pl330.c
drivers/dma/pl330.c
+15
-10
No files found.
drivers/dma/amba-pl08x.c
View file @
56cbb3dd
...
...
@@ -1433,6 +1433,7 @@ static int pl08x_control(struct dma_chan *chan, enum dma_ctrl_cmd cmd,
* signal
*/
release_phy_channel
(
plchan
);
plchan
->
phychan_hold
=
0
;
}
/* Dequeue jobs and free LLIs */
if
(
plchan
->
at
)
{
...
...
drivers/dma/pl330.c
View file @
56cbb3dd
...
...
@@ -2225,12 +2225,9 @@ static inline void free_desc_list(struct list_head *list)
{
struct
dma_pl330_dmac
*
pdmac
;
struct
dma_pl330_desc
*
desc
;
struct
dma_pl330_chan
*
pch
;
struct
dma_pl330_chan
*
pch
=
NULL
;
unsigned
long
flags
;
if
(
list_empty
(
list
))
return
;
/* Finish off the work list */
list_for_each_entry
(
desc
,
list
,
node
)
{
dma_async_tx_callback
callback
;
...
...
@@ -2247,6 +2244,10 @@ static inline void free_desc_list(struct list_head *list)
desc
->
pchan
=
NULL
;
}
/* pch will be unset if list was empty */
if
(
!
pch
)
return
;
pdmac
=
pch
->
dmac
;
spin_lock_irqsave
(
&
pdmac
->
pool_lock
,
flags
);
...
...
@@ -2257,12 +2258,9 @@ static inline void free_desc_list(struct list_head *list)
static
inline
void
handle_cyclic_desc_list
(
struct
list_head
*
list
)
{
struct
dma_pl330_desc
*
desc
;
struct
dma_pl330_chan
*
pch
;
struct
dma_pl330_chan
*
pch
=
NULL
;
unsigned
long
flags
;
if
(
list_empty
(
list
))
return
;
list_for_each_entry
(
desc
,
list
,
node
)
{
dma_async_tx_callback
callback
;
...
...
@@ -2274,6 +2272,10 @@ static inline void handle_cyclic_desc_list(struct list_head *list)
callback
(
desc
->
txd
.
callback_param
);
}
/* pch will be unset if list was empty */
if
(
!
pch
)
return
;
spin_lock_irqsave
(
&
pch
->
lock
,
flags
);
list_splice_tail_init
(
list
,
&
pch
->
work_list
);
spin_unlock_irqrestore
(
&
pch
->
lock
,
flags
);
...
...
@@ -2926,8 +2928,11 @@ pl330_probe(struct amba_device *adev, const struct amba_id *id)
INIT_LIST_HEAD
(
&
pd
->
channels
);
/* Initialize channel parameters */
num_chan
=
max
(
pdat
?
pdat
->
nr_valid_peri
:
(
u8
)
pi
->
pcfg
.
num_peri
,
(
u8
)
pi
->
pcfg
.
num_chan
);
if
(
pdat
)
num_chan
=
max_t
(
int
,
pdat
->
nr_valid_peri
,
pi
->
pcfg
.
num_chan
);
else
num_chan
=
max_t
(
int
,
pi
->
pcfg
.
num_peri
,
pi
->
pcfg
.
num_chan
);
pdmac
->
peripherals
=
kzalloc
(
num_chan
*
sizeof
(
*
pch
),
GFP_KERNEL
);
for
(
i
=
0
;
i
<
num_chan
;
i
++
)
{
...
...
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