Message ID | 20170828105301.8511-6-Zhiqiang.Hou@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Delegated to: | Bjorn Helgaas |
Headers | show
Return-Path: <linux-pci-owner@kernel.org> 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 CF49560311 for <patchwork-linux-pci@patchwork.kernel.org>; Mon, 28 Aug 2017 11:11:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C3B0F2869D for <patchwork-linux-pci@patchwork.kernel.org>; Mon, 28 Aug 2017 11:11:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B89FB286AB; Mon, 28 Aug 2017 11:11:02 +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 6A38D286C1 for <patchwork-linux-pci@patchwork.kernel.org>; Mon, 28 Aug 2017 11:10:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751258AbdH1LKW (ORCPT <rfc822;patchwork-linux-pci@patchwork.kernel.org>); Mon, 28 Aug 2017 07:10:22 -0400 Received: from mail-bn3nam01on0074.outbound.protection.outlook.com ([104.47.33.74]:11740 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751234AbdH1LKV (ORCPT <rfc822;linux-pci@vger.kernel.org>); Mon, 28 Aug 2017 07:10:21 -0400 Received: from CY1PR03CA0031.namprd03.prod.outlook.com (10.174.128.41) by DM5PR03MB3321.namprd03.prod.outlook.com (10.174.241.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1385.9; Mon, 28 Aug 2017 11:10:19 +0000 Received: from BN1AFFO11FD042.protection.gbl (2a01:111:f400:7c10::169) by CY1PR03CA0031.outlook.office365.com (2603:10b6:600::41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1385.9 via Frontend Transport; Mon, 28 Aug 2017 11:10:19 +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 BN1AFFO11FD042.mail.protection.outlook.com (10.58.52.253) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1341.15 via Frontend Transport; Mon, 28 Aug 2017 11:10: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 v7SB9vXM006251; Mon, 28 Aug 2017 04:10:15 -0700 From: Zhiqiang Hou <Zhiqiang.Hou@nxp.com> To: <linux-pci@vger.kernel.org>, <bhelgaas@google.com>, <jingoohan1@gmail.com>, <Joao.Pinto@synopsys.com> CC: <minghuan.lian@nxp.com>, <mingkai.hu@nxp.com>, <roy.zang@nxp.com>, <niklas.cassel@axis.com>, <jesper.nilsson@axis.com>, Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Subject: [PATCHv5 5/9] PCI: layerscape: refactor the host_init function Date: Mon, 28 Aug 2017 18:52:57 +0800 Message-ID: <20170828105301.8511-6-Zhiqiang.Hou@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170828105301.8511-1-Zhiqiang.Hou@nxp.com> References: <20170828105301.8511-1-Zhiqiang.Hou@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131483922191052277; (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)(39860400002)(39380400002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(305945005)(626005)(50466002)(48376002)(4326008)(97736004)(36756003)(7416002)(5003940100001)(54906002)(1076002)(8656003)(72206003)(50986999)(76176999)(47776003)(68736007)(498600001)(5660300001)(53936002)(104016004)(39060400002)(6666003)(2950100002)(2906002)(106466001)(105606002)(8676002)(81156014)(81166006)(356003)(77096006)(85426001)(189998001)(8936002)(50226002)(86362001)(2201001)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR03MB3321; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD042; 1:LTrn278poJjMg+2b7wbR1lKA/EnR0qrB6ljeElTpXpa2B7/AedCo1dK6vcMxfRCTPEqIRu/JjyFgV9wWnk/B6+rc+COgtu+ievkWB1EyRpjd7H0XWmElq4bYiB/WsoI9 MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f278aa49-ceba-41b2-0c94-08d4ee055e54 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603199)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:DM5PR03MB3321; X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB3321; 3:7hTHuqPHokT5M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w8ejuNHxRQKkZEVu0+RByvb8E5W7qKHLlIWRTTshsW+KDvY9fbrIXZ6CZL1HOSkBwCN0jTSyeR9NpiAhTT/WlDCcrlFUdsRgbq+fIoesFwYtsS/JOE3iputIjSuMXkq3Znqt6VUU88G95LSQ8wVNeuc1YtSJsjS7HgS9jadSAl5nXRGVQdh5b5UE/BhzeowfJ+nMDpq/SZ8csivK7b3DU9QoE/IL42FYsDo1TkFh+Rm0N5Ah41933TD+gjcUWbQr+mVVTTi/l/tK7OFeErg== X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(101931422205132); X-Microsoft-Antispam-PRVS: <DM5PR03MB33217EB4257C30161A4332E9849E0@DM5PR03MB3321.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(13018025)(8121501046)(13016025)(5005006)(3002001)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(6055026)(6096035)(20161123565025)(20161123563025)(20161123556025)(20161123561025)(20161123559100)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR03MB3321; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR03MB3321; X-Forefront-PRVS: 0413C9F1ED X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR03MB3321; 23:HdI8+DcfbzCFGpkCBs746Qyf+drSA4jwCMcOUOmZp?= =?us-ascii?Q?t1Uq2zNugFPYkJ0L84YrznxY3eNMrwdGRIZ1mIwZN6ssYKS4PpF4okP72O5O?= =?us-ascii?Q?6hybeZsja0MkOMf0iVOhUF4gCt3k41Qn/aXATaN+8nmd8SA1ynp//+RxRsqk?= =?us-ascii?Q?kXQbsHzI0AB5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hom?= =?us-ascii?Q?d6njjZfhDiUPQkHLKJPqXlynXIak/jHXyNw5yzMYLr9kck2PZELeLUmReA2f?= =?us-ascii?Q?zuhHbWjVFMQxS7Y/m4eOtVgKN1mvk6zH7+IOhZIjMKeAY5BmKQcGgGSDd1p2?= =?us-ascii?Q?r2B7tuYK/PeQyM=3D?= X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB3321; 6:KMBul8c8ywbhJnZcJrsEQ2c55DBM3gr1afIgOrlf1+cLykl0mt1Iz6y8HCw1qKrnCsuFqnIZyRvKzRP39dbIr6ibPePj19H9bvSAIR8+r11WG8Bp6KK5MEyR0r+6u2gyFQxHSurSRjFHS8AOHyaZRgi//InKd/oiVa6GS24vbwADwS3ebHV8VGTsguQFJ78/jOWWnlcFPYR/dP1BMsqCsfwJgWoNuE9iiGpFeR+Qu2wXUit7YzlP5m2iomTkU2MWQillBHjlgO6qH3WIN0oXmYBnUlawCDBvfiEZ6cu6FVvkb3NceSuIooy+CIbD7eePztExX2SBFLtNx3+fBdb17g==; 5:jboE/VxReAtVcTSu7/7JkGAJn/U5GRyKMEEf0T4FSzxcl64aq9dcXVe9pHa/JGBnme8RThHkyfwUeI99eysHd3m7aqZ0RrYAOaVKIv54qU4R4CdbqvbIW4lc78cpZtCB9mUXRgDVDK1jxkq+nxajrw==; 24:dBdx6814Tb78RKEfnV8213foH888D1hYe/fh5YtxWyWEMReg/K7THONRRp7hPIDw+TeW5jo0cQZJan12YBT6M0quq3fWffrXKe739ntM3bs=; 7:fqj3UUMwy70VFtc9NttIXXUQBiaX74Q8JMrittNCpfecBL3y5qGEC0rqjnH4PEdH8YkjHYg7S9/vTELMwGDAwg1CNiUz16BGkD36apu5+l/PKlL6U8ZjrLudoedeJnubgRrHrejsPX9TXIpd50sQGVXAE9YteUAnWIlrzvddORB/8rkcjWtfnUGgInInD6ORlZJh2tvePZrOR+l2sfQy0WR9HsJ0pmxVGHZcmpy0DIk= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Aug 2017 11:10:18.9180 (UTC) 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: DM5PR03MB3321 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: <linux-pci.vger.kernel.org> X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/pci/dwc/pci-layerscape.c b/drivers/pci/dwc/pci-layerscape.c index 160035efa4d9..27234dae4cba 100644 --- a/drivers/pci/dwc/pci-layerscape.c +++ b/drivers/pci/dwc/pci-layerscape.c @@ -164,16 +164,7 @@ static int ls1021_pcie_host_init(struct pcie_port *pp) } pcie->index = index[1]; - dw_pcie_setup_rc(pp); - - iowrite32(1, pci->dbi_base + PCIE_DBI_RO_WR_EN); - ls_pcie_fix_class(pcie); - ls_pcie_clear_multifunction(pcie); - iowrite32(0, pci->dbi_base + PCIE_DBI_RO_WR_EN); - - ls_pcie_drop_msg_tlp(pcie); - - return 0; + return ls_pcie_host_init(pp); } static int ls_pcie_msi_host_init(struct pcie_port *pp,