From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S266581AbUBDXNm (ORCPT ); Wed, 4 Feb 2004 18:13:42 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S266601AbUBDXNm (ORCPT ); Wed, 4 Feb 2004 18:13:42 -0500 Received: from mail.kroah.org ([65.200.24.183]:16048 "EHLO perch.kroah.org") by vger.kernel.org with ESMTP id S266581AbUBDXNj (ORCPT ); Wed, 4 Feb 2004 18:13:39 -0500 Date: Wed, 4 Feb 2004 15:13:24 -0800 From: Greg KH To: Benjamin Herrenschmidt Cc: Linus Torvalds , Linux Kernel list , Andrew Morton Subject: Re: [PATCH] PCI / OF linkage in sysfs Message-ID: <20040204231324.GA5078@kroah.com> References: <1075878713.992.3.camel@gaston> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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