Re: [PATCH] PCI / OF linkage in sysfs
From: Linus Torvalds
Date: Wed Feb 04 2004 - 18:34:09 EST
On Wed, 4 Feb 2004, Greg KH wrote:
>
> 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.
Where does this stop? Do we start doing the same for all different kinds
of buses, and all kinds of firmware?
In other words, instead of having <n> different buses all know about <m>
different kinds of firmware information that they really have nothing else
to do with, it's much better to just have the <m> different kinds of
firmware information export their own information.
It just sounds _wrong_ to have the PCI layer have knowledge of OF. It has
nothing to do with OF. For OF information, you should go to the /sys/of
tree, which has the information that OF knows about (which may, of course,
then include the information about PCI devices).
Linus
-
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/