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: 10039747 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 829E36037D for ; Fri, 3 Nov 2017 09:51:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8658129582 for ; Fri, 3 Nov 2017 09:51:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 79FE429589; Fri, 3 Nov 2017 09:51:20 +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=-4.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F13AF29582 for ; Fri, 3 Nov 2017 09:51:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ar/RNKypnoIpcR9Sc8x7mOnXIY1Wg65utNA7molNTzY=; b=alPiGveAK6MLdY a5lyoMmOqY0xJZFKi2+CpeRH2A8ClU1u1jvsGkUs6vdMLjd5HP5CT0h9LtOcgP+2truEMXxKwDryv U0waQAkObxoVin+7tdnkTUA1tu72Jp4b34qbLYV9wmPtNNyXM4+CesrSIf7tTN9I+5DGX7+hlLQB9 e4I7dSNmh/0Fhy8CYCW1yATaOoBI7DSOuZ2DPzZbH8ekaZu7fSw47J4jUHfEtloIwnfuHytzfdOl5 iun0u/G5zmpO5tk+K5IRU0d2syfP5WpJD+DXAnLoR4m5C+70/vXstzm440Ma3Mv1T/svRmTseSZZh Ee3U3nu1FYIggWKnAoTA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eAYd8-0008VF-By; Fri, 03 Nov 2017 09:51:14 +0000 Received: from mail-sn1nam02on0060.outbound.protection.outlook.com ([104.47.36.60] helo=NAM02-SN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eAYcK-0006B4-DC for linux-arm-kernel@lists.infradead.org; Fri, 03 Nov 2017 09:50:30 +0000 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: , , , , , , , , , , , , , , , , , , , , , , , 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?1sxCnP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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171103_025025_043582_4CA2D87F X-CRM114-Status: GOOD ( 12.74 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bao Xiaowei Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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.