Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
spec-sw
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
fmc-projects
spec
spec-sw
Commits
86b5196f
Commit
86b5196f
authored
9 years ago
by
Federico Vaga
Browse files
Options
Downloads
Patches
Plain Diff
kernel: use the vic ack function to ack the VIC
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
182e30e7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
kernel/spec-fmc.c
+1
-0
1 addition, 0 deletions
kernel/spec-fmc.c
kernel/spec-vic.c
+1
-2
1 addition, 2 deletions
kernel/spec-vic.c
kernel/spec.h
+1
-0
1 addition, 0 deletions
kernel/spec.h
with
3 additions
and
2 deletions
kernel/spec-fmc.c
+
1
−
0
View file @
86b5196f
...
...
@@ -150,6 +150,7 @@ static irqreturn_t spec_vic_irq_handler(int id, void *data)
*/
spin_lock
(
&
spec
->
irq_lock
);
rv
=
spec_vic_irq_dispatch
(
spec
);
spec_vic_irq_ack
(
spec
,
0
);
spin_unlock
(
&
spec
->
irq_lock
);
spec_shared_irq_ack
(
fmc
);
...
...
This diff is collapsed.
Click to expand it.
kernel/spec-vic.c
+
1
−
2
View file @
86b5196f
...
...
@@ -137,7 +137,6 @@ irqreturn_t spec_vic_irq_dispatch(struct spec_dev *spec)
rv
=
vec
->
handler
(
vec
->
saved_id
,
vec
->
requestor
);
vic_writel
(
vic
,
0
,
VIC_REG_EOIR
);
/* ack the irq */
return
rv
;
fail:
...
...
@@ -237,5 +236,5 @@ void spec_vic_irq_free(struct spec_dev *spec, unsigned long id)
void
spec_vic_irq_ack
(
struct
spec_dev
*
spec
,
unsigned
long
id
)
{
/* fixme: do we need anything special here?
*/
vic_writel
(
spec
->
vic
,
0
,
VIC_REG_EOIR
);
/* ack the irq
*/
}
This diff is collapsed.
Click to expand it.
kernel/spec.h
+
1
−
0
View file @
86b5196f
...
...
@@ -158,6 +158,7 @@ int spec_vic_irq_request(struct spec_dev *spec, struct fmc_device *fmc,
unsigned
long
id
,
irq_handler_t
handler
);
void
spec_vic_irq_free
(
struct
spec_dev
*
spec
,
unsigned
long
id
);
irqreturn_t
spec_vic_irq_dispatch
(
struct
spec_dev
*
spec
);
extern
void
spec_vic_irq_ack
(
struct
spec_dev
*
spec
,
unsigned
long
id
);
extern
int
vic_is_managed
(
struct
vic_irq_controller
*
vic
,
unsigned
long
id
);
#endif
/* __SPEC_H__ */
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment