From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e23smtp06.au.ibm.com (e23smtp06.au.ibm.com [202.81.31.148]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id F152D1A0280 for ; Thu, 19 Jun 2014 06:51:14 +1000 (EST) Received: from /spool/local by e23smtp06.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 19 Jun 2014 06:51:12 +1000 Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [9.190.235.152]) by d23dlp02.au.ibm.com (Postfix) with ESMTP id D559A2BB004A for ; Thu, 19 Jun 2014 06:51:09 +1000 (EST) Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s5IKSxRT1900996 for ; Thu, 19 Jun 2014 06:28:59 +1000 Received: from d23av02.au.ibm.com (localhost [127.0.0.1]) by d23av02.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s5IKp8aq002227 for ; Thu, 19 Jun 2014 06:51:09 +1000 Message-ID: <1403124662.7661.225.camel@pasglop> Subject: Re: [RFC PATCH V3 14/17] ppc/pci: create/release dev-tree node for VFs From: Benjamin Herrenschmidt To: Wei Yang Date: Thu, 19 Jun 2014 06:51:02 +1000 In-Reply-To: References: <1402365399-5121-1-git-send-email-weiyang@linux.vnet.ibm.com> <1402365399-5121-15-git-send-email-weiyang@linux.vnet.ibm.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Cc: "linux-pci@vger.kernel.org" , gwshan@linux.vnet.ibm.com, Mike Qiu , Bjorn Helgaas , yan@linux.vnet.ibm.com, "linuxppc-dev@lists.ozlabs.org" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, 2014-06-18 at 19:26 +0100, Grant Likely wrote: > I don't think this is the right way to handle this. Unless it is a > fixup to a buggy devicetree provided by firmware, I don't want to see > any code modifying the devicetree to describe stuff that is able to be > directly enumerated. Really the pci code should handle the lack of a > device_node gracefully. If it cannot then it should be fixed. Right, I've long said that we need to get rid of that "pci_dn" structure we've been carrying around forever on ppc64. Any auxiliary data structures we keep around associated with a PCI device should be pointed to by the pci_dev itself, possibly using firmware_data or similar. Cheers, Ben.