projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a38050
)
PCI: Only check the HT capability bits in mpic.c
author
Michael Ellerman
<michael@ellerman.id.au>
Wed, 22 Nov 2006 07:26:22 +0000
(18:26 +1100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Wed, 20 Dec 2006 18:54:43 +0000
(10:54 -0800)
Only compare the exact HT capability bits against HT_CAPTYPE_IRQ,
this is a little paranoid, but doesn't hurt.
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/powerpc/sysdev/mpic.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/powerpc/sysdev/mpic.c
b/arch/powerpc/sysdev/mpic.c
index 411480d5c626b9cac903887516305d3615db3f9a..d01ced11694d2b5bdd4dda33a3aa4913bc4e5aad 100644
(file)
--- a/
arch/powerpc/sysdev/mpic.c
+++ b/
arch/powerpc/sysdev/mpic.c
@@
-390,7
+390,7
@@
static void __init mpic_scan_ht_pic(struct mpic *mpic, u8 __iomem *devbase,
u8 id = readb(devbase + pos + PCI_CAP_LIST_ID);
if (id == PCI_CAP_ID_HT) {
id = readb(devbase + pos + 3);
- if (
id
== HT_CAPTYPE_IRQ)
+ if (
(id & HT_5BIT_CAP_MASK)
== HT_CAPTYPE_IRQ)
break;
}
}