Re: [PATCH] PCI / OF linkage in sysfs

From: Linus Torvalds
Date: Wed Feb 04 2004 - 17:12:42 EST




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?

I'd prefer to avoid having OF-specific files in a PCI directory. That just
leads to inherently unportable user mode stuff. In contrast, having the OF
directory entry that points to the hardware (PCI) entry makes perfect
sense.

umm?

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/