From patchwork Fri Nov 3 09:31:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiaowei Bao X-Patchwork-Id: 10039735 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 26FA56037D for ; Fri, 3 Nov 2017 09:50:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 26E922955B for ; Fri, 3 Nov 2017 09:50:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 19E6729582; Fri, 3 Nov 2017 09:50:10 +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=-6.9 required=2.0 tests=BAYES_00,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 831C92955B for ; Fri, 3 Nov 2017 09:50:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751257AbdKCJuH (ORCPT ); Fri, 3 Nov 2017 05:50:07 -0400 Received: from mail-sn1nam02on0089.outbound.protection.outlook.com ([104.47.36.89]:41696 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932788AbdKCJuE (ORCPT ); Fri, 3 Nov 2017 05:50:04 -0400 Received: from BN6PR03CA0004.namprd03.prod.outlook.com (10.168.230.142) by DM5PR03MB2697.namprd03.prod.outlook.com (10.168.197.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.197.13; Fri, 3 Nov 2017 09:50:02 +0000 Received: from BN1BFFO11OLC002.protection.gbl (2a01:111:f400:7c10::1:105) by BN6PR03CA0004.outlook.office365.com (2603:10b6:404:23::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.178.6 via Frontend Transport; Fri, 3 Nov 2017 09:50:02 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1BFFO11OLC002.mail.protection.outlook.com (10.58.145.13) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.178.5 via Frontend Transport; Fri, 3 Nov 2017 09:50:01 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id vA39nNmS022617; Fri, 3 Nov 2017 02:49:53 -0700 From: Bao Xiaowei To: , , , , , , , , , , , , , , , , , , , , , , , CC: Bao Xiaowei Subject: [PATCH 3/3] ARMv8: pcie: make the DWC EP driver support for layerscape Date: Fri, 3 Nov 2017 17:31:15 +0800 Message-ID: <20171103093115.14915-4-xiaowei.bao@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171103093115.14915-1-xiaowei.bao@nxp.com> References: <20171103093115.14915-1-xiaowei.bao@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131541762020778874; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7966004)(336005)(39860400002)(376002)(346002)(39380400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(16586007)(77096006)(6666003)(86362001)(6636002)(50226002)(316002)(110136005)(68736007)(36756003)(50986999)(76176999)(498600001)(2950100002)(97736004)(1076002)(53936002)(39060400002)(104016004)(2906002)(5660300001)(7416002)(5003940100001)(8656006)(47776003)(105606002)(106466001)(33646002)(81156014)(81166006)(8936002)(8676002)(2201001)(305945005)(48376002)(50466002)(4326008)(356003)(85426001)(189998001)(921003)(1121003)(83996005)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR03MB2697; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11OLC002; 1:IywfLNX8Tu9XqMkfprfRyNY3bNe9pZcStAy1s4nrwFg/ZYP7ikrvnWkbXJ4hjQgQh2FTwGhOvetZK3fyuMAvrfrUHKkHGAvcRGjLtsjjIyhxfjw5OPJz1PBTDz4TBmYP MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e7ff0459-f5a6-4f8f-421d-08d522a040d5 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4628075)(201703131517081)(2017052603199); SRVR:DM5PR03MB2697; X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2697; 3:FoPtA2ofYi0QoKcHT/aWSdqTxyhlEGRWjoqErhTiC7iN9ql0K1Y6Xg1v0chRvZLXZO5txMIYr2TpIhqF38ce4qn04CZlZAdeF5nBT+WmMUEboH+uZQoBJ+G5nclkAR6iFORTSm62DwCehxCbxtSXLRduqNCe6OGeKRx2ZNzp5BSf3H5Pj9NQZbpaa2HoZcp4gCHS3GDRVpEJPV0B/Yogg6t7RDfaTaLmTSFjicGYP7+69LP7GaXTrHj/oyv+O1XlpvJ8bkgAamhTXdk+/VqSLBkmYqjk4BBQpyVDYdKrphjpoV5gEV0mWCJbeEi6q1T3pu8x9upJvhPQtdYoHjcmV3kO3GM+S4rmSobEgiOehXU=; 25:KLiJ+hW9o5mHbv7MaiIJRBtqfCYg6FYubqAjC4Yk0uoSR1N+KRbNmP5w0Q2YY/YHtOAT00ryvriW0iEgKYeb9Ucr4t9wO8SAJxdc5Jfcm4Cs+XMqEOAKQr03T5mCfOXSX5qKd2eKxWdoyHOV+PW2sT4XnbkTCFa7d9S6kZyMRkxVgz5s37F4gQ221z2r9/nhdozs77/0afMq5HiT9X3J/FcIWcWb8PxYC9Riz9u5tr1fxJUsyDbBUniarxCq8v7dDFSdsnhpPp66q4YLO9G3zlbplzr6PEdSKKZcuYkgiUM5C2yht6Qvrn5NgqxHaB104Y12F9JcMMv+pxevaXLYVw== X-MS-TrafficTypeDiagnostic: DM5PR03MB2697: X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2697; 31:NZcEJG4xgC4RlpINKKQJH9sTfwJXkk1S8YpyfKLoG1MzhYk5TlDKA8WKiyLKViX5yyE3u+Q/ArSddUtnrJNeD3sFitpQ32rSzd81960LfSnICmNyg7Kj/IjniXqgFRqFEKVsQaJIx/F6+QAsMSzEh54Alla32FfepviGJfPg20MzfxZlj+TFTCE5sA/QJoBxERsxWB2V+CXaPKkR39h5E5CrcX8ILwSpCFwdWDDtFus=; 4:ukZ6heEXaor3GAX7i9r8PigFXIpdFbQygeSwCEB2q4o4t+8vqH9oXoKo7HpXO0c8ReWhN6s6XBut9SytqHoZ2tyCoZirhXEJZzTrAbUVCeKe2povetwf73Qctdlip9C7m6qA4WJWxCvXtqIUQE0uXdpZrFMYqurloSx3g1duV5TapCDlsGzVW4NUoqZ8XBvaUqPQDGu/m4mG021VIyT7iM3xG4KRwDXa60KsGvNMeZ0ib870YO/b11/+y4XXbqhjTqr39Mcwrw1wclgTImVmOlhdX83bmfaTV0UKKRN09Zaf+Ij9Jtd3uq1Hn32GrDSh X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(3231021)(100000703101)(100105400095)(10201501046)(6055026)(6096035)(20161123561025)(20161123556025)(20161123563025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123559100)(20161123565025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR03MB2697; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR03MB2697; X-Forefront-PRVS: 0480A51D4A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR03MB2697; 23:RWF0rlr64Ylm7d9LKhyxym9Bzt5ancTq70kBywDcG?= =?us-ascii?Q?QtRDgGUvX/DHHeIcqbnBZRfkVK8jYksTtmVFlZZaklRzmS2MmcrAdVH/Bic0?= =?us-ascii?Q?JdzJEyHzDkcE+u1SDWnx5NclbKpNELTIfi03pVWKKj69GSElQVuz0r+vMBJJ?= =?us-ascii?Q?nPw7jxgX5S1ROzXFgGxOXFi2bv+IEt81SXyxiaS9YNklkppfzkHTpyvy3q3b?= =?us-ascii?Q?EvLDdcFjzsoiyqyx8zYGzCNkpbYeRqf7lAKsVC7EiRdtjg25A+8dUp6oGoqH?= =?us-ascii?Q?00K/hYMHLErBrKHCPhnTQ38fXgI7GGhGVYLwCmdWvxvKkW+BXiCG34hQ7Pvx?= =?us-ascii?Q?rqUl9ZwgNZR+o2g+0DpeEotlA3WMbenefiUqckEqKrEMPzldbiWg7kBzPGP3?= =?us-ascii?Q?MJQxGzHzJqPGWL9cwNHWPV+ZK1+Mb9uJPDLEqRrFBDFPiblSx92DKeKBlcUk?= =?us-ascii?Q?6ZbQGmIYpL+bnrONebgJ4hxIGL7scoVePFpwdHYC9wmAqvo/tED2bqgfj6C2?= =?us-ascii?Q?Z/1JhYvSGAR0FeJpUY9RetcD8zSPYWMU26MbpsU92d0FyyYj2ODNRtdafOVZ?= =?us-ascii?Q?nquHMfzGqzIe5k57f9nZJIPrDmDvmQuiudpbeqSyspZ7E0ticVSQKszlv2H0?= =?us-ascii?Q?Le54su/hYs0MwZFtNom1gNrJ89fp6//HiiJwtAVjqcMIiDoUP3+C6Bsh9Q4b?= =?us-ascii?Q?vpp5tGCuvKfS1c2V9kJZgjShK5ttae17fabHc6fb6D7DQ4Mu/v5pm0PG0gbh?= =?us-ascii?Q?1sxCnPA+4ZBc9t+We/iXtfIzewkBLt2+JLn9F0tsIeOmhztfdQQCgvXw0f31?= =?us-ascii?Q?urpexFeTsD3SkfX17QistGKDscHtI1isb18+iSpDQbyAaGoAdxpo+geboGNX?= =?us-ascii?Q?l6nPtiPANd/IUdjCSlkj11IJWqDYdAxnFfR2JUZ86NuvAQClGuUyfiB/e+TW?= =?us-ascii?Q?NX5h8zs+d3CnNMry3hX7xQ8WzH9U5sPORJMfQki8GTXu2YTWzd9JRhIUEf6z?= =?us-ascii?Q?6KWChR/Nj4WGUTF0MpMLNRDoItO9C9oZylRq3R9byz/QQHSyTbrc1JyuVCaN?= =?us-ascii?Q?nXt8y7rhS9dylQApAGtq3xUUG1llwe8p9oKYLsoyVjIEjK8SjwRDKD/LMQy6?= =?us-ascii?Q?MGkph+yB4vtyoazhnLgNXDregX4/QmwXTpJaWEPQAk7rEKO6v/L1bVlEK6vT?= =?us-ascii?Q?WgZsmMH2k/uP6f92TDUnQAPGTAZfCA9OBZxasd/v+UpKHnwHttvLdgbMcv7u?= =?us-ascii?Q?jQWuWvszlNa2TykLrovmL8nyoNQNRz2KmiliFwZDq7H7yBePBteGhapWJHqE?= =?us-ascii?Q?ObrOuTAz0Tu60DEngSB9MM=3D?= X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2697; 6:A7Sj8pWImorU47V/gpKbcIn0kx6HwXMEr4IiCGkDqIse1efAGjHfeJ/mj+1ZfsCHz79Kk/Yjer/yjERJZWx41NBlyDKzSY0Eo7RAqvBkeQVeqwyJ0PQLVb9/V9XV4FSXcodS5uoTKKr1+K/OLIsC/6XbAgwmL1F28h42GsJU9+wHjkGWgstMpeO29rHCtalThmwmZipk6KrRv2/PSp9lJL+wMOz3b2gzy9K/UC0eQFO6+cUhmUWSaAg283v3ZB44nynsH9nIMOYiEfbfpF/UBeQqv01Rq9+4gXVXgCLqSPteDgttTo57qqEJvOX5EpfyQH2v4+hWHUH8b5pg7eof7rCHhX2dJyOGdKZI5/uV7kI=; 5:NaOwF8UGGKoPOQ0Ywg6ZsG4yYFUxaPIF4CYgLZ6g6sLl8hayRfjesUHeAvVXGttlb4PgQ3gKazzOmpOXSVEcRu407YHAjL5py8Stj9NedCMTYyYqWC0QrFQwJ6L4RTFhN9UkwPJrGvN2oTWFUkqJTo0iVFsviR2rt+LJOSTdcaM=; 24:Aw/zMYOBykXuI1AucbQBe13h6y8NAElRAOIAi70Q7jne4QJbeGFRsPWE8nLS/bOUp+rRjJp2aCfi3jf4IWz9TsxWVBAsDVCpFRa/yBVCE1M=; 7:Z0tznfgy8/zVluUuCBlFKlB2YX4AHpZcl2By+T71Ia0yjxTBPaCGeZ/qCEsChoJMmTJrg2QKFnH3c4nUS6PQi+ULrlEL/yaVGHMOmW06dBvu2yqRBbbU3N+ArxjEsc5rQO/X3aCwj9xz7piWQf4d4mjChxA6ll22TC9jvLK6TTqh4l2TTeJFyBfBCKaT1/PAeZ5Zt//6oKwJ/5tUkTnJAIjXfd/Eu0vP9xDw3hqYsvgjroYst3Ec0FO4qIjeO7Qh SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Nov 2017 09:50:01.4850 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e7ff0459-f5a6-4f8f-421d-08d522a040d5 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR03MB2697 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 Layerscape pcie controllers support RC or EP mode, Add the EP mode support in Kconfig, the driver will support both RC and EP mode, and the driver is able to judge the pcie controllers work on RC or EP mode. Signed-off-by: Bao Xiaowei Acked-by: Minghuan Lian --- v2: - no change drivers/pci/dwc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/dwc/Kconfig b/drivers/pci/dwc/Kconfig index 22ec82fcdea2..b5f507795779 100644 --- a/drivers/pci/dwc/Kconfig +++ b/drivers/pci/dwc/Kconfig @@ -108,6 +108,7 @@ config PCI_LAYERSCAPE depends on PCI_MSI_IRQ_DOMAIN select MFD_SYSCON select PCIE_DW_HOST + select PCIE_DW_EP help Say Y here if you want PCIe controller support on Layerscape SoCs.