From patchwork Wed Jan 27 03:10:05 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Herrenschmidt X-Patchwork-Id: 75388 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o0R3ARwe021333 for ; Wed, 27 Jan 2010 03:10:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752178Ab0A0DKf (ORCPT ); Tue, 26 Jan 2010 22:10:35 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752229Ab0A0DKf (ORCPT ); Tue, 26 Jan 2010 22:10:35 -0500 Received: from gate.crashing.org ([63.228.1.57]:39950 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752178Ab0A0DKe (ORCPT ); Tue, 26 Jan 2010 22:10:34 -0500 Received: from [IPv6:::1] (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.13.8) with ESMTP id o0R3ADDX024396; Tue, 26 Jan 2010 21:10:14 -0600 Subject: [PATCH 3/3] powerpc/pci: Add missing call to header fixup From: Benjamin Herrenschmidt To: linuxppc-dev Cc: Jesse Barnes , Breno Leitao , Linux PCI Date: Wed, 27 Jan 2010 14:10:05 +1100 Message-ID: <1264561805.3601.165.camel@pasglop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org diff --git a/arch/powerpc/kernel/pci_of_scan.c b/arch/powerpc/kernel/pci_of_scan.c index b6b2e86..4aa1740 100644 --- a/arch/powerpc/kernel/pci_of_scan.c +++ b/arch/powerpc/kernel/pci_of_scan.c @@ -166,6 +166,9 @@ struct pci_dev *of_create_pci_dev(struct device_node *node, dev->error_state = pci_channel_io_normal; dev->dma_mask = 0xffffffff; + /* Early fixups, before probing the BARs */ + pci_fixup_device(pci_fixup_early, dev); + if (!strcmp(type, "pci") || !strcmp(type, "pciex")) { /* a PCI-PCI bridge */ dev->hdr_type = PCI_HEADER_TYPE_BRIDGE;