Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC TDC 1ns 5cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
FMC TDC 1ns 5cha - Software
Commits
7ef3575b
Commit
7ef3575b
authored
Nov 14, 2012
by
Samuel Iglesias Gonsálvez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tdc: fix error handling. Unlock mutex
Signed-off-by:
Samuel Iglesias Gonsalvez
<
siglesias@igalia.com
>
parent
4fe307ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
tdc-fmc.c
drivers/tdc-fmc.c
+4
-1
No files found.
drivers/tdc-fmc.c
View file @
7ef3575b
...
...
@@ -141,14 +141,17 @@ static void tdc_fmc_irq_work(struct work_struct *work)
mutex_lock
(
&
fmc_dma_lock
);
curr_wr_ptr
=
tdc_get_circular_buffer_wr_pointer
(
tdc
);
if
(
curr_wr_ptr
==
tdc
->
wr_pointer
)
if
(
curr_wr_ptr
==
tdc
->
wr_pointer
)
{
mutex_unlock
(
&
fmc_dma_lock
);
goto
dma_out
;
/* No new events happened */
}
prev_wr_ptr
=
tdc
->
wr_pointer
;
ret
=
tdc_dma_setup
(
tdc
,
0
,
(
unsigned
long
)
events
,
TDC_EVENT_BUFFER_SIZE
*
sizeof
(
struct
tdc_event
));
if
(
ret
)
{
dev_err
(
&
tdc
->
fmc
->
dev
,
"tdc: error in DMA setup
\n
"
);
mutex_unlock
(
&
fmc_dma_lock
);
goto
dma_out
;
}
...
...
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