From patchwork Wed Aug 23 06:08:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Z.Q. Hou" X-Patchwork-Id: 9916645 X-Patchwork-Delegate: bhelgaas@google.com 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 925C860327 for ; Wed, 23 Aug 2017 06:26:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 83F012895B for ; Wed, 23 Aug 2017 06:26:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 789B02895F; Wed, 23 Aug 2017 06:26: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=-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 298AC2895B for ; Wed, 23 Aug 2017 06:26:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753263AbdHWG0m (ORCPT ); Wed, 23 Aug 2017 02:26:42 -0400 Received: from mail-bl2nam02on0071.outbound.protection.outlook.com ([104.47.38.71]:14016 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753057AbdHWG0l (ORCPT ); Wed, 23 Aug 2017 02:26:41 -0400 Received: from BN6PR03CA0068.namprd03.prod.outlook.com (2603:10b6:404:4c::30) by SN2PR03MB2269.namprd03.prod.outlook.com (2603:10b6:804:d::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1362.18; Wed, 23 Aug 2017 06:26:39 +0000 Received: from BN1BFFO11FD004.protection.gbl (2a01:111:f400:7c10::1:158) by BN6PR03CA0068.outlook.office365.com (2603:10b6:404:4c::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1362.18 via Frontend Transport; Wed, 23 Aug 2017 06:26:39 +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 BN1BFFO11FD004.mail.protection.outlook.com (10.58.144.67) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1341.15 via Frontend Transport; Wed, 23 Aug 2017 06:26:39 +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 v7N6QOgC007516; Tue, 22 Aug 2017 23:26:35 -0700 From: Zhiqiang Hou To: , , , CC: , , , , , , Hou Zhiqiang Subject: [PATCHv4 2/9] PCI: layerscape: move STRFMR1 access out from the DBI write-enable bracket Date: Wed, 23 Aug 2017 14:08:49 +0800 Message-ID: <20170823060856.9387-3-Zhiqiang.Hou@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170823060856.9387-1-Zhiqiang.Hou@nxp.com> References: <20170823060856.9387-1-Zhiqiang.Hou@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131479431997876162; (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)(39380400002)(39860400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(39060400002)(105606002)(106466001)(50466002)(48376002)(498600001)(81156014)(47776003)(104016004)(50226002)(5003940100001)(626005)(8936002)(81166006)(4326008)(8676002)(305945005)(356003)(72206003)(7416002)(2906002)(5660300001)(2950100002)(68736007)(36756003)(6666003)(54906002)(2201001)(189998001)(53936002)(76176999)(97736004)(77096006)(50986999)(8656003)(85426001)(1076002)(86362001)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR03MB2269; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD004; 1:viYPLJMfYSIRmztfJ8ZDiqkFRzjFvYu7crP0hniHI3AiZeGDmaxZgSVThk+ZGIgGvDBUeJp3p3A6FLMMuuTtfOhJm49CpWiv+AcSSeE4geDinKHa/eUdNpuixL/x9iYT MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 804dda58-f397-4474-8661-08d4e9efe9f5 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603180)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:SN2PR03MB2269; X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB2269; 3:LOyFPsDRwz9kkrl2ZJEAGkg1+oTifyk2g+iUKOU3SifvMmKIT68BXs+jLkqYkz7n1hFQl/X6jJGhufh/z3NCbJKJB02QWyPwjE950zAtsLnukbDxA9wbmYRt2W1xBXqR5NAKM/rH1xxrpy1Rj1WMC+VNmVQIdJYRn8a7CdCPzkM4qjQ8T3s/PhrXuljBw7EuO3Li3/KBlhQnqAafbhS0YRE+53InKWDLPKemD7SM6smq9SvHtHD0bRe1T1y7F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-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)(601004)(2401047)(13016025)(8121501046)(13018025)(5005006)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(6055026)(6096035)(20161123559100)(20161123556025)(20161123563025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123565025)(20161123561025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:SN2PR03MB2269; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:SN2PR03MB2269; X-Forefront-PRVS: 040866B734 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR03MB2269; 23:iYQyrbeJAn2GiDnP8TL2s+H1xotqEXkF45CejPDCU?= =?us-ascii?Q?ADtNZczyk01SNkBFzqnBQHHJYLrcd0CGtituomhLS2GtX6YMqLb2A37ynl1M?= =?us-ascii?Q?hQxRxhaXt74yP3rKTUjj5lfFR0pSrUuydDwTyJqb1v0V+0hTb1SjObXlthrx?= =?us-ascii?Q?u3nauQTSDWHSKfyShVCWF4dSVSV2SmYkoO52uhrlqNNnOFlLbjpIq8xbG/wn?= =?us-ascii?Q?I8VLZ1kZRorJAa6WQtjyp9/LcIjpVgQUZCezrBAuhOVVDOwh1JOXwLHm65Dn?= =?us-ascii?Q?0+GhHXxRTZS0NOXxfWRyCADwyHkNb8aLi7iM+jD8kdrR//Npin/qbWO4Drys?= =?us-ascii?Q?QxhG/BTESkou1lhlSr4t9KNJhKbNaWkfhFHZMC/B8PIVU8hHZIg8W3eTgFUi?= =?us-ascii?Q?HnIeFCbFh+o8/A14AVTsmQTqhvgdMaPgYcZfoVrAbYGcXCKqCmVUsUY5FVhn?= =?us-ascii?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mwkrsPI6htfbb32nansEG/pPfYYnsfGQOVbsUXTcNY6YSFMrVhzUVU9iGX2DE/th2yOiBaloP/A2pkUxSR3QOxLyCdMEP3lNhbBn3nVgfh9eDiyYLtnKxJshojiKtp6iAIwImFIkz+MGRr5U4FW0xYHyqhwL78EgNPMRu+RZ9Ax5lkmsJV+rjhHSmCfsS6nZyoNdo3txhIz9g==; 5:R24m6TzCPBLrU5jHhjPh70Oc0R9YnOZO8GCzwl6umfvdpvxL6NZU7s0zkKEjerd8FCVJN0rsiksTHqDizjM6TgnzSE3D+GE+HgisuYwutgqfoN2jvEItJR6PtKbotcK6hVQb+WDZuyylnps9GHmKQg==; 24:CM12Hl1hZvv2jl/3aF3q5n8P2mzCW2fDnoWz0Ar9NwpL69slCE8S8DZQtMxYAfv+wscEb9eeZ3dw/OuUsBbkoOrEuvksfEMfx8L97XXBMso=; 7:oYXTearv05ISKk4DKk4ybr9U38CTZzWp1i3KDKk6wedqGi4S4RJERzEYaNrRhLg2JsdIiOgK72a9T6cm3K61wERXy5Y4VMV6v7P4fvz7WU0zwHiaiVGU7b5SmeG3t7LiwxuqNfBc+ngcmvdSxvXYhR0hB7vkPB7s9R2PhsGoXknPRc0pjqUBO32GC17sakJCayjNuBMtpPyYd6kH25w9w/0vcH2cmGcEwxiantpRoWM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Aug 2017 06:26:39.4600 (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: SN2PR03MB2269 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Hou Zhiqiang The STRFMR1 is not a DBI read-only register, so move it out from the write-enable bracket. Signed-off-by: Hou Zhiqiang --- V4: - no change drivers/pci/dwc/pci-layerscape.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;