Re: [PATCH] PCI / OF linkage in sysfs

From: Greg KH
Date: Wed Feb 04 2004 - 18:16:25 EST


On Wed, Feb 04, 2004 at 02:08:58PM -0800, Linus Torvalds wrote:
>
>
> On Wed, 4 Feb 2004, Benjamin Herrenschmidt wrote:
> >
> > This patch adds a "devspec" property to all PCI entries in sysfs
> > that provides the full "Open Firmware" path to each device on
> > PPC and PPC64 platforms that have Open Firmware support.
>
> Wouldn't it make more sense to go the other way? Ie have the PCI devices
> be pointed to from the OF paths?

Or, if you really want to be able to get the OF info from the pci device
in sysfs, why not create a symlink in the pci device directory pointing
to your OF path in sysfs? That would seem like the best option.

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/