From patchwork Tue May 26 12:49:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 48976 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 577982121F for ; Tue, 26 May 2015 12:52:20 +0000 (UTC) Received: by wixv7 with SMTP id v7sf21362728wix.0 for ; Tue, 26 May 2015 05:52:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:cc:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :content-type:content-transfer-encoding:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list; bh=lpspuF8dXHY6Vf7PoHsSY2cxks3cFL/b8S3Tw018rRs=; b=IP2gyBvGMXHYzh/EGmKJQVL0HCb1R0AXjJhy8LbgiUR7mOx2Cj8w+PjpliLU2xeJSF bnmDNIyJussQxBe/URPcNniH9+IH0eyOuFbzU3PndmM76vTZC5EXqgmuxgGJyQzQCYbx xO1aXWz66DGb6winOZcCNzxXyZkxRirfRBvvSBbacpfvLAHP5J3+8ni+t7OLdDBPVVb9 vukTgYs6ijaWqq8ZSMqAKwY7aUQGrxSlugrIt05iqROU/CruUmshJlV1Kfpik0nEsgqQ YMU/YGvcZc/UmoZjL6y+jHn9eo4b6a+1aVOe2eQpzU8w0Q6y1pObv67d5eg/4ehczrU1 PtVg== X-Gm-Message-State: ALoCoQkYsYyydmkwVNVlsi+sZDVtg2+ivci54hUVRoIdpr21mwsE/FHoKfJs6VKXEInWLAW+eYbw X-Received: by 10.152.87.140 with SMTP id ay12mr27301144lab.8.1432644739647; Tue, 26 May 2015 05:52:19 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.21.230 with SMTP id y6ls960419lae.20.gmail; Tue, 26 May 2015 05:52:19 -0700 (PDT) X-Received: by 10.112.130.129 with SMTP id oe1mr22074872lbb.37.1432644739439; Tue, 26 May 2015 05:52:19 -0700 (PDT) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id w5si10905322lbb.37.2015.05.26.05.52.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 May 2015 05:52:19 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by lami4 with SMTP id i4so66889005lam.0 for ; Tue, 26 May 2015 05:52:19 -0700 (PDT) X-Received: by 10.152.7.7 with SMTP id f7mr22965164laa.106.1432644739287; Tue, 26 May 2015 05:52:19 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp2526033lbb; Tue, 26 May 2015 05:52:18 -0700 (PDT) X-Received: by 10.70.25.37 with SMTP id z5mr48759341pdf.36.1432644737480; Tue, 26 May 2015 05:52:17 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id kq5si20834057pbc.36.2015.05.26.05.52.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 May 2015 05:52:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YxEJb-0004NF-Kq; Tue, 26 May 2015 12:50:39 +0000 Received: from mail-pa0-f49.google.com ([209.85.220.49]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YxEJT-0004HX-Vt for linux-arm-kernel@lists.infradead.org; Tue, 26 May 2015 12:50:32 +0000 Received: by paza2 with SMTP id a2so83014714paz.3 for ; Tue, 26 May 2015 05:50:10 -0700 (PDT) X-Received: by 10.70.128.34 with SMTP id nl2mr23239621pdb.43.1432644610104; Tue, 26 May 2015 05:50:10 -0700 (PDT) Received: from localhost ([180.150.153.56]) by mx.google.com with ESMTPSA id i10sm3986524pdr.78.2015.05.26.05.50.08 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 26 May 2015 05:50:09 -0700 (PDT) From: Hanjun Guo To: Bjorn Helgaas , Arnd Bergmann , Catalin Marinas , Will Deacon , "Rafael J. Wysocki" Subject: [PATCH 01/11] ARM64 / PCI: introduce struct pci_controller for ACPI Date: Tue, 26 May 2015 20:49:14 +0800 Message-Id: <1432644564-24746-2-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1432644564-24746-1-git-send-email-hanjun.guo@linaro.org> References: <1432644564-24746-1-git-send-email-hanjun.guo@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150526_055032_130680_FF75CAF9 X-CRM114-Status: UNSURE ( 8.68 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.220.49 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.220.49 listed in wl.mailspike.net] -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders Cc: Lorenzo Pieralisi , linaro-acpi@lists.linaro.org, linux-pci@vger.kernel.org, Liviu Dudau , linux-kernel@vger.kernel.org, Tomasz Nowicki , linux-acpi@vger.kernel.org, Hanjun Guo , Suravee Suthikulpanit , Mark Salter , Yijing Wang , Thomas Gleixner , Jiang Liu , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: hanjun.guo@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 ARM64 ACPI based PCI host bridge init needs a arch dependent struct pci_controller to accommodate common PCI host bridge code which is introduced later, or it will lead to compile errors on ARM64. Signed-off-by: Hanjun Guo Tested-by: Suravee Suthikulpanit CC: Arnd Bergmann CC: Catalin Marinas CC: Liviu Dudau CC: Lorenzo Pieralisi CC: Will Deacon --- arch/arm64/include/asm/pci.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/include/asm/pci.h b/arch/arm64/include/asm/pci.h index b008a72..7088495 100644 --- a/arch/arm64/include/asm/pci.h +++ b/arch/arm64/include/asm/pci.h @@ -10,6 +10,16 @@ #include #include +struct acpi_device; + +struct pci_controller { +#ifdef CONFIG_ACPI + struct acpi_device *companion; /* ACPI companion device */ +#endif + int segment; /* PCI domain */ + int node; /* NUMA node */ +}; + #define PCIBIOS_MIN_IO 0x1000 #define PCIBIOS_MIN_MEM 0