Message ID | 1502859419-33696-3-git-send-email-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 E51DE603B5 for <patchwork-linux-pci@patchwork.kernel.org>; Wed, 16 Aug 2017 05:14:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D82C728966 for <patchwork-linux-pci@patchwork.kernel.org>; Wed, 16 Aug 2017 05:14:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CBADA28981; Wed, 16 Aug 2017 05:14:47 +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 EE5FF28966 for <patchwork-linux-pci@patchwork.kernel.org>; Wed, 16 Aug 2017 05:14:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751129AbdHPFOB (ORCPT <rfc822;patchwork-linux-pci@patchwork.kernel.org>); Wed, 16 Aug 2017 01:14:01 -0400 Received: from mail-co1nam03on0059.outbound.protection.outlook.com ([104.47.40.59]:61422 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750912AbdHPFOA (ORCPT <rfc822;linux-pci@vger.kernel.org>); Wed, 16 Aug 2017 01:14:00 -0400 Received: from CY4PR03CA0079.namprd03.prod.outlook.com (10.171.242.148) by CY4PR03MB3318.namprd03.prod.outlook.com (10.171.246.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1341.21; Wed, 16 Aug 2017 05:13:58 +0000 Received: from BY2FFO11FD041.protection.gbl (2a01:111:f400:7c0c::128) by CY4PR03CA0079.outlook.office365.com (2603:10b6:910:4d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1341.21 via Frontend Transport; Wed, 16 Aug 2017 05:13:58 +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 BY2FFO11FD041.mail.protection.outlook.com (10.1.14.226) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1304.16 via Frontend Transport; Wed, 16 Aug 2017 05:13:58 +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 v7G5DiU1012144; Tue, 15 Aug 2017 22:13:54 -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>, <svarbanov@mm-sol.com>, <niklas.cassel@axis.com>, <jesper.nilsson@axis.com>, Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Subject: [PATCHv3 2/9] PCI: layerscape: move STRFMR1 access out from the DBI write-enable bracket Date: Wed, 16 Aug 2017 12:56:52 +0800 Message-ID: <1502859419-33696-3-git-send-email-Zhiqiang.Hou@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 In-Reply-To: <1502859419-33696-1-git-send-email-Zhiqiang.Hou@nxp.com> References: <1502859419-33696-1-git-send-email-Zhiqiang.Hou@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131473340384601955; (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)(76176999)(50226002)(8656003)(77096006)(39060400002)(2950100002)(5660300001)(498600001)(53936002)(50986999)(356003)(8936002)(104016004)(305945005)(105606002)(106466001)(72206003)(189998001)(7416002)(81166006)(81156014)(2906002)(8676002)(2201001)(50466002)(47776003)(4326008)(85426001)(626005)(86362001)(68736007)(36756003)(97736004)(48376002)(54906002)(5003940100001)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR03MB3318; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2FFO11FD041; 1:rjSXIP1k5mdQobK72t2qk/bJC5RPCwYidgu4K7afTY?= =?us-ascii?Q?IYQpJAFEKfdAOP3nrVBNsZyYb4SzUUA/iG19enFbYJTZzYhgUVqdQZAd+VNK?= =?us-ascii?Q?zEmFkdt/G5V3owSB9tdksenupYwgiKxcICI7mXciJPXX4SLOj3Np3zknLUN5?= =?us-ascii?Q?VeCIi66/A5jW6NLp8Ax+JOB+r8d5ogn6a5OjUE2ohABbl8Yqu3AD1dFFk+zI?= =?us-ascii?Q?KjLNY/7yrGSbk6DAXGX4WTT8G0S6OREsMwlWDSjz+jJ7xiaP7vW9y9JR9AYe?= =?us-ascii?Q?i4d1y8tRaWWfg966/ahvxM0bKPAiJXnyrPHH5+ioYh6B+Gu9DR2NAhjH9g69?= =?us-ascii?Q?2pHYYGwrEhm74l+2JwzLWoc+5BlrXFe28qjPOQQZdh4KjS/GciKtH7ipfu2l?= =?us-ascii?Q?bLjgtZf8j/z/lAKpt5Ir437JTg/I8T4StR3sLvQ2FHZbczZcLUPbIGaaG4RX?= =?us-ascii?Q?5KBk6ydGv/vi+hk3On0nAYOrjKs/urnmfSoiQLmpeTaUCifbm9jk9/UwSaiN?= =?us-ascii?Q?/s6sU4SDqY2aoIapAuZoUcaKcjpYGkLmLS3gRia7BCUOvDWNkfGk2zqj6xFI?= =?us-ascii?Q?OsfMhCSMUSuP7NEF/P1tqnIIcXR0VuAT7Bd08SlwfF/i6SkfOTTjSZSutXCc?= =?us-ascii?Q?guJ3sxUydsyrmfzVF/jXra9b9all26r800OOCOg3CvWdHhjeg1pbeO5+WSFT?= =?us-ascii?Q?vzuI+LtUZyzKPjsp2E9OcJXuZYEpPUiUGPRpptzG213tYtcWS10CV91yiyrH?= =?us-ascii?Q?QgFqRDAWe8NoF6vDSsTf0QqycDOV4DETlGKJJLO4Q9oQDzsSCA5sKQMjJMcG?= =?us-ascii?Q?JAfFy0KwFtbll18kMpnhJYJsw9wRC8pwHkwDIrvvG10flXdHRtVqzH5kdAar?= =?us-ascii?Q?auTccXitlBmR6OSqOJ1YLBijk87KwOQaLgzIA21HtHdOp4gqjHPfQs3OfMYF?= =?us-ascii?Q?Hsksk/RW4scKssG9bNIsUhCvsPrSkYEfTmNtljQw=3D=3D?= MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9c01eee3-e63c-478f-8603-08d4e4659983 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603031)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CY4PR03MB3318; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB3318; 3:NUa+pBHCQ0897jzME0kU+WnnxnCzIuO8gEeV4JzE/vKOPKQTd024oJ3eaS6XHZiqeimqFE8sTEkMTJID6m9doWZiqgCbstqzfwRiEjCQGCPhHOQdnsqmReoTMBwIY6A4A2Uacxz7Y6Ex+6nTELDUpDw8YqhCN7lsAJdLfaIfIzYvgSK+974edr6AidLu4mzanh6McmiECn+lQ1PZJDnJibuqGZ82tI3VXpX0zvDHKZEAgrCSh4wcS9qyq4z6zitaEiBUaoGyfOejEIGYThlD3KQxEsvLerRTSudRon08r880rwZqFUrFoCoJp6bki6ZneLAiO+Culk4lxzh5Hs3gIbpRV+qpi3CFkRYnxXFj9u0=; 25:gAvqPLsIpJ+8T1PTMRNGY5R+cQEC/iUeBuTmIyjs6AmmZ8xlQMEVE7jzRwbPcwadw7h9n0lUnNwOT4Kld9MO8898t4tDUxC/nIRnKGUogRNU7fCirbqslE1QQMdTarFlUgIfcvjVT72cUkGzLu6atdbSzlOd+hH615JGkfz3mau0T8NJEITTnBfrpQIzy2RWZzWPSdKqlGbdSQowQ4zpBlLr38kZ/XexQjJ1Tisj0JZh6s0lOvTaldE9eM24gb0XuHUaTaKft2k/F4hMdwH8gqjMocuKIU/wu9FrbymvbuIAwes9d2RWmNo8sC82drhn4GeV62JrKK0g1u5DRvLGOg== X-MS-TrafficTypeDiagnostic: CY4PR03MB3318: X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB3318; 31:iQJkBitqF9vBBHWYcQ3GS1yKPqjd5uzIMe64/xz9zUhz+F9AkYFf03pDW6sGH0Rlvrw0ZtJFiRyrb5Te1nSLa6ZxfH0XkkqMqPLO9z6my4vDQ7mqu9XUueK2vvtEbiu2TmL8u9BTKAOqBByTAA34Vq9sO+9cYlbMnTSA5LN5BoZzHYNBjulmVvwq+e9FXjk83cfY3W+aHFWh70SgFAhpIxFW6IRln/GMhTMxIfFDP4Q=; 4:UxANpAoOzyaRVXTWvtYR8gphgnThCxcrE47AT9ApsOcKCbjH+5fxcDSjhdXQpIpXd9xMLOdYaxI1F6+kODTLtGRFVPu6TIikU6ZwDwzLstyF3v7xJB6BeYvfShbjG0SKzO8X6GW/5VRQVvlhonijt7WdrLCKoj+tw0JQ+ytuMLHEcvl1I9GiY6lm/mo0nlOK81AbxFVSh314XSkviW3gOK4CB8FtKw5gGY3ITEpHqYnepU0k54YGWwlNOt+zq+/P7fSFpoPohsURH3DF2AHXYa108j+O/QEOYTBB4cvWP5Q= X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: <CY4PR03MB3318CC178D113DA1D774A6A884820@CY4PR03MB3318.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)(5005006)(13018025)(3002001)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(6055026)(6096035)(20161123556025)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(20161123561025)(20161123565025)(20161123563025)(20161123559100)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR03MB3318; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR03MB3318; X-Forefront-PRVS: 0401647B7F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR03MB3318; 23:dMP82fZQ9B0DNFIVlXZWWp1Qi9WBzotoU4I6VG2I1?= =?us-ascii?Q?QBdSc5qBv/qPs0m6G15zuLbG4dmx7zmHCG0TKjBu+Ot77AgrW/GijBSo3OB6?= =?us-ascii?Q?HK+9u00ppB+DgfPLs9ZHzwr66oKXVas0O6ILjj9xTsUKUXMj8ohkKR+xK60d?= =?us-ascii?Q?iSloa4m379cpfF+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ascii?Q?c6lldWTebmcygbWy4CJwnC28wDcPdQn00bx+2ui7bB6vh9aPdRXEkdAKkVGv?= =?us-ascii?Q?8ZhKXluYVFAMd45L+HrBbNxfE/t7mWW?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB3318; 6:pW8Qqmgnm1SiCZmU237PYepGsZXQMoDmVV7WeUOyrb/0j5K6sgRoLUuMZ8kS53rpF5NHlolnwsbLusZLKOBVDc58qUVtUMDc3DkhLc3Mi4aakG7gX+JiJG6PKNNgCgV/J36xrH9Nqb/mnDPuOBV+tIzweZNeLbU6mm06jP2uKlz/WQx7E/ToEB43zIkQttwFKdGHi8Crwpp7mUcWJdqfRk4LozhykrEJuZQ4sRX803BiQbN0k89elGaJ0H1W1OaJEdWDcZEoxFMaa6tySGvyh+xKsX45w1fW1WlsJJ+7kBiM8hUe2thxj8fSWLEb+LheaG307rvwoJJS/C3nUDf4vA==; 5:bYUhbLHgFCpZevG8Ngcxj6/oh53ONQN5AP5PuToxZbP4cglSq32OzkBdDI9p+VY8KJDbrKqVYe9kJMjtiPKxqBlnYvMSAgw95q9He3HFyWc3JV/5BUDWxnkU5a+m+E1yC5nmhXWX7J1jN7+eeeye8A==; 24:S1CzO131ChhijgwsOJKdtbo/ShIqXKKbI8prr0jCP3qmgOZA/7qaxKMY4/9XPxgpGGXyDAaV8UdWhuc+qblWcOpOgohsEBbcf6ktVXVstcU=; 7:JO191dvD6mcbhywE3TEjlJ1GMGX+HABY31jejVtWGg8Wd6Pxs94xe6ebt/pXzx56sqWDJ/ADTLYcoPe7fQ2/TY3jewIHoCuXbIvRkk5076uWXc1VES5HvYpceYXMQp07gG++9SzG2xoOWoqj3p8f5jc+6xCPVZy6Sg31fxbha7gg3Z/7RYxeAoWz2aK9T6OcT4guUHCZVJohDpr6yvMSCyjfA0Q2NOClfdKwXIoxMmk= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Aug 2017 05:13:58.2573 (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: CY4PR03MB3318 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 aebefb4..c169400 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;