From patchwork Fri Nov 10 03:48:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiaowei Bao X-Patchwork-Id: 10052361 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 052536035D for ; Fri, 10 Nov 2017 04:22:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EA6E728F8E for ; Fri, 10 Nov 2017 04:22:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DD8922AC12; Fri, 10 Nov 2017 04:22:25 +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 6814528F8E for ; Fri, 10 Nov 2017 04:22:25 +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=yo3mukr/+xF+A3WKvK8vdtZLgK81ZlD2qcc1qNTXxEs=; b=pe6iiglPttmjpm Awdb+hj1i5dhb9okCLh5VjiKlruAuCkBZ78RkCBsdmjA1Cc4Jv6JJvS2mOh6PuyiFv/nn9VYPo9bW RflcH42VoCIJRkQ4ekYyvXYykx9ZiONho3MDlbiIlu6nakslsVCLQG8kML0uLwhm2FcM9wMGB8PrL 0x+8ta6vebVvkpiiMIydqkUkI8+mVc77x2S8pGY+MJmGe/KRP361R0qeV1r/YUUATWNuE3c3ciwDb kW9zE0KSD1Zzr+BN2ZQ4fSxlXQBgADS9deEzyniuagEMR7tZHgnO5wP8MyoCT0eHcYBbuaSnpkZJ3 PwhWxCivGhw7r1X87OLQ==; 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 1eD0pk-0004oy-Lk; Fri, 10 Nov 2017 04:22:24 +0000 Received: from mail-cys01nam02on0072.outbound.protection.outlook.com ([104.47.37.72] helo=NAM02-CY1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eD0bk-0004G5-OS for linux-arm-kernel@lists.infradead.org; Fri, 10 Nov 2017 04:07:59 +0000 Received: from BN6PR03CA0024.namprd03.prod.outlook.com (10.168.230.162) by DM5PR03MB2700.namprd03.prod.outlook.com (10.168.197.138) 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 04:07:52 +0000 Received: from BL2FFO11OLC008.protection.gbl (2a01:111:f400:7c09::127) by BN6PR03CA0024.outlook.office365.com (2603:10b6:404:23::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.218.12 via Frontend Transport; Fri, 10 Nov 2017 04:07:52 +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 BL2FFO11OLC008.mail.protection.outlook.com (10.173.160.143) 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 04:07:51 +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 vAA4716A007480; Thu, 9 Nov 2017 21:07:44 -0700 From: Bao Xiaowei To: , , , , , , , , , , , , , , , , , , , , , , , Subject: [PATCHv4 3/3] ARMv8: pcie: make the DWC EP driver support for layerscape Date: Fri, 10 Nov 2017 11:48:47 +0800 Message-ID: <20171110034847.17891-4-xiaowei.bao@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171110034847.17891-1-xiaowei.bao@nxp.com> References: <20171110034847.17891-1-xiaowei.bao@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131547604721171583; (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)(7966004)(39380400002)(346002)(376002)(39860400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(97736004)(47776003)(4326008)(68736007)(48376002)(5003940100001)(8936002)(39060400002)(106466001)(53936002)(8656006)(105606002)(33646002)(104016004)(77096006)(50226002)(85426001)(1076002)(2906002)(81166006)(81156014)(189998001)(36756003)(110136005)(7416002)(2201001)(8676002)(50466002)(316002)(356003)(5660300001)(305945005)(6636002)(86362001)(16586007)(2950100002)(498600001)(50986999)(76176999)(921003)(1121003)(83996005)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR03MB2700; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11OLC008; 1:KRzX+8hKb5CrN4EN8ry+yFd65VurXm2VSwkzTzTDZj5TBfqqg8obAhhXJult73CoCmAVCDiWc3vvtpD+aochf/8SaMsBpJIsqoc9tY6qUg3w+1i0YuCa4gvCnIM+JyBp MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1eadf26c-0137-4ae7-1b22-08d527f09cea X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4628075)(201703131517081)(2017052603199); SRVR:DM5PR03MB2700; X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2700; 3:c2ck6iPoAhtTaN2tq+91W8nZXQDOejj0/21oLlTnRAaIsj2Cd8dpwnCqQAza88pxI60ydYrmrIrbFPfZRRZ2sLTB5XI38tgtqS3IIbR83DIT4kRGLEqpuYIHkKcw47qvy1XywOvU4en/EDa/9JZiihO9JeCu4Q5dt+91j1P7UHUJu/WctbLLI7zSxUr9LEtRSHyPsY9YXj0/U6ytzm1C+/F8bS2aY1VUxHN7geIPr5qqeniYDafiiGf2UUNIwOvSwfSXU0JrPQnCiNGF4LfgemSqt6VkdmjKPE6ygc62poJCeWLABsdIvOH3Yj6XqDJYbbMEiUnfSHhV5Q1JQQwPVLYFm6ONTfvAH87ASkmyFA0=; 25:fEwXfEXIJIG5wLLWxGsNZlBz8nKmTtf4mMD+h61qGvM/SSemujAggjqEvjXCOqDIYlR6t9OfCiUJw7BD23n0MVULqnnM7TNgogNJVp5bEGZ0C40OwH+oDq2pseHWUpq+O0NMTk193zuhq8tR3URWuctvzXtInHQhMa24cVKWqwumphfXJz+hJROzInFOqR3KOMH0P0d16ZFijG6yolUy57BR/iiuIaeufWSBIdfA6A2l2VFwkhDlOrYIJpM4W+Nnf5zUGC7QZqi5IV9qTqYisgc+OYGhOzcQA/Ei1tPZTYbi/GaGi5+iL9LdOpNwTGmpo4S97aucYr9tY3BGcf2Bhw== X-MS-TrafficTypeDiagnostic: DM5PR03MB2700: X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2700; 31:ckZoCW5fueEvtevb5XY8kcleq1Z6MGuFSZXJ5QUK8HFrW5fnXBwOYk2T9MXXZCnsibVbIE+bf/Pyipd7wnQb5pbbHmul0m8nAyZ0QkpmMbxuZchQymqWahgG0B98qL84j0mjxmb75mf50PtSzawN0uggqTmMSfq11+KeeMn519E82MJiHLLy4rSKm1pXK/OhtRNl2IPj83GdpMsO2RVwe8Ta2aDrqSJG/b/qXgx8mc8=; 4:wK9iyZvgvLzkohdXtAUNq42wBD3gigllsicKeweoNB8jUIB99P0bRmc4l2n3/G0NpDF9Zm0roXlPtfFkOpU231c1pGUOUcnGXhfU8y+yel4gpGbV/IR1HVN4Z8qEFUFkUlw7RwWTsqbqaLNR1zU2gqdkn3mKofN32/Z/vbhSO+xdcqWLX33Y5ZEoMcOLNf7+RqPopMdjRVBELRdqJfvmxqCPDlB4syH9d3hTGUi4dk50GF3C8zyylnxrbPyrhl7wVLOpOc3zI4B3lNqhxpAdqlwgR0+1ZXheF5umvJVFKhX8yloaZTRCDyDUWBNa0U20 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)(10201501046)(3231021)(100000703101)(100105400095)(93006095)(93001095)(3002001)(6055026)(6096035)(20161123563025)(20161123556025)(20161123565025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123559100)(20161123561025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR03MB2700; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR03MB2700; X-Forefront-PRVS: 0487C0DB7E X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR03MB2700; 23:u1e4tMpsOwj3JhBQbWZzjW4xk2xvJQtCe3Vhlrnb1?= =?us-ascii?Q?PtCMl3w9P+nvG5SlREeAUgc524L42t0ePiTnu7AIjT3oqCJeQ1Tz3BBwUa/e?= =?us-ascii?Q?aZTA5YW1q1Xtw0ZDtRubKjGtuunq4e8vxDclnRWDMxoVQUhkWufv4yxSxI9C?= =?us-ascii?Q?qkE9YNIEqlbQ5rgJRMlaMeCD2fJfFZs3EmsrAybEbTdDPXQVaFNLc21/yCMj?= =?us-ascii?Q?T+XZj5f3yXXARTaxlM/UGX9cU/ZD/Ly7S9wSzsM2rsc1cWzGhT9e1bPkBo5S?= =?us-ascii?Q?Z6SHZbzqqfnAKiEYZQ0WrbD/rNyHeV6S8eqLvFj2jk189ZUAQ3SPlJ5pJj5f?= =?us-ascii?Q?PAir29wdfacYI1WLxbje7S1nJQCyr73tP+Tz5e8CS9+IOBEfTHMUoXByUl5q?= =?us-ascii?Q?WogVPs1pGcYDYk3x76YhjNkqYUeOnzm8Zgt7RbxrstzcHz0zz6xR0k0PJa7Z?= =?us-ascii?Q?Wr/ohrBg97a2QoPuP1ppejKDOjNMPX29CWNHCJbsEQYV4rjA+sd6rbsEIS2b?= =?us-ascii?Q?RIykK8a4Km4MlGUgSbtiebmvpsGyJ9HvqMV/w+8GH1VgO7BYZlxnxpiFEPIa?= =?us-ascii?Q?iryELiY/qbZLkOkal9nIAHjLJmIJVNr/5i8hpOR+4hi8PgdJbawRl6ZxsUJG?= =?us-ascii?Q?6cyIhX3AG+CU9SRQPhiKwWXRvZ/FO0HfQMBql+02cPAloo1UrAlTHlBeKoBj?= =?us-ascii?Q?T7e4kZuOj0xzwcSjkhSnAHbqe1auZivieyVV8BUMUJjGW9VPf/VDYz3/Nm2P?= =?us-ascii?Q?TiCCil4fLRQoFC5qheJ2SInpu8G1sCvt7pCToFV6XhUaSYDAQrnOtemuM/lU?= =?us-ascii?Q?9MtSOcG4O9tP6Ic3AvJRQ2/VtzJtBOb5B0XeaKWNf0CNulk/gCOVl77Tvlz2?= =?us-ascii?Q?g+K314wdF521aCJmjLZ9HOkdvXti6t/D5YSbxRNIdW/zEUSTXTDzKwm57RV7?= =?us-ascii?Q?hAoi1gc4bMaqmr1g4LObiILBOQI4KbxkJ0VNrLQkcl5Eo7Yx+8wcOHNll8vQ?= =?us-ascii?Q?Sokz7FkBtSlMuRUXGAN/3bRozbW3eYjdnMi7DtyMBWgG2FTiJEmB05J6C4n4?= =?us-ascii?Q?T9FwxdEWQlXsVFXD0cnFttiz1MjiygHK6xykemkahGO14kSiWtrcx70PBFNV?= =?us-ascii?Q?967Fv5BhCAipioNCbqtOka1cE1pwM0UHxUx4jkiD2N93IY4tPaufv+//HlKz?= =?us-ascii?Q?5O5jg37Mx1lP9FBAo3pXAH6q9DSfchgL9ChLH9yLBA8ve7yje76sdYb74aVd?= =?us-ascii?Q?MePzaa6zC0MO854L0qxEs35lAeu3ObiVhya3EuoYxJkix1V1VX5XRTUdCSKt?= =?us-ascii?B?Zz09?= X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2700; 6:cMIyzaX6DPhBSDxQLoX03WyxVsAifa2WIESSW7dEn+H2G09m8s4Ck63pvDI/PcQgMpgaXi4/8EQUb3dV+8hy9FH06Rqhy8yU8FHkRp39RtN4T6ynyu/H4rvCoEjtDByMwfYdkqYS11+5XE05dXhb5e7yrFN5YOJ44muX71vIxrx3cbJyCnIgGS57UXJrbMBx9Om134r7O8IGONwAuc2HAilD54I2LCCAFpJaZRWJIGahNBDngwxILaMhqTcF7Cxz++Cfg6wBWjC77arYo+kvWpRhLY4pxSQFjHPG5+5Gmeq/Z4+vwReb3fddgklX0cvmW8pr55UcsZtVvelcT+kXf1dmu/roaw0Ds32Lcz21YGA=; 5:ZZVowh5ibCBwwtObekWRiH2JibEA25Lw0HZNj5rv7bDpoeXrYn+KQnvHnY3J9c9/VPvj4JBMHksv4tPf6xYMgCbssABOih5DdMfu8xGuP6pLXZMovLk779lidqch2D99HxOvmQL1zCxdiCK4BJ1FuBG/qa2u2HBtbUl+hpiWPR0=; 24:E//UTftz71vhe8HXWtDw+iTuDJk0QsdEoV92jjD6R4e8So6TjXF9W7Z2O3SOmOo5DFnpbYnHeq4gzEwHtwVW7nyj6gzYO2qFcfcgfBkS6D0=; 7:e5iVO4U/e7WCD6fnqN4DL9qVjs1kkWMWsAgAzFHyakAZupwa6Tgma//S8RdhzDGEOLHI0gNMSqLbdbRqAj7eRKcUirsqUEKnBzd3S9SUYMo6dcsmsbvNsIo8KtD/LYPJJd+rijhjm+j0+a1rUjg2KpezPOliC51dRQYoHEh9Ea4gBrJbL86patkXMY7lzIqlXSAnPhDr9bEt+cn1A5wgQyardmLkLHLyz2kKBUZppZSbhdENIFA8zPGDcT++dnzC SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2017 04:07:51.6491 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1eadf26c-0137-4ae7-1b22-08d527f09cea 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: DM5PR03MB2700 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171109_200757_083927_115BEE2A 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 v4: 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.