From patchwork Tue Oct 24 08:30:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiaowei Bao X-Patchwork-Id: 10023795 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 0EAFE601E8 for ; Tue, 24 Oct 2017 09:02:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F2BAA289C0 for ; Tue, 24 Oct 2017 09:02:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E758C289C2; Tue, 24 Oct 2017 09:02:05 +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 75CF0289C0 for ; Tue, 24 Oct 2017 09:02:05 +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=TJuQUhb5K+3HzXUcGEwICDCm3kzAX8dxETaxWrLnEmc=; b=QqBB65i0PHq9ll EmPOgqjTPAXz6dbb9k24+sEOWWFdzT/tx416fl9nYUcmRgmLW7CVUzzyS7QkNN5F82fVdxy7psXoT KIPZZ7fmiGYjSV+PLyCXJ56rRHrHLeZtt8/+vGMftjqvQMZcO7+AaXH82M8YtRx/yBQrk2F1BX0qx XINHHddqA6jQ6oDCSnTWrGcRB+dGonub5qXqfDGd+ETY5uF5VKOv9oIvjL8r6sLIqjAROloHz614C z4+m2CER2ZVbcTclTxckhA2RJdNk3mmWYjAwjEP7VJq1OrgOTe9SAqwdDlfSbkoLk2tslf4BM15Fx L6i2mv9UOF8OdDq5DWbA==; 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 1e6v5y-0002dM-8b; Tue, 24 Oct 2017 09:01:58 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e6v5f-0001us-W0 for linux-arm-kernel@bombadil.infradead.org; Tue, 24 Oct 2017 09:01:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=mPyC8jGmUMepAhJY0nZsgr3Ej+9RjfNo+CGh8baI7vs=; b=thmqlmMaiS4rJl3YQq6mSvTuM +oIPO92/RDhqwOFkBDpy5k3EVVNPvWEcCSE0OjAC9HHDaYseAD5te/cgkn2zwz4+39DmnUJNBi66F 6UIMOpDUB+kofHFDYK32hNPVcYuF7norGySbJRdlK4qt85JLeJCtEE0ZS05FDvx+HFckNE8pCYu7N bECkPjXCln/wLwFC3eAbxB4+cJnmCYfZ75VqaDvLTz4/Lv/l4iUQWoxraPTEDYPKYFmA0Upl2dyxB rK1L5goPmoMA0hd9bx3bOtaqeXmBb23aKXArscwV+C2X2ABpvZbz5or1kPQKugqy2iutLRFgFpnfW SMgrwxqmg==; Received: from mail-sn1nam02on0051.outbound.protection.outlook.com ([104.47.36.51] helo=NAM02-SN1-obe.outbound.protection.outlook.com) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e6uuJ-0001be-2H for linux-arm-kernel@lists.infradead.org; Tue, 24 Oct 2017 08:49:58 +0000 Received: from DM5PR03CA0027.namprd03.prod.outlook.com (10.174.189.144) by MWHPR03MB2704.namprd03.prod.outlook.com (10.168.207.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.156.4; Tue, 24 Oct 2017 08:49:19 +0000 Received: from BY2FFO11FD040.protection.gbl (2a01:111:f400:7c0c::197) by DM5PR03CA0027.outlook.office365.com (2603:10b6:4:3b::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.178.6 via Frontend Transport; Tue, 24 Oct 2017 08:49:18 +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 BY2FFO11FD040.mail.protection.outlook.com (10.1.14.225) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.156.4 via Frontend Transport; Tue, 24 Oct 2017 08:49:18 +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 v9O8mfxe031253; Tue, 24 Oct 2017 01:49:10 -0700 From: Bao Xiaowei To: , , , , , , , , , , , , , , , , , , , , , , , Subject: [PATCH 3/3] ARMv8: pcie: make the DWC EP driver support for layerscape Date: Tue, 24 Oct 2017 16:30:45 +0800 Message-ID: <20171024083045.31135-4-xiaowei.bao@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171024083045.31135-1-xiaowei.bao@nxp.com> References: <20171024083045.31135-1-xiaowei.bao@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131533085588447785; (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)(336005)(346002)(376002)(39860400002)(39380400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(4326008)(39060400002)(1076002)(76176999)(48376002)(6636002)(2950100002)(6666003)(50466002)(305945005)(81166006)(81156014)(68736007)(356003)(498600001)(47776003)(50986999)(50226002)(8676002)(189998001)(36756003)(85426001)(5660300001)(33646002)(2201001)(105606002)(106466001)(86362001)(2906002)(8936002)(7416002)(97736004)(316002)(8656005)(8656005)(16586007)(110136005)(77096006)(5003940100001)(53936002)(104016004)(921003)(1121003)(2101003)(83996005); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB2704; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD040; 1:2mKwLQ9QkQJ1y8BnJ+5/F2DhcyorNEsGZnhBn0dnsSR9/A7D4XvjeghJXtuzIBn+JnNVrNTPFDOMWmycMEGctUYK2ygLO3q9shmTBuZ/bQmUZFAM4tuxUthhkjuqtMH1 MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2f7c1d25-30ba-4797-d6d9-08d51abc1d19 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4628075)(201703131517081)(2017052603199); SRVR:MWHPR03MB2704; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2704; 3:aulZX85Xi65BVh+XnJ+h5vH3gXqPvFae4v0semMa9BQFl03PyMMiTxfw3WU11c0tsUHqxkMHuOPwNGFiQ35R4H+wPCw1xXMLqomnfsTYGx02xnc37Z0lVZw6l9M8g6ZOcnvIkuNmGqSo+VQxz0uSB4DcmHale6DhBFtfkFyQtsTHOGCR6VYQQrRH00OGlDZ5m8UlOVoc31/W6zYVF5jdajF16szshEEaNdSmUiYkjW08jPZAmfG666N6pcKgmS4T1b12lk74M2SH1yBdh3IWIzezcgD5JAnBsFqEKt9miEIaZBkXH4qFpb+5skWkaB5OsfdSSKfuFWCBnHqc06j9BmsN/jlXBdxkvTGdJDocCdw=; 25:y98M8R9VbSBPNosHd0wugJCB5OIQq6X9G52P/d5kwMjJ8XHUqEN49HF+zf6/ghnhN1oiDSUCo1aGyGSWNAAEL7AQXRTyLbgdyWbdGpQjpfhsby/K9dgiK8y0DQgPmG+uxJtRWX92/XQ8SigV5zDF1W3Rv20kDMA1YI93HJSQBmdoj5ruBe+xhbL7yy6vEV5L8MqC8hhEqwI7EzW3+l6yAD9LOAbyyMl1O46VVoCHEV7sywl4f2laNOzZ7GU2zllLdvkJm6DDlMCc/GTM+gDgpJMSV9E51ic86cd42sQFQ8NWmxuMKKWsnnQo/WBzGQPbQRDkTYGb7tDhLPPuWfYg0Q== X-MS-TrafficTypeDiagnostic: MWHPR03MB2704: X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2704; 31:/TUrvjbi01iCkjGQEL+ImYkNp+gCEhi4g15+7FbxT8c5xsOpmuIMA6ESlQf7bEnmprrSzIGqF/Y1VCXnkwJUnVPiMhLxJEm1iFQpKKkwMv9dKmchCwLPF40I1HLu2S1SaBnL304rlzBaCnWiMEtRMRgCperh7jy76Y2bHad0k0olestugXSofQuacRqonhphEgiHvKsIEaLnUS1szHXu4l5o+P5D6Nld3bAA8y3uXR8=; 4:M/lw8sQBIAjSFccyb/w01ALQKhlVM6mPP9Fo7/nVIq8w0mBDaCPPmGq+dQGozBwJfAfUKtgYlfE7LsJpMvpeihn+hWmr6sReTqB7YhBi4kTlvX7SZIcOlHx7T+xOPu4NmaOL0QazpSas1utmx3B4VL4Fd0geqsGT+LxvYxjbf3a5x/5EEtOncU2XTKAckH7H+M9LerMzt5HK1/oOeTyVOoB3O8h26fkQiCxbe6Ef6MrvH1zX50lmEs5T1BMlKegkEp0Q/FssCHldIWANuG5smAFSPefKYptlxRas335udzY= 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)(5005006)(8121501046)(3002001)(3231020)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(6055026)(6096035)(20161123561025)(20161123563025)(20161123565025)(20161123556025)(20161123559100)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:MWHPR03MB2704; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:MWHPR03MB2704; X-Forefront-PRVS: 047001DADA X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR03MB2704; 23:O+vNJACnSS20690sh+JfS7GYrbO/i0AtCbwFhiKdk?= =?us-ascii?Q?ljYuPgh30x8usMncOUrenzdYzLIdjHdVtFs3aHbgvj9q60KvpbDRsv0nWXAU?= =?us-ascii?Q?ceazlly/IsgswWTDwHI+FzWDNzQu8Hna/12AGlEh8yiour8UUxgb2ody5WTn?= =?us-ascii?Q?jUppPHLr/gbjCssW35NhWqDW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zh8nqXnozS7wBkr+gtXqKMeVyy85SZLpeIgNlbaH8hLMXUNq/+9T6o2AH1/jzPWgUC3JPHf3ws4QyYamxvDAzmNMuBsaxLdInkTDyV6uLqA4jkE2QCQ/IkEI5d2fCH+0DC5PJmklQhlUY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Oct 2017 08:49:18.2675 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2f7c1d25-30ba-4797-d6d9-08d51abc1d19 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: MWHPR03MB2704 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171024_094955_370770_437834B9 X-CRM114-Status: GOOD ( 16.53 ) 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 --- 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.