diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2006-11-22 02:26:22 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-12-20 13:54:43 -0500 |
commit | beb7cc8238a8334d86c96bf32bf66182db3b619f (patch) | |
tree | 5cccf6e3633910ff9a500c635e69943922cfb087 | |
parent | 7a380507c48f7894bae7d367375313df9d51b2e5 (diff) |
PCI: Only check the HT capability bits in mpic.c
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>
-rw-r--r-- | arch/powerpc/sysdev/mpic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/mpic.c b/arch/powerpc/sysdev/mpic.c index 411480d5c626..d01ced11694d 100644 --- 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, | |||
390 | u8 id = readb(devbase + pos + PCI_CAP_LIST_ID); | 390 | u8 id = readb(devbase + pos + PCI_CAP_LIST_ID); |
391 | if (id == PCI_CAP_ID_HT) { | 391 | if (id == PCI_CAP_ID_HT) { |
392 | id = readb(devbase + pos + 3); | 392 | id = readb(devbase + pos + 3); |
393 | if (id == HT_CAPTYPE_IRQ) | 393 | if ((id & HT_5BIT_CAP_MASK) == HT_CAPTYPE_IRQ) |
394 | break; | 394 | break; |
395 | } | 395 | } |
396 | } | 396 | } |