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
10f41750
Commit
10f41750
authored
Oct 01, 2020
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:drv: release current tx on abort
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
15dfd2a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
spec-gn412x-dma.c
software/kernel/spec-gn412x-dma.c
+5
-0
No files found.
software/kernel/spec-gn412x-dma.c
View file @
10f41750
...
...
@@ -540,6 +540,9 @@ static void gn412x_dma_tx_free(struct gn412x_dma_tx *tx)
struct
gn412x_dma_device
*
gn412x_dma
;
int
i
;
if
(
unlikely
(
!
tx
))
return
;
gn412x_dma
=
to_gn412x_dma_device
(
tx
->
tx
.
chan
->
device
);
for
(
i
=
0
;
i
<
tx
->
sg_len
;
++
i
)
{
dma_addr_t
phys
;
...
...
@@ -663,6 +666,8 @@ static int gn412x_dma_terminate_all(struct dma_chan *chan)
tx
->
tx
.
callback_result
(
tx
->
tx
.
callback_param
,
&
result
);
}
gn412x_dma_tx_free
(
tx
);
return
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