From patchwork Fri Jun 22 16:17:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Douglas X-Patchwork-Id: 10482673 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DA9E7602CB for ; Fri, 22 Jun 2018 16:17:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C544F28E5C for ; Fri, 22 Jun 2018 16:17:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B942028E5E; Fri, 22 Jun 2018 16:17:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B9E4628E5C for ; Fri, 22 Jun 2018 16:17:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934043AbeFVQRq (ORCPT ); Fri, 22 Jun 2018 12:17:46 -0400 Received: from mail-eopbgr710085.outbound.protection.outlook.com ([40.107.71.85]:40416 "EHLO NAM05-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933995AbeFVQRp (ORCPT ); Fri, 22 Jun 2018 12:17:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cadence.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ct8CbJoLU6c0lIUeaPABvg9QutuOkVOAkyFh5dUbQlw=; b=FtHYnB80E5f7LBR9eshhY2A9Gtay3T3JsI1YLMHzfl/Tji4Gnjqb/B89fA4ZFQgGH11hAZ8V66jVJjlHn572m5o2L+7j/d0/9V3WI2ZygXf+4nx5QvpoJLK0wekmUBnFG85mTnRaiVZ9miLOUiGvMnj9YTKCODpTnxeWFsxDqno= Received: from BY2PR07CA0021.namprd07.prod.outlook.com (2a01:111:e400:7bff::16) by BN7PR07MB4706.namprd07.prod.outlook.com (2603:10b6:406:f1::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.19; Fri, 22 Jun 2018 16:17:42 +0000 Received: from CO1NAM05FT047.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e50::202) by BY2PR07CA0021.outlook.office365.com (2a01:111:e400:7bff::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.884.21 via Frontend Transport; Fri, 22 Jun 2018 16:17:42 +0000 Authentication-Results: spf=softfail (sender IP is 199.43.4.28) smtp.mailfrom=cadence.com; ti.com; dkim=none (message not signed) header.d=none; ti.com; dmarc=fail action=none header.from=cadence.com; Received-SPF: SoftFail (protection.outlook.com: domain of transitioning cadence.com discourages use of 199.43.4.28 as permitted sender) Received: from rmmaillnx1.cadence.com (199.43.4.28) by CO1NAM05FT047.mail.protection.outlook.com (10.152.96.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.906.10 via Frontend Transport; Fri, 22 Jun 2018 16:17:40 +0000 Received: from maileu3.global.cadence.com (maileu3.cadence.com [10.160.88.99]) by rmmaillnx1.cadence.com (8.14.4/8.14.4) with ESMTP id w5MGHYVg018242 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Fri, 22 Jun 2018 12:17:35 -0400 X-CrossPremisesHeadersFilteredBySendConnector: maileu3.global.cadence.com Received: from maileu3.global.cadence.com (10.160.88.99) by maileu3.global.cadence.com (10.160.88.99) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Fri, 22 Jun 2018 18:17:51 +0200 Received: from lvloginb.cadence.com (10.165.177.11) by maileu3.global.cadence.com (10.160.88.99) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Fri, 22 Jun 2018 18:17:51 +0200 Received: from lvloginb.cadence.com (localhost [127.0.0.1]) by lvloginb.cadence.com (8.14.4/8.14.4) with ESMTP id w5MGHXjA010981; Fri, 22 Jun 2018 17:17:33 +0100 Received: (from adouglas@localhost) by lvloginb.cadence.com (8.14.4/8.14.4/Submit) id w5MGHV8L010942; Fri, 22 Jun 2018 17:17:31 +0100 From: Alan Douglas To: , , CC: , , Alan Douglas Subject: [PATCH] PCI: Update Makefile to move Endpoint library before controllers Date: Fri, 22 Jun 2018 17:17:17 +0100 Message-ID: <1529684237-10424-1-git-send-email-adouglas@cadence.com> X-Mailer: git-send-email 2.2.2 MIME-Version: 1.0 X-OrganizationHeadersPreserved: maileu3.global.cadence.com X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:199.43.4.28; IPV:CAL; SCL:-1; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(396003)(39860400002)(376002)(346002)(39380400002)(2980300002)(199004)(189003)(36092001)(105596002)(50466002)(106466001)(5660300001)(36756003)(1857600001)(186003)(97736004)(2201001)(26005)(69596002)(86362001)(336012)(51416003)(48376002)(8936002)(316002)(6666003)(305945005)(107886003)(8676002)(42186006)(16586007)(36906005)(486006)(478600001)(81156014)(4326008)(110136005)(426003)(81166006)(356003)(54906003)(126002)(47776003)(50226002)(2616005)(476003)(53936002)(87636003)(26826003)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN7PR07MB4706; H:rmmaillnx1.cadence.com; FPR:; SPF:SoftFail; LANG:en; PTR:ErrorRetry; A:1; MX:1; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM05FT047; 1:Mx8za4cJkjVlix0o/5DNGQzvY0Xs4Xf5Ich4aqoUZIMuwKzfL4k7r8OhhQuYn5ga4C/Uaf8FEmi1GHnDNMkyyZxjCm74qcuGjVyM0GpZi2RcAgy+xYIRROjGZy1jfyp0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5f09ccb2-c06d-4b5f-c818-08d5d85bad92 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(8989114)(4534165)(4627221)(201703031133081)(201702281549075)(8990104)(5600026)(711020)(2017052603328)(7153060); SRVR:BN7PR07MB4706; X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4706; 3:I9o4ijD4H8FimlmAxz+2Pg1pbocbZlrj/IzAydH9bn3wvSXRLDNpEBGYm2vkTF+/pTzet54PIIMjzycrtjIr08iE1Dd2t+6LViwxbQE0WXFcH8E3jA/T1adAjy4t7QrI/sg65R2/D4LxF2gENXFACysidFi4Nt6x/l/sFMA/FUNjofu/CFDo95zPvXsPG/qPQxCjAmHVvExKClBg1Z9BnubUjPtYxm+nLlMmfcbxwBnpVLqiq3UNib/mTp1EVTKSu1zBnHd1naminmWQ6+PShTrW6bK+52q8514lXyxocc7mKNiYxni5QzVXCekYmhMvb2X06XwZ9SyqqZDr2Z+mr0pbkzC2slxZ8RyUSDB/8Ds=; 25:FPmXhfRHMVF05FfDTjqXz7RSjCxSgK3sdwpSXiVNZ+PngO5BEi31A9xU+PVit7fCS36FYg2HHorfruRyWuSATO4BmXcsy8vvUe+5ahIL1xM+n+uvApNJp9GSpc5391DcSDY4lj5DcVIMuE2mUv2dQcPmkyU4uj82iu252u9AT+AE5X2lb+ALaPuqHQfyQ9s69yG9bgXlZP8n8+00ExlyImhD1JODPv2AktLkxRStcCxb+8O/M9W/0s1KMYzU9ITUPoWhivZmAV6Rb9r1htujlUzE1dxsuUew8TFuebvmh0+MRZhz9Mgzma8ABnW28LdNbSr3Kcqi/Bht6Phjz234Dg== X-MS-TrafficTypeDiagnostic: BN7PR07MB4706: X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4706; 31:e4md7XPChUm13Rug1m8u4KchlMYNwdcBxLSW2eB5FSmL2xGY3eX2eWlBSL9OREjj4yETjc0PGw41Zl47wZNTAMtQN/RdqRz4T+y2lvxwiSQtUAu7iXdP3BTrKf0PB0Ul4dMYhiNABVdeZGb3R8h1H1hFCGNkBgUz58hvKMS/g2VTjhYjFMvhQTMdEnBKLq08jWzevAxb9ufoIj874wueqfpKJC+jBc72mywI3CEDjqk=; 20:yG5cbZ6NA9kSd5WI6B3CJSZ6MoVb/JI805fzbLEft74PEySQkvWZSjU5WJi+y8JMeIcn+1prl+K014vOs95MtgWS+HhPoGkR4PJmPk1el3aNVE3bnRMande4tRJU63R9o/1c2j40ZuLv7y2C0L9vlmGFpSkmOCKRTdEs+e9dvIBQw48mxQYc8UfP3YwvPRJhtBwoYOHemo8lHuieGFI7nWPqQu/5fw8sEFXJVSRD7k97YgEQtINPV6jI+dmmZBcPzRxegQdbTg+dzS3Pwp+xCEVv8XwsCH9eT4mTiPJiRr/gio3RzxEJ6NnZ/V8YQgg+pHsKPglgYqS6vvJjxjES2SzLQuwLI60a7YvbOxbeZ6suLJqHXdF9a8MgWgdGOEJ9mSXaLOCt9iNUMtgaZDkWimgEN4HKfYISHmMrTlxlOXOhmVGSke24fo4XUgff6dyHmUlXuOsYdNBpIJS/e/xEjPcUWeaywYp3Ia8Dijmgz8I5591Utie5QgT82eU+QoCm X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(72806322054110); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(93006095)(93003095)(10201501046)(3002001)(149027)(150027)(6041310)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:BN7PR07MB4706; BCL:0; PCL:0; RULEID:; SRVR:BN7PR07MB4706; X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4706; 4:K5mvwWBwkLmGNmg1EcGgqG+oCoTTLS+/MLVqzxeDoYbUJjWr0TDkUeNlyldjkboeY5G8C7va45A90/m41X36szrGNS098YjAEQyhjX0R0KX2+E4+vqJiKJGnCBvDIV9B5Kp+VAgPFgfwEt1mh4IKCTrIT4eElpJMdGal2564KR0kgd/VaW59AIInqFAU3VqlRFR7D9DDoj/ULRtUuIxWXZS6ORAyHt8Ch8NGhlBNkPycxWtYen4OmQJZ5RS2/IICGHIBEVsC8RvA/yMdpx57uIf3a1y+KgXjY0pRp5HfA/fu8IIInwybvwTnJ7TWhL0c X-Forefront-PRVS: 071156160B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN7PR07MB4706; 23:/nZTvqSlFTeEtt69D54dkhMtaLwkeiFHwMTrCofK4?= =?us-ascii?Q?WyHV4XJXDscfhwyS2pcpYP+NPJuzpI/DLwDpkKC8eXuuSlgLqX1td4rfUa9J?= =?us-ascii?Q?IgknBcjyAUUiHrPQxcQFG+jNpp8O1UE7NBeOxYLIHYdiOh1B8J5P/LkKP9xE?= =?us-ascii?Q?7eB61lPy6K/WDIPyabJhEzzxrRM0BjI0AzoZUS4EzQ7GIWTZm5FSU4n5nozI?= =?us-ascii?Q?HSKBNBRQ6A2PMOpBqE65btJZCCGkC3g7ZUc+L5HHnZ1cCWOxkjU7XIfa+fKP?= =?us-ascii?Q?WUVR65z9JWI6ig9HxcenvmVmdhPSAG1cPPHt6phq5HVTZDlxy/SwrqlqBGcO?= =?us-ascii?Q?VKqLFOwiQLIOx1fm3m6/G0yDan1Bmh48vHD/bPobwpy0oHtFPgB96cqf15Ep?= =?us-ascii?Q?AfQDJrXBKDc6RxgZ8tkkL1nKeEs41NR+7aXTN0kSrZMYZMrQmwQGirhZVi4T?= =?us-ascii?Q?HuHwZh3BAsyivcYlVWNNeEf+JheuDk1EDjCYj064rPsx1IyvJ2bkrI7NWepe?= =?us-ascii?Q?Ofv8rdFh4iHcnIZBjIvFdaqqrA/mhgGIneNSet8ocBADCuyU6ZpDKMLlNPPO?= =?us-ascii?Q?FOH5QD8koj+YUWWhmODRr3o3awOq0PHDh5HINoni+PMgMDpgGzH5ERst4lms?= =?us-ascii?Q?ZQ9loyEisMf4GaHgAKE0B+2ab6BPddVoeaLjQon3MO9L8bAomqHucUOu6nne?= =?us-ascii?Q?hcpZSOgvv47BXs7FYSAi+clua3srJcEUMzrCMP+7NT6V+sOzytyrvhb4ITSQ?= =?us-ascii?Q?iCLEmjdAzOTvIT5ELn3/Ddw55UV4E2tOzbn5rHccCmPF/mmfwfJyv2Idget1?= =?us-ascii?Q?s2AkV0zin3rF1mvEVgXKU9ppt+/njQfjyMDZz08ndorKcC0iGeufUng/Kf0l?= =?us-ascii?Q?FguNzYcd/KpW83KR707/OHeL+e7XiWbm18trwpgEBOzweaBqNlOQO9aYKLRc?= =?us-ascii?Q?45XTQG3Lynslms99pu4UseVtQtwLgW9FTfJU+gmiXSinrLbuc2WVU/HtZS2o?= =?us-ascii?Q?klcnBfmf1ieW9kc18l58PnpuCSec+z39JrWUYY0V1zcxeqnQaIQKrT2tDkcD?= =?us-ascii?Q?KJGKLmJX1F4X2mSxmC40PdSwt4Fp1YFDu+qWcBdKxhyHKjbkOmCvQgVxaZEW?= =?us-ascii?Q?G5+pHs+BQPEZuQs+6GS9TWpoFw59gMwAgaBU/gjQxW+gUbBRqMP3Q=3D=3D?= X-Microsoft-Antispam-Message-Info: llJUKODo8Szyr66FktXyqbg7IaV1f3rxqGym1zG+QM93s03Te47x+8KMNqJCcDXBp8tTp2SI2QumAU67t+b3rR7NHPmCoXCSioJZxIjhaAYELX/PnLq3Tzw299fYOlXhRZrYGWhRw83ZPEvFR+dkxgnfkHAj8vI17IW007MbU0qDw1cfzfFIj+bcG3naDjQSN45UmK3XoPoF+J2AtxJnq0awGDPhWE/drEtatK+n3rS5z/lg7AFa5xyQAEzsPgi7SHl/WyK2DtUt+ALjEc5FdkPUKAi55o/hendRcY5p/rntOiOLexsvU5M/f058kbcFmtqGvknHmBlNZXYNCWGOCuNT0lFkZr+yYwggPoE078Dfc9H0MgLyu791zldYV2ym X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4706; 6:3tiPmlOXfIBKmDlqvfjWMvBGjGxRXTXDjGQ560471ZO8vA6/ejCR7gbHuFe1V67BilrQbj9Gv/9k61tV+VCIqIBWioLC64mr+IKjf5BEG6k+kipQtWsevF9Nr1c0CKp9TJs2pDyhpP0Y8PvDO+ee2RI66PE/+PCF+mdWc0rSZdmdSAuN1y3SrcMJFdEAnzS9U8dcoOGTgUXb5gjRQhii6hbD5gC9ANY186s3URt5YCvBVqFewOe6LjJOeWIgLajmEaJqPNgAPUh2i2+VQuFr6xM4+e9JctzhaB3LpWQsdp99jlVVVjgq88ZU/v05FeOZ9OuUwp8fJPv1GhUtMkTtQPe2S4pMc2oubMUxHoNaCQeFyfeuAC3a+YXPjtSzeTCPb1fYGOpMjrrBzJyS7jx2PfzkbOyNgiyrMHoS5m0goy9amzy/+ru1q/UWnjABx5SUzHvU0Zia1pyglt9MfV7qPA==; 5:cz+P6TnlPl9uKymtjASOI56A2QgHH2dkQZ2CJ9avfD3G16TJZ/sG592WqeUoUnadCugMOXvxq3dgZqP0AWOxxEn3rpW5rFTN6MYwRPn3ggKD2sDEJ9WTssL8Mrzxjg0tmB+8cXB4f6i/uVrkjXLepkwWhqTzhFeTg1za8EA4T5E=; 24:TwVRyySMppv+CiFe7W6iiQKbx0B8YogjPjrUeIJAds8IgQAvrIGMZfgAVGCtmY9u50JCGVNH+GVkVfoBVO6MO2d3CTKsT6InzotT+AGcfGw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4706; 7:vWN/AKcg9E4tfgQZ4FzRCaht9hPe4DlyPFpeqsmmLdhF7++n3TAC50KlYHWWYhAZ02iBQMoVdcGoGc2Za8R0DSc50A+K/gnOrIUgXlRav80BRS+q1psGorVzJbNPltFkQM/gj41M07YSU7XtRfiGvlEAyY4S49XmoAykYmK6nJpEOv2g1Goo4mO6m1/1H0ljg88Pf14ljmdNwnGthKhZ5m8f4P038f1lVOWb7R2wwdi/pAPZTSBQLQdXtO5Ev+Hx; 20:0/FXrt5TTsMdN5mIbVrFsws6vQKUZIg9/fDk8dTY8tJfgocKzRWfDckpggx8vFoLvoRPyyUnS2HFlQFMjjNzgf9DUvwI5313iD67+h1w8C2aryphHCayxiLac+snWPBApFfVp9bxp9JvLJKMNc/lA5lTuth2h4e2HL7I1ejzHWeFt18ETTOaH6heP8f42+r7axHACgH4payohfOZxDMiORLdsuxuGYBrSK6L0JXuL3+EZrytCOiP6QT2tshqjHAj X-OriginatorOrg: cadence.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2018 16:17:40.4744 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5f09ccb2-c06d-4b5f-c818-08d5d85bad92 X-MS-Exchange-CrossTenant-Id: d36035c5-6ce6-4662-a3dc-e762e61ae4c9 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=d36035c5-6ce6-4662-a3dc-e762e61ae4c9; Ip=[199.43.4.28]; Helo=[rmmaillnx1.cadence.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR07MB4706 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The Endpoint library must be initialized before its users, which are in drivers/pci/controllers This change corrects a kernel crash when loading the Cadence EP driver, since it calls devm_pci_epc_create() and this is only valid once the Endpoint library has been initialized. Signed-off-by: Alan Douglas --- drivers/pci/Makefile | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/pci/Makefile b/drivers/pci/Makefile index 5352019..1b2cfe5 100644 --- a/drivers/pci/Makefile +++ b/drivers/pci/Makefile @@ -28,10 +28,10 @@ obj-$(CONFIG_PCI_PF_STUB) += pci-pf-stub.o obj-$(CONFIG_PCI_ECAM) += ecam.o obj-$(CONFIG_XEN_PCIDEV_FRONTEND) += xen-pcifront.o -obj-y += controller/ -obj-y += switch/ - # Endpoint library must be initialized before its users obj-$(CONFIG_PCI_ENDPOINT) += endpoint/ +obj-y += controller/ +obj-y += switch/ + ccflags-$(CONFIG_PCI_DEBUG) := -DDEBUG