Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755558AbZFWB34 (ORCPT ); Mon, 22 Jun 2009 21:29:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751511AbZFWB3r (ORCPT ); Mon, 22 Jun 2009 21:29:47 -0400 Received: from gate.crashing.org ([63.228.1.57]:44744 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751313AbZFWB3r (ORCPT ); Mon, 22 Jun 2009 21:29:47 -0400 Subject: Re: [PATCH] PCI: remove pcibios_scan_all_fns() From: Benjamin Herrenschmidt To: Jeremy Fitzhardinge Cc: Matthew Wilcox , Alex Chiang , jbarnes@virtuousgeek.org, linux-arch@vger.kernel.org, Kyle McMartin , Tony Luck , Russell King , Arnd Bergmann , Yoshinori Sato , Jeff Dike , linux-kernel@vger.kernel.org, Ralf Baechle , David Howells , Paul Mundt , Ivan Kokshaysky , Ingo Molnar , "David S. Miller" , Avi Kivity In-Reply-To: <4A4019F9.4020702@goop.org> References: <20090622140807.25509.54448.stgit@bob.kio> <20090622143431.GT19977@parisc-linux.org> <4A3FCB68.3030004@goop.org> <20090622183056.GY19977@parisc-linux.org> <4A4019F9.4020702@goop.org> Content-Type: text/plain Date: Tue, 23 Jun 2009 10:33:53 +1000 Message-Id: <1245717233.4017.21.camel@pasglop> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 917 Lines: 21 On Mon, 2009-06-22 at 16:55 -0700, Jeremy Fitzhardinge wrote: > > I wonder if that would upset drivers. Assuming they can cope with just > being given some functions, how could one generically make a function > look present-but-dummy enough to not upset the driver? Well, the dummy function would have a totally different vid/did, I think that would work. In general, while I've seen drivers that -do- need to know their real function number to get to the right registers, I haven't seen much that also need to see function 0 "right" (or if they do, then function 0 just needs to be plugged in the same partition and the whole problem is somewhat moot). Cheers, Ben. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/