Message ID | 20170828105301.8511-3-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 0A9BC60311 for <patchwork-linux-pci@patchwork.kernel.org>; Mon, 28 Aug 2017 11:10:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F0E1E286AB for <patchwork-linux-pci@patchwork.kernel.org>; Mon, 28 Aug 2017 11:10:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E5971286C8; Mon, 28 Aug 2017 11:10:57 +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 D465A2869D for <patchwork-linux-pci@patchwork.kernel.org>; Mon, 28 Aug 2017 11:10:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751223AbdH1LKM (ORCPT <rfc822;patchwork-linux-pci@patchwork.kernel.org>); Mon, 28 Aug 2017 07:10:12 -0400 Received: from mail-by2nam01on0085.outbound.protection.outlook.com ([104.47.34.85]:62697 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751172AbdH1LKL (ORCPT <rfc822;linux-pci@vger.kernel.org>); Mon, 28 Aug 2017 07:10:11 -0400 Received: from BLUPR0301CA0023.namprd03.prod.outlook.com (2a01:111:e400:5259::33) by DM2PR03MB559.namprd03.prod.outlook.com (2a01:111:e400:241d::28) 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:09 +0000 Received: from BY2FFO11FD040.protection.gbl (2a01:111:f400:7c0c::128) by BLUPR0301CA0023.outlook.office365.com (2a01:111:e400:5259::33) 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:09 +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.1.1341.15 via Frontend Transport; Mon, 28 Aug 2017 11:10:08 +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 v7SB9vXJ006251; Mon, 28 Aug 2017 04:10:05 -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 2/9] PCI: layerscape: move STRFMR1 access out from the DBI write-enable bracket Date: Mon, 28 Aug 2017 18:52:54 +0800 Message-ID: <20170828105301.8511-3-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: 131483922092994528; (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)(1110001)(1109001)(339900001)(199003)(189002)(81156014)(105606002)(77096006)(86362001)(39060400002)(72206003)(4326008)(7416002)(106466001)(5660300001)(36756003)(6666003)(2950100002)(8936002)(50226002)(104016004)(8656003)(81166006)(68736007)(97736004)(2201001)(48376002)(2906002)(50466002)(8676002)(54906002)(53936002)(47776003)(356003)(50986999)(1076002)(76176999)(85426001)(626005)(305945005)(498600001)(5003940100001)(189998001)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR03MB559; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD040; 1:LDRV8C3LyNyPFlnE8t96Ip87NkvucYaUr3fnar9B0ARsrVbAacO5/BfRVyYrvRikbZbHDT+KEai7k7S7QMyazlcYeGiYvaqZ78+vBoqIa3PBxvmAB9rSRAZcnFjKLL9/ MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a2215964-7935-484e-24d0-08d4ee05586b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(300000503095)(300135400095)(2017052603199)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:DM2PR03MB559; X-Microsoft-Exchange-Diagnostics: 1; DM2P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8pKkBia5TV2Ga0rqc2TEUpVnLf7TgpxYd+c5lLvlGVQ8cu3nAFVEBXKQaVb3O73bN9VBlhR+Gr6wq8WdUv/QIR2Xek0NdZs6TeU5CLBhkm1kMfPEBZcATtSc/1uGKnl+LA7HPcSrGn8NYwxPgjmi/fuJvef+OEKUSjdCXTuv5FcXvl9d9S4k/QLvbJRotMIQUYvI4LcBN3ZMP3zvpMBqLiX9twu3brw8ZnHds7tVvrEuC1+IA+CEa3KuuzkVExoBZFfj94nmIhbNXtovltBVVBCcweT7w9jT6a0hmTApZ2FUS9F7U2lceuDw== X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(101931422205132); X-Microsoft-Antispam-PRVS: <DM2PR03MB559348CFA2BD69E11213DEE849E0@DM2PR03MB559.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(8121501046)(13016025)(13018025)(5005006)(100000703101)(100105400095)(93006095)(93001095)(3002001)(10201501046)(6055026)(6096035)(20161123565025)(20161123561025)(20161123556025)(20161123563025)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(20161123559100)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM2PR03MB559; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM2PR03MB559; X-Forefront-PRVS: 0413C9F1ED X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR03MB559; 23:wKgQPO1qJmpIdpYKd5BvE2WR2XfrFcLWmVXTFKgVRT?= =?us-ascii?Q?PTvlA7ANORArWjPF5YtedxGTD8CE4eMdvW7y+IfzCRyf/ygDQJwrMDsSdGgE?= =?us-ascii?Q?AulQqqIxhiEvt86EL+mR6eCsWasVBrgqVj40Yof7sz7QNRrpp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jDLkXisLEi/WNJwGdAIBdmE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Aug 2017 11:10:08.9874 (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: DM2PR03MB559 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 aebefb42377a..c16940044ed6 100644 --- a/drivers/pci/dwc/pci-layerscape.c +++ b/drivers/pci/dwc/pci-layerscape.c @@ -162,9 +162,10 @@ static int ls_pcie_host_init(struct pcie_port *pp) iowrite32(1, pci->dbi_base + PCIE_DBI_RO_WR_EN); ls_pcie_fix_class(pcie); ls_pcie_clear_multifunction(pcie); - ls_pcie_drop_msg_tlp(pcie); iowrite32(0, pci->dbi_base + PCIE_DBI_RO_WR_EN); + ls_pcie_drop_msg_tlp(pcie); + dw_pcie_setup_rc(pp); return 0;