From patchwork Fri Nov 10 02:49:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiaowei Bao X-Patchwork-Id: 10052317 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 7A90960631 for ; Fri, 10 Nov 2017 03:08:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6A4762B0BB for ; Fri, 10 Nov 2017 03:08:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5CD532B0C4; Fri, 10 Nov 2017 03:08:43 +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 DF5BA2B0BB for ; Fri, 10 Nov 2017 03:08:42 +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=wtjyzp99XnNM4z8fYJHkmqn3h0wQMsdrRpVcP6muqy4=; b=gakihwH0yl3yBF gyp7+iu3hz+5pCZjJZyc5xXP0MHmcmLWAxj/xuTQuwS+Tz1aFcmgQgm2H+jIH3fhT2YpLv9IloXTG M5MX3MHnVrnJi7TmYKL4oRo9Gqm/3v0HvJv9eGnFy59BXqLiQYSvnk9CjexScX4dopZ98c87XDs3L K8sfVKdA1My2ctSzNg4VLvGzft4ZmgO0KKoIgrhkuPhNAUdCRPFamZezLwV9fjvo8QXNxJxAgvGpv tEGtdrn2P8yJDqYqzmh+48vGFNhAoj8lrEc66CpEx/rAqCO0jHswyUIZ+rskUWlwE2SGWdVHNGAnU ODj9snfP9+bkxZ3mcd7w==; 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 1eCzgL-0003dm-Do; Fri, 10 Nov 2017 03:08:37 +0000 Received: from mail-co1nam03on0050.outbound.protection.outlook.com ([104.47.40.50] helo=NAM03-CO1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eCzg3-0003MS-7E for linux-arm-kernel@lists.infradead.org; Fri, 10 Nov 2017 03:08:20 +0000 Received: from BN3PR03CA0079.namprd03.prod.outlook.com (10.167.1.167) by SN2PR03MB2366.namprd03.prod.outlook.com (10.166.210.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.218.12; Fri, 10 Nov 2017 03:08:16 +0000 Received: from BN1AFFO11FD043.protection.gbl (2a01:111:f400:7c10::164) by BN3PR03CA0079.outlook.office365.com (2a01:111:e400:7a4d::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.197.13 via Frontend Transport; Fri, 10 Nov 2017 03:08:15 +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 BN1AFFO11FD043.mail.protection.outlook.com (10.58.52.190) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.178.5 via Frontend Transport; Fri, 10 Nov 2017 03:08:15 +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 vAA37fFg032559; Thu, 9 Nov 2017 20:08:08 -0700 From: Bao Xiaowei To: , , , , , , , , , , , , , , , , , , , , , , , Subject: [PATCHv3 3/3] ARMv8: pcie: make the DWC EP driver support for layerscape Date: Fri, 10 Nov 2017 10:49:26 +0800 Message-ID: <20171110024926.39700-4-xiaowei.bao@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171110024926.39700-1-xiaowei.bao@nxp.com> References: <20171110024926.39700-1-xiaowei.bao@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131547568955599889; (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)(39380400002)(376002)(39860400002)(346002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(36756003)(86362001)(8936002)(77096006)(189998001)(68736007)(5003940100001)(356003)(104016004)(106466001)(105606002)(33646002)(50466002)(110136005)(16586007)(53936002)(4326008)(39060400002)(97736004)(8656006)(2201001)(316002)(50226002)(6636002)(85426001)(5660300001)(7416002)(6666003)(47776003)(498600001)(2950100002)(1076002)(305945005)(76176999)(81166006)(81156014)(8676002)(50986999)(2906002)(48376002)(921003)(2101003)(83996005)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR03MB2366; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD043; 1:Uf2zlau5fH7O71yGCg0W8qTE3eWZvk3+905dJVkpF4jdAv8Fm2Lw/NncdYvuHzbLBlobQQ5yorlWMI1iAtPPJUd21q9iOUkQNzACaboMfiqq1CzWu5oocDY0y4f2D3i5 MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 346f9b85-1757-4aee-cab0-08d527e8491e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4628075)(201703131517081)(2017052603199); SRVR:SN2PR03MB2366; X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB2366; 3:hW/UsElApCRwZf6rHIVtA9Guwzg5PAL6Jg5M7DNdxG6COqcL2rU88brzGQE0ATHGg0LJ1O0+JlXihUspvokn1qipxzIPVhostkIn4n1bZVI+IYOCzgO8Ucbuzc1DCB4oncNqLz6X0ooZ11jbuicxhg8dOzlDhj2PhBrt7/gCK46lRBAhnOlUf6jqHm7SottjIv91NAyhhR/A3rt2R/J5WuLJIllnKy609bnlRozsAaoLJJ+/Or0trhhjCFQ/vLdcAYgGa3sEU0U2cm3QJojqGlOk84/Anf9yHu9qltrRMsaXpPk2kXqgyifXrI5+eCh2086X0klTiLv+I7vqRr6PqHD1lALrMO9sdkeTeSTic+E=; 25:JCxapmilaWbq44OvrcrPbXuvd9wWrp/T/n7ZmO1S+0LQ2BcEFr0doo0TFo7Ti1T9HLI6ZjyNQMIxkttZFQcZ1GAy3sCoFQCQCYLe8AfOvM+TI0LSNuU76W/rFDLgdf18u/dCAukjj0hERm/8YMpBurB7ZtdFKgU8SBgAzAcknRN5vQufuo+TFo72e6phXLWlGy042wRkfngonseLx02ekox22jaCJJ9D8j/Ggn/mX4tlmX1dkRgcsOHqWEPO7fguVAFTgH7wrJyoSNvgQvF9wQoIJMxCvDiUQ7jLjVr0hjsTxikEwieNDh/1+xH3Ck/hYW832rUvxjpV+lrfpCVi6Q== X-MS-TrafficTypeDiagnostic: SN2PR03MB2366: X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB2366; 31:KIqvbt4Ut1syk960u8FM7lUD8MWQ7QNJrat8YGW+teYFXv+uG6jPemSZrYhpnPKRg+4xIdTDFh//0RY3abklt5e9/G51cxhzwHhvch3ZdGakegDyDOTZGg0A19Hr09atSk1vKa2iu8l61JFrsY3TZHLR8m0PkTe4Q5xys7Ncfm2kYcySwNAKw2CN/MmD3u8AwZEtxxEfz+R7AJH8VxoS8ceLqX4ALQZmvDmW/dV6LDc=; 4:yQ1qljE8c0IROItnJtb2VisgBaNy9Jqt7sxGIga4d7PJ+3Wc7GdviQJu1eL4R0KeE58tUs93K7guX+hvVsFmjuf6pg5EMSGvpDx6boJqxSqJABa0KfuEP0FHc/QfYon7gC2YyjDSR0fo6JwvCSQ/32DikhaqywiTKgH9xZjp+tJivvP0Klwerj8JQLcMUAwV+5aiCWF0UKG8lQ0SRG4Qhc9jjT0tC/6umMonCma+WGaW69tP6i4QMSfpZFKHY203nP2H/JsHsEWwwrCzz3EZbXowsSQMVvKB77Wf2AH/cwLmoYk0uIYc6P3sTzSlDMwO 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)(93006095)(93001095)(3231021)(100000703101)(100105400095)(3002001)(10201501046)(6055026)(6096035)(20161123561025)(20161123559100)(20161123565025)(20161123556025)(20161123563025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:SN2PR03MB2366; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:SN2PR03MB2366; X-Forefront-PRVS: 0487C0DB7E X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR03MB2366; 23:LjEZEOAQpLnnHwpKY5HI1CD49pnFKTpixxAVBzjRP?= =?us-ascii?Q?2E/cCEkpDV1Wf+YBapycvwynuwNhsyNp5Ut1ifhRj5CuoozQh639KMFPgbf6?= =?us-ascii?Q?J3n8al/Hl3MYITMD5corWP77Jtt6WdWCAXWOE2vT79VVPLfXlVo6a+ncRlz+?= =?us-ascii?Q?zSmlZkZvDIPNgeFj0iIeITdDkE18uOEYGFnJSPrADXBHGle872JTs8lhccR+?= =?us-ascii?Q?lOEbSyH8p3B7L7UV2f95u7jxmV0W2jZMAt0VN7uyjxPUut1FbPeRO32PrDN1?= =?us-ascii?Q?rbJCKtOdmJ+5//noZq4z0u070v1b1O/d1STgdIzJ6Qjlxjv8bdbxNtkyqRLh?= =?us-ascii?Q?1BHviPB4vZQArLD1zNFJvI+Tj8V+xdkwDhlm8CbjaFMlDCMtV66MsLzhI6mp?= =?us-ascii?Q?J5+zzscoYi4+aM6FwVtB45IeAX5dBakRgyZM0RL1hHsZ7HSWRFWF98nygmHF?= =?us-ascii?Q?x9BYxYjfU09NJFmgUeq5a4vtblJ/NOeQKsBEA9W2NxY8V9A6satRrNnMNc3z?= =?us-ascii?Q?yHUTLbrg/giZ5RDu5onjQOoLsolxHAvnGQlZIvghApKZh8+fPp3GWoS4kwNg?= =?us-ascii?Q?yfIhdUnJQCUKkWqLjp6D8cH+gA+ANZBwrtY9P14MfKsyN+iKjIl8UWY2Wuyk?= =?us-ascii?Q?FJ/CN7K9iYxjaydpFoHqW4kHrUAjrFeq7YdaDEgGTSn2ftMg1ETnGgb39IRU?= =?us-ascii?Q?RxLbsahLzaB41l3fAtE2YaiEkwxJdGsDa5qZQI2c0zMauMrqXCNK5W9tGPIu?= =?us-ascii?Q?UYmGyOuR11x+JpO5px3IME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7fBWb+dEXHu1R6Nr4fOrEEOD2FKLCCCxWaYs8jhMaY1ycV48qDX4Ld+eOi8ZTB2b4TnOGilP17ToYbB7aRQaMqxeVaRyHxZ5jl6qcaSK9Fd5KyXYGmvH+9hjlJq6NbCsT9ZBTcaYC70NVZ0cw2EwpPW0KIfwIyzNFBWzygReE=; 24:GwcYhGNCRlhsQ+5qkoYj2Lm4K78KTBLJegMI7XiSanVQTNXTk68kK7K7z5/AJFfTPGoOirADZRmCAbi6efhLnlD672nANL3C+35TAr/U0MI=; 7:M/dwODOxETMCTNVTWdzDDeUln7Q8ufo+9Tp2TLHXNruyNbDZtxOpCLKnkEIOe1Op1yzf0+gxuwF6OnyKos+6r73GWKS9MOPwB7VQupSWyo0U41jzaA+awdUmA4MRINipxCx+FdQ+NX7kGI3P9utfypmOGtGgvNfQgjxpSTJF4bHimFxROa1JIzA8hwtMYbZSDUAOqH6oQO0T/tz8dzmMgta8AEpY6oro1pw+28MJ/Y5eGw6vS1Tbv/mf9G2/lc5h SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2017 03:08:15.1075 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 346f9b85-1757-4aee-cab0-08d527e8491e 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: SN2PR03MB2366 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171109_190819_356321_A00FA0B5 X-CRM114-Status: GOOD ( 12.78 ) 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 v3: 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.