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
332f3f1d
Commit
332f3f1d
authored
Mar 25, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do the slot mapping adjustment to PROM interrupt
property in pci_intmap_match even if pbm->num_pbm_intmap is zero.
parent
ffe536ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
16 deletions
+19
-16
arch/sparc64/kernel/pci_common.c
arch/sparc64/kernel/pci_common.c
+19
-16
No files found.
arch/sparc64/kernel/pci_common.c
View file @
332f3f1d
...
...
@@ -573,9 +573,6 @@ static int __init pci_intmap_match(struct pci_dev *pdev, unsigned int *interrupt
unsigned
int
hi
,
mid
,
lo
,
irq
;
int
i
,
num_intmap
,
map_slot
;
if
(
pbm
->
num_pbm_intmap
==
0
)
return
0
;
intmap
=
&
pbm
->
pbm_intmap
[
0
];
intmask
=
&
pbm
->
pbm_intmask
;
num_intmap
=
pbm
->
num_pbm_intmap
;
...
...
@@ -673,20 +670,26 @@ static int __init pci_intmap_match(struct pci_dev *pdev, unsigned int *interrupt
}
}
/* Print it both to OBP console and kernel one so that if bootup
* hangs here the user has the information to report.
/* We will run this code even if pbm->num_pbm_intmap is zero, just so
* we can apply the slot mapping to the PROM interrupt property value.
* So do not spit out these warnings in that case.
*/
prom_printf
(
"pci_intmap_match: bus %02x, devfn %02x: "
,
pdev
->
bus
->
number
,
pdev
->
devfn
);
prom_printf
(
"IRQ [%08x.%08x.%08x.%08x] not found in interrupt-map
\n
"
,
pregs
->
phys_hi
,
pregs
->
phys_mid
,
pregs
->
phys_lo
,
*
interrupt
);
prom_printf
(
"Please email this information to davem@redhat.com
\n
"
);
printk
(
"pci_intmap_match: bus %02x, devfn %02x: "
,
pdev
->
bus
->
number
,
pdev
->
devfn
);
printk
(
"IRQ [%08x.%08x.%08x.%08x] not found in interrupt-map
\n
"
,
pregs
->
phys_hi
,
pregs
->
phys_mid
,
pregs
->
phys_lo
,
*
interrupt
);
printk
(
"Please email this information to davem@redhat.com
\n
"
);
if
(
num_intmap
!=
0
)
{
/* Print it both to OBP console and kernel one so that if bootup
* hangs here the user has the information to report.
*/
prom_printf
(
"pci_intmap_match: bus %02x, devfn %02x: "
,
pdev
->
bus
->
number
,
pdev
->
devfn
);
prom_printf
(
"IRQ [%08x.%08x.%08x.%08x] not found in interrupt-map
\n
"
,
pregs
->
phys_hi
,
pregs
->
phys_mid
,
pregs
->
phys_lo
,
*
interrupt
);
prom_printf
(
"Please email this information to davem@redhat.com
\n
"
);
printk
(
"pci_intmap_match: bus %02x, devfn %02x: "
,
pdev
->
bus
->
number
,
pdev
->
devfn
);
printk
(
"IRQ [%08x.%08x.%08x.%08x] not found in interrupt-map
\n
"
,
pregs
->
phys_hi
,
pregs
->
phys_mid
,
pregs
->
phys_lo
,
*
interrupt
);
printk
(
"Please email this information to davem@redhat.com
\n
"
);
}
return
0
;
}
...
...
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