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
19d22fd4
Commit
19d22fd4
authored
Aug 20, 2018
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drv: WARN if spurious IRQ
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
4280de0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
ft-irq.c
kernel/ft-irq.c
+10
-1
No files found.
kernel/ft-irq.c
View file @
19d22fd4
...
...
@@ -425,12 +425,21 @@ static irqreturn_t ft_irq_handler_ts(int irq, void *dev_id)
{
struct
fmc_device
*
fmc
=
dev_id
;
struct
fmctdc_dev
*
ft
=
fmc
->
mezzanine_data
;
uint32_t
irq_stat
;
uint32_t
irq_stat
,
chan_stat
;
irq_stat
=
ft_ioread
(
ft
,
ft
->
ft_irq_base
+
TDC_EIC_REG_EIC_ISR
);
if
(
!
irq_stat
)
return
IRQ_NONE
;
chan_stat
=
ft_readl
(
ft
,
TDC_REG_INPUT_ENABLE
);
chan_stat
&=
TDC_INPUT_ENABLE_CH_ALL
;
chan_stat
>>=
TDC_INPUT_ENABLE_CH1_SHIFT
;
chan_stat
=
ft_chan_to_irq_mask
(
ft
,
chan_stat
);
WARN
((
chan_stat
&
irq_stat
)
==
0
,
"Received an unexpected interrupt: 0x%X 0x%X
\n
"
,
chan_stat
,
irq_stat
);
/* Disable interrupts until we fetch all stored samples */
ft_irq_disable_save
(
ft
);
...
...
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