Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
64943205
Commit
64943205
authored
Nov 14, 2004
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] ecard: dumpirq state on unrecognised interrupts as well.
parent
3fb07877
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
19 deletions
+22
-19
arch/arm/kernel/ecard.c
arch/arm/kernel/ecard.c
+22
-19
No files found.
arch/arm/kernel/ecard.c
View file @
64943205
...
...
@@ -503,12 +503,18 @@ void ecard_disablefiq(unsigned int fiqnr)
}
}
static
void
ecard_dump_irq_state
(
ecard_t
*
ec
)
static
void
ecard_dump_irq_state
(
void
)
{
ecard_t
*
ec
;
printk
(
"Expansion card IRQ state:
\n
"
);
for
(
ec
=
cards
;
ec
;
ec
=
ec
->
next
)
{
if
(
ec
->
slot_no
==
8
)
continue
;
printk
(
" %d: %sclaimed, "
,
ec
->
slot_no
,
ec
->
claimed
?
""
:
"not "
);
ec
->
slot_no
,
ec
->
claimed
?
""
:
"not "
);
if
(
ec
->
ops
&&
ec
->
ops
->
irqpending
&&
ec
->
ops
!=
&
ecard_default_ops
)
...
...
@@ -517,13 +523,13 @@ ecard_dump_irq_state(ecard_t *ec)
else
printk
(
"irqaddr %p, mask = %02X, status = %02X
\n
"
,
ec
->
irqaddr
,
ec
->
irqmask
,
*
ec
->
irqaddr
);
}
}
static
void
ecard_check_lockup
(
struct
irqdesc
*
desc
)
{
static
unsigned
long
last
;
static
int
lockup
;
ecard_t
*
ec
;
/*
* If the timer interrupt has not run since the last million
...
...
@@ -541,11 +547,7 @@ static void ecard_check_lockup(struct irqdesc *desc)
"disabling all expansion card interrupts
\n
"
);
desc
->
chip
->
mask
(
IRQ_EXPANSIONCARD
);
printk
(
"Expansion card IRQ state:
\n
"
);
for
(
ec
=
cards
;
ec
;
ec
=
ec
->
next
)
ecard_dump_irq_state
(
ec
);
ecard_dump_irq_state
();
}
}
else
lockup
=
0
;
...
...
@@ -557,6 +559,7 @@ static void ecard_check_lockup(struct irqdesc *desc)
if
(
!
last
||
time_after
(
jiffies
,
last
+
5
*
HZ
))
{
last
=
jiffies
;
printk
(
KERN_WARNING
"Unrecognised interrupt from backplane
\n
"
);
ecard_dump_irq_state
();
}
}
...
...
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