[openib-general] patch pci-use-pci_find_ht_capability-in-drivers-pci-htirq.c.patch added to gregkh-2.6 tree

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


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

     Subject: PCI: Use pci_find_ht_capability() in drivers/pci/htirq.c

to my gregkh-2.6 tree.  Its filename is

     pci-use-pci_find_ht_capability-in-drivers-pci-htirq.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:19 +1100
Subject: PCI: Use pci_find_ht_capability() in drivers/pci/htirq.c
Message-Id: <20061122072623.ECBFE67C38 at ozlabs.org>

Use pci_find_ht_capability() in drivers/pci/htirq.c

Signed-off-by: Michael Ellerman <michael at ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh at suse.de>

---
 drivers/pci/htirq.c |    9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

--- gregkh-2.6.orig/drivers/pci/htirq.c
+++ gregkh-2.6/drivers/pci/htirq.c
@@ -99,14 +99,7 @@ int __ht_create_irq(struct pci_dev *dev,
 	int pos;
 	int irq;
 
-	pos = pci_find_capability(dev, PCI_CAP_ID_HT);
-	while (pos) {
-		u8 subtype;
-		pci_read_config_byte(dev, pos + 3, &subtype);
-		if (subtype == HT_CAPTYPE_IRQ)
-			break;
-		pos = pci_find_next_capability(dev, pos, PCI_CAP_ID_HT);
-	}
+	pos = pci_find_ht_capability(dev, HT_CAPTYPE_IRQ);
 	if (!pos)
 		return -EINVAL;
 


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





More information about the general mailing list