From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 21C95DDFD5 for ; Thu, 14 May 2009 01:17:30 +1000 (EST) Message-Id: From: Kumar Gala To: Benjamin Herrenschmidt Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Mime-Version: 1.0 (Apple Message framework v930.3) Subject: removing pcibios_fixup_bus Date: Wed, 13 May 2009 10:17:25 -0500 Cc: Linuxppc-dev Development List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Ben, We have: /* Platform specific bus fixups. This is currently only used * by fsl_pci and I'm hoping to get rid of it at some point */ if (ppc_md.pcibios_fixup_bus) ppc_md.pcibios_fixup_bus(bus); I can remove this but would need to replace it with: if (bus->self != NULL) { pci_read_bridge_bases(bus); if (ppc_md.pcibios_fixup_bridge_resources) ppc_md.pcibios_fixup_bridge_resources(bus); } This is only moving the issue, but its a bit cleaner as the fixup I'm doing is because when we read the BARs on the virtual P2P bridge on our PCIe PHBs we get bogus values back. Thoughts? - k