public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [Fwd: [PATCH] Revive pci_find_ext_capability]
@ 2006-05-24  4:24 Jeff Garzik
  2006-05-24  4:30 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Jeff Garzik @ 2006-05-24  4:24 UTC (permalink / raw)
  To: Greg KH; +Cc: Linux Kernel, linux-pci

[-- Attachment #1: Type: text/plain, Size: 91 bytes --]

FYI...  I'll be applying this via netdev, since the Myri net driver 
requires it.

	Jeff



[-- Attachment #2: [PATCH] Revive pci_find_ext_capability --]
[-- Type: message/rfc822, Size: 3678 bytes --]

From: Brice Goglin <brice@myri.com>
To: Jeff Garzik <jeff@garzik.org>
Subject: [PATCH] Revive pci_find_ext_capability
Date: Tue, 23 May 2006 06:10:01 -0400
Message-ID: <20060523101000.GA15817@myri.com>

[PATCH] Revive pci_find_ext_capability

This patch revives pci_find_ext_capability (has been disabled a couple month
ago since it was not used anywhere. See http://lkml.org/lkml/2006/1/20/247).
It will now be used by the myri10ge driver.

Signed-off-by: Brice Goglin <brice@myri.com>
Signed-off-by: Andrew J. Gallatin <gallatin@myri.com>

 drivers/pci/pci.c   |    3 +--
 include/linux/pci.h |    2 ++
 2 files changed, 3 insertions(+), 2 deletions(-)

--- linux-mm/drivers/pci/pci.c.old
+++ linux-mm/drivers/pci/pci.c
@@ -164,7 +164,6 @@ int pci_bus_find_capability(struct pci_b
 	return __pci_bus_find_cap(bus, devfn, hdr_type & 0x7f, cap);
 }
 
-#if 0
 /**
  * pci_find_ext_capability - Find an extended capability
  * @dev: PCI device to query
@@ -212,7 +211,7 @@ int pci_find_ext_capability(struct pci_d
 
 	return 0;
 }
-#endif  /*  0  */
+EXPORT_SYMBOL_GPL(pci_find_ext_capability);
 
 /**
  * pci_find_parent_resource - return resource region of parent bus of given region
--- linux-mm/include/linux/pci.h.old
+++ linux-mm/include/linux/pci.h
@@ -442,6 +442,7 @@ struct pci_dev *pci_find_device_reverse 
 struct pci_dev *pci_find_slot (unsigned int bus, unsigned int devfn);
 int pci_find_capability (struct pci_dev *dev, int cap);
 int pci_find_next_capability (struct pci_dev *dev, u8 pos, int cap);
+int pci_find_ext_capability (struct pci_dev *dev, int cap);
 struct pci_bus * pci_find_next_bus(const struct pci_bus *from);
 
 struct pci_dev *pci_get_device (unsigned int vendor, unsigned int device, struct pci_dev *from);
@@ -664,6 +665,7 @@ static inline int pci_register_driver(st
 static inline void pci_unregister_driver(struct pci_driver *drv) { }
 static inline int pci_find_capability (struct pci_dev *dev, int cap) {return 0; }
 static inline int pci_find_next_capability (struct pci_dev *dev, u8 post, int cap) { return 0; }
+static inline int pci_find_ext_capability (struct pci_dev *dev, int cap) {return 0; }
 static inline const struct pci_device_id *pci_match_device(const struct pci_device_id *ids, const struct pci_dev *dev) { return NULL; }
 
 /* Power management related routines */


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Fwd: [PATCH] Revive pci_find_ext_capability]
  2006-05-24  4:24 [Fwd: [PATCH] Revive pci_find_ext_capability] Jeff Garzik
@ 2006-05-24  4:30 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2006-05-24  4:30 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Greg KH, Linux Kernel, linux-pci

On Wed, May 24, 2006 at 12:24:27AM -0400, Jeff Garzik wrote:
> FYI...  I'll be applying this via netdev, since the Myri net driver 
> requires it.

That's fine with me, feel free to add a:

	Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

from me for it when you do.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-05-24  4:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-24  4:24 [Fwd: [PATCH] Revive pci_find_ext_capability] Jeff Garzik
2006-05-24  4:30 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox