Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
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 - Software
Commits
491f3df0
Commit
491f3df0
authored
Jul 24, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
irq: don't self-test irq unless asked to
parent
005dccd6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
spec-fmc.c
kernel/spec-fmc.c
+7
-1
No files found.
kernel/spec-fmc.c
View file @
491f3df0
...
...
@@ -10,8 +10,12 @@
#include <linux/slab.h>
#include <linux/fmc.h>
#include <linux/interrupt.h>
#include <linux/moduleparam.h>
#include "spec.h"
static
int
spec_test_irq
;
module_param_named
(
test_irq
,
spec_test_irq
,
int
,
0444
);
/* The main role of this file is offering the fmc_operations for the spec */
static
int
spec_irq_request
(
struct
fmc_device
*
fmc
,
irq_handler_t
handler
,
...
...
@@ -90,7 +94,9 @@ static int spec_irq_init(struct fmc_device *fmc)
gennum_writel
(
spec
,
0
,
GNINT_CFG
(
i
));
gennum_writel
(
spec
,
0x800c
,
GNINT_CFG
(
value
&
0x03
));
/* Finally, ensure we are able to receive it */
/* Finally, ensure we are able to receive it -- if the user asked to */
if
(
spec_test_irq
==
0
)
return
0
;
spec
->
irq_count
=
0
;
init_completion
(
&
spec
->
compl
);
fmc
->
op
->
irq_request
(
fmc
,
spec_test_handler
,
"spec-test"
,
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