From: Michael Ellerman Date: Wed, 22 Nov 2006 07:26:22 +0000 (+1100) Subject: PCI: Only check the HT capability bits in mpic.c X-Git-Tag: MMI-PSA29.97-13-9~45815^2~10 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=beb7cc8238a8334d86c96bf32bf66182db3b619f;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Greg Kroah-Hartman --- 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, 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; } }