From patchwork Wed May 20 09:04:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 474239 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 01169140284 for ; Wed, 20 May 2015 19:09:53 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=GBE703Bm; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 605DA4B61A; Wed, 20 May 2015 11:09:52 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GT22ZgYQ7igx; Wed, 20 May 2015 11:09:52 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6AB144B6B2; Wed, 20 May 2015 11:08:56 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 27C034B624 for ; Wed, 20 May 2015 11:05:00 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id c0utKy62Y0Cz for ; Wed, 20 May 2015 11:04:52 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) by theia.denx.de (Postfix) with ESMTPS id 980534B616 for ; Wed, 20 May 2015 11:04:23 +0200 (CEST) Received: by pabru16 with SMTP id ru16so60010434pab.1 for ; Wed, 20 May 2015 02:04:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:from:to:subject:date:mime-version:content-type; bh=QT7RXY8Luj4yjP0kSek8Y0g77OCJ2zVL37TdcuwrjNs=; b=GBE703BmUPjiRpKk+S/xKYGwEuyQdzwgkF5pE27WGXxwzitTo9bb1MJ6JF8AVjsrKd ttAk6aJEwfKywDgKcRLVQHhSQP1+glz0Kf5pDROhuuyOUbtLX/ukK1swrYap22sVGkol pFTtIeVyZyAXmmu2aye9yGa4OF4e+la5v2SnTGD2JZcYNSIda2uaLbjeFecB1XSKGQ8r jHcMds50uv3xPw/zxEA8yrB+Gvl1sL34spipCaYkc4zeAdNk/u223UqDtwvtJKXz9VMj WMCNiHhG6nstMe8b4OcQkVnHdkG0S7syMTIaadATisez3kt+/xWKc14G6sBTpBlyA1YP hlaw== X-Received: by 10.68.232.194 with SMTP id tq2mr62157253pbc.90.1432112658901; Wed, 20 May 2015 02:04:18 -0700 (PDT) Received: from mail.hotmail.com (blu004-wss1s2.hotmail.com. [134.170.2.217]) by mx.google.com with ESMTPSA id ki3sm15437900pdb.74.2015.05.20.02.04.17 (version=TLSv1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 May 2015 02:04:18 -0700 (PDT) Received: from BLU436-SMTP175 ([134.170.2.215]) by BLU004-WSS1S2.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Wed, 20 May 2015 02:04:15 -0700 X-TMN: [B+E4z91raTyr7X1K25dw3k3dIrl/m2OH] Message-ID: From: Bin Meng To: Simon Glass , U-Boot Mailing List Date: Wed, 20 May 2015 17:04:04 +0800 X-Mailer: git-send-email 1.8.2.1 X-OriginalArrivalTime: 20 May 2015 09:04:14.0952 (UTC) FILETIME=[F202FE80:01D092DB] MIME-Version: 1.0 Subject: [U-Boot] [PATCH 1/2] x86: qemu: Make host bridge (b.d.f=0.0.0) visible X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" The default weak version of pci_skip_dev() in drivers/pci/pci_common.c skips the host bridge (b.d.f = 0.0.0) which is actually the i440fx/q35 chipset for QEMU targets. Make it visible in the PCI configuration space. Signed-off-by: Bin Meng --- arch/x86/cpu/qemu/pci.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/x86/cpu/qemu/pci.c b/arch/x86/cpu/qemu/pci.c index ac9c056..c09bdf2 100644 --- a/arch/x86/cpu/qemu/pci.c +++ b/arch/x86/cpu/qemu/pci.c @@ -69,3 +69,13 @@ int board_pci_post_scan(struct pci_controller *hose) return ret; } + +/* + * The default weak version of pci_skip_dev() in drivers/pci/pci_common.c skips + * the host bridge (b.d.f = 0.0.0) which is actually the i440fx/q35 chipset for + * QEMU targets. We want to make it visible in the PCI configuration space. + */ +int pci_skip_dev(struct pci_controller *hose, pci_dev_t dev) +{ + return 0; +}