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
86b5196f
Commit
86b5196f
authored
Nov 19, 2015
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: use the vic ack function to ack the VIC
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
182e30e7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
spec-fmc.c
kernel/spec-fmc.c
+1
-0
spec-vic.c
kernel/spec-vic.c
+1
-2
spec.h
kernel/spec.h
+1
-0
No files found.
kernel/spec-fmc.c
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
);
...
...
kernel/spec-vic.c
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
*/
}
kernel/spec.h
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__ */
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