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
a4fb74d9
Commit
a4fb74d9
authored
Jul 19, 2018
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spec: specific IRQ handler looks like generic ones
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
e2a76cff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
spec-irq.c
kernel/spec-irq.c
+8
-3
No files found.
kernel/spec-irq.c
View file @
a4fb74d9
...
...
@@ -266,8 +266,9 @@ static struct irq_domain_ops spec_irq_gpio_domain_ops = {
/**
* Handle IRQ from the GPIO block
*/
static
irqreturn_t
spec_irq_gpio_handler
(
int
irq
,
struct
spec_dev
*
spec
)
static
irqreturn_t
spec_irq_gpio_handler
(
int
irq
,
void
*
arg
)
{
struct
spec_dev
*
spec
=
arg
;
struct
irq_desc
*
desc
;
unsigned
int
cascade_irq
;
uint32_t
gpio_int_status
;
...
...
@@ -295,9 +296,13 @@ static irqreturn_t spec_irq_gpio_handler(int irq, struct spec_dev *spec)
return
IRQ_HANDLED
;
}
static
irqreturn_t
spec_irq_sw_handler
(
int
irq
,
struct
spec_dev
*
spec
,
uint32_t
int_stat
)
static
irqreturn_t
spec_irq_sw_handler
(
int
irq
,
void
*
arg
)
{
struct
spec_dev
*
spec
=
arg
;
uint32_t
int_stat
;
/* Ack the interrupts */
int_stat
=
gennum_readl
(
spec
,
GNINT_STAT
);
gennum_writel
(
spec
,
0x0000
,
GNINT_STAT
);
complete
(
&
spec
->
compl
);
...
...
@@ -328,7 +333,7 @@ static irqreturn_t spec_irq_handler_threaded(int irq, void *arg)
if
(
int_stat
&
GNINT_STAT_GPIO
)
ret
=
spec_irq_gpio_handler
(
irq
,
spec
);
if
(
int_stat
&
GNINT_STAT_SW_ALL
)
ret
=
spec_irq_sw_handler
(
irq
,
spec
,
int_stat
);
ret
=
spec_irq_sw_handler
(
irq
,
spec
);
return
IRQ_HANDLED
;
}
...
...
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