Message ID | 20170828105301.8511-4-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 8F85B60311 for <patchwork-linux-pci@patchwork.kernel.org>; Mon, 28 Aug 2017 11:11:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 81C35286BA for <patchwork-linux-pci@patchwork.kernel.org>; Mon, 28 Aug 2017 11:11:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 769E6286BC; Mon, 28 Aug 2017 11:11:01 +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 02417286BF 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 S1751232AbdH1LKO (ORCPT <rfc822;patchwork-linux-pci@patchwork.kernel.org>); Mon, 28 Aug 2017 07:10:14 -0400 Received: from mail-co1nam03on0046.outbound.protection.outlook.com ([104.47.40.46]:20427 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751172AbdH1LKN (ORCPT <rfc822;linux-pci@vger.kernel.org>); Mon, 28 Aug 2017 07:10:13 -0400 Received: from BN6PR03CA0004.namprd03.prod.outlook.com (10.168.230.142) by CO2PR03MB2263.namprd03.prod.outlook.com (10.166.92.144) 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:12 +0000 Received: from BN1BFFO11FD030.protection.gbl (2a01:111:f400:7c10::1:102) by BN6PR03CA0004.outlook.office365.com (2603:10b6:404:23::14) 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:12 +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 BN1BFFO11FD030.mail.protection.outlook.com (10.58.144.93) 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:12 +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 v7SB9vXK006251; Mon, 28 Aug 2017 04:10:08 -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 3/9] PCI: layerscape: add class code and multifunction fixups for ls1021a Date: Mon, 28 Aug 2017 18:52:55 +0800 Message-ID: <20170828105301.8511-4-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: 131483922124283503; (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)(199003)(189002)(189998001)(305945005)(53936002)(356003)(54906002)(498600001)(81166006)(81156014)(8936002)(5003940100001)(104016004)(1076002)(77096006)(36756003)(86362001)(8676002)(2201001)(39060400002)(626005)(8656003)(47776003)(4326008)(50466002)(48376002)(85426001)(106466001)(105606002)(7416002)(2950100002)(6666003)(5660300001)(50986999)(97736004)(76176999)(2906002)(50226002)(72206003)(68736007)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR03MB2263; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD030; 1:GGCSEP4wr6eOQRtL8G33Pytvsg4lZMXS0B1/dbhmMZVVPmVvwTmDWo/iPAgmwP4nJR2Sl0IrYnEoVCI1mk1YfSlbwFRxI23JrxrdVzg5HgmBW2X2WuhScPmZqDyornti MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e0863fb1-bcf6-4636-9367-08d4ee055a48 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:CO2PR03MB2263; X-Microsoft-Exchange-Diagnostics: 1; CO2PR03MB2263; 3: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ZC1IOX1e9x19F9NNU3rvfdspncPjjTkuFpuXthI1uIAk34U3R83spoTHM4PQL8X8xpPpKXXasq3L+PuIGu4QUmFq5RnoATLap+yeockZ/dBAJg1YBFroSj+m/E2HdJJkYtdUMIzUzyb/2LhCO4anShYlSclje1iv7KrlD6tjsTofJvcgcMZl3mTUanG6kjzElOjgEDZTuS0sTdhsvQUtau8DJegSe7lbErz/SvFSbBeAzCkUuK7AlLJqGxVR6hZTOoOoeQ8uFebBTku22XEziclfrzqPsj31A== X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(101931422205132); X-Microsoft-Antispam-PRVS: <CO2PR03MB226348F0CFAC969398565595849E0@CO2PR03MB2263.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)(13016025)(8121501046)(5005006)(10201501046)(100000703101)(100105400095)(3002001)(93006095)(93001095)(6055026)(6096035)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123565025)(20161123559100)(20161123563025)(20161123556025)(20161123561025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CO2PR03MB2263; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CO2PR03MB2263; X-Forefront-PRVS: 0413C9F1ED X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO2PR03MB2263; 23:YLVuEW0xdesopv94GwjplcNDyBcPnp/E0lKFLAF6H?= =?us-ascii?Q?KZzT0Uikjtlth0eGV0qpT62hnSdGMO9jcx0eu/PPenDgyzt5J69nKsCDlzN5?= =?us-ascii?Q?Y7sxVtorcqf+FbzYbikR+8ZacCRIyisXkMJu3f3XBD7h4dTbVuJ07nVct2UG?= =?us-ascii?Q?BdyOyzJKYYNzBafq0JOsB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:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Aug 2017 11:10:12.0851 (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: CO2PR03MB2263 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 c16940044ed6..3aa34214643c 100644 --- a/drivers/pci/dwc/pci-layerscape.c +++ b/drivers/pci/dwc/pci-layerscape.c @@ -134,6 +134,11 @@ static int ls1021_pcie_host_init(struct pcie_port *pp) 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;