Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Simple PCIe FMC carrier SPEC
Commits
15dfd2a9
Commit
15dfd2a9
authored
Oct 01, 2020
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:drv: remove all pending transfers on terminate_all
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
bbf5a4aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
spec-gn412x-dma.c
software/kernel/spec-gn412x-dma.c
+12
-2
No files found.
software/kernel/spec-gn412x-dma.c
View file @
15dfd2a9
...
...
@@ -632,12 +632,22 @@ static int gn412x_dma_slave_config(struct dma_chan *chan,
static
int
gn412x_dma_terminate_all
(
struct
dma_chan
*
chan
)
{
struct
gn412x_dma_chan
*
gn412x_dma_chan
=
to_gn412x_dma_chan
(
chan
);
struct
gn412x_dma_device
*
gn412x_dma
;
struct
gn412x_dma_tx
*
tx
;
struct
gn412x_dma_tx
*
tx
,
*
tx_tmp
;
unsigned
long
flags
;
gn412x_dma
=
to_gn412x_dma_device
(
chan
->
device
);
gn412x_dma_ctrl_abort
(
gn412x_dma
);
/* FIXME remove all pending */
spin_lock_irqsave
(
&
gn412x_dma_chan
->
lock
,
flags
);
list_for_each_entry_safe
(
tx
,
tx_tmp
,
&
gn412x_dma_chan
->
pending_list
,
list
)
{
list_del
(
&
tx
->
list
);
gn412x_dma_tx_free
(
tx
);
}
spin_unlock_irqrestore
(
&
gn412x_dma_chan
->
lock
,
flags
);
if
(
!
gn412x_dma_is_abort
(
gn412x_dma
))
{
dev_err
(
&
gn412x_dma
->
pdev
->
dev
,
"Failed to abort DMA transfer
\n
"
);
...
...
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