[openib-general] patch pci-only-check-the-ht-capability-bits-in-mpic.c.patch added to gregkh-2.6 tree

gregkh at suse.de gregkh at suse.de
Wed Dec 6 22:12:01 PST 2006


This is a note to let you know that I've just added the patch titled

     Subject: PCI: Only check the HT capability bits in mpic.c

to my gregkh-2.6 tree.  Its filename is

     pci-only-check-the-ht-capability-bits-in-mpic.c.patch

This tree can be found at 
    http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/


>From michael at ozlabs.org Tue Nov 21 23:26:32 2006
From: Michael Ellerman <michael at ellerman.id.au>
To: linux-pci at atrey.karlin.mff.cuni.cz
CC: Greg Kroah-Hartman <greg at kroah.com>, Benjamin Herrenschmidt <benh at kernel.crashing.org>, Eric W. Biederman <ebiederm at xmission.com>, Segher Boessenkool <segher at kernel.crashing.org>, <support at pathscale.com>, <openib-general at openib.org>, <brice at myri.com>
Date: Wed, 22 Nov 2006 18:26:22 +1100
Subject: PCI: Only check the HT capability bits in mpic.c
Message-Id: <20061122072626.94B1A67C3C at ozlabs.org>

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 at ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh at suse.de>

---
 arch/powerpc/sysdev/mpic.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- gregkh-2.6.orig/arch/powerpc/sysdev/mpic.c
+++ gregkh-2.6/arch/powerpc/sysdev/mpic.c
@@ -390,7 +390,7 @@ static void __init mpic_scan_ht_pic(stru
 		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;
 		}
 	}


Patches currently in gregkh-2.6 which might be from michael at ellerman.id.au are





More information about the general mailing list