Message ID | 1502859419-33696-4-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 EC9D46028A for <patchwork-linux-pci@patchwork.kernel.org>; Wed, 16 Aug 2017 05:14:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E0FCD28862 for <patchwork-linux-pci@patchwork.kernel.org>; Wed, 16 Aug 2017 05:14:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D5F08288B3; Wed, 16 Aug 2017 05:14:50 +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 1A88C28968 for <patchwork-linux-pci@patchwork.kernel.org>; Wed, 16 Aug 2017 05:14:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751160AbdHPFOF (ORCPT <rfc822;patchwork-linux-pci@patchwork.kernel.org>); Wed, 16 Aug 2017 01:14:05 -0400 Received: from mail-cys01nam02on0082.outbound.protection.outlook.com ([104.47.37.82]:60064 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750912AbdHPFOE (ORCPT <rfc822;linux-pci@vger.kernel.org>); Wed, 16 Aug 2017 01:14:04 -0400 Received: from CY1PR03CA0031.namprd03.prod.outlook.com (2603:10b6:600::41) by DM2PR03MB558.namprd03.prod.outlook.com (2a01:111:e400:241d::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1341.21; Wed, 16 Aug 2017 05:14:02 +0000 Received: from BN1BFFO11FD035.protection.gbl (2a01:111:f400:7c10::1:143) by CY1PR03CA0031.outlook.office365.com (2603:10b6:600::41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1341.21 via Frontend Transport; Wed, 16 Aug 2017 05:14:02 +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 BN1BFFO11FD035.mail.protection.outlook.com (10.58.144.98) 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:14:01 +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 v7G5DiU2012144; Tue, 15 Aug 2017 22:13:58 -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 3/9] PCI: layerscape: add class code and multifunction fixups for ls1021a Date: Wed, 16 Aug 2017 12:56:53 +0800 Message-ID: <1502859419-33696-4-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: 131473340420910020; (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)(1110001)(1109001)(339900001)(199003)(189002)(4326008)(77096006)(7416002)(2950100002)(72206003)(6666003)(626005)(47776003)(39060400002)(68736007)(2201001)(8656003)(356003)(305945005)(85426001)(48376002)(50466002)(5660300001)(97736004)(104016004)(106466001)(105606002)(2906002)(5003940100001)(53936002)(36756003)(54906002)(50986999)(189998001)(86362001)(81156014)(8676002)(8936002)(81166006)(498600001)(76176999)(50226002)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR03MB558; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1BFFO11FD035; 1:h2s3yfwe6Qt6932W05FvAYl5ma4+/pyjRRuw2WIJD?= =?us-ascii?Q?YorBA3snpxoCHZwdyn95NdYOecOT48RzMIJCVPRCwRUQId/zgPmg3bOCerzy?= =?us-ascii?Q?O7fANF9C/O2Mnf2kikPexNRby1oBUVefG84eSj4k+zbMEEKhD8S2gsgQJGwp?= =?us-ascii?Q?1oiZqLmpLB/CKX1Txam3Ef4ybvaXO5C1roBjnLncVU5gWbSmsr1jSQJKR4y2?= =?us-ascii?Q?FDvG+dB0SWvFC8AetzFV/n+nAjMWDLdtb/d3wLk6p6uwzLPJCLYkz6yTTD1W?= =?us-ascii?Q?hJKiSGwpvJfMV3TtmAD3/Ry44VlwgvMmwTKvc5mfH6ACJWDbf5g+uCKY6U+q?= =?us-ascii?Q?E7lXDcApHhsJDqfDWbQJOi20JimuQbtHZYtvfibTx9FI6z0EoEcARpvGkUuS?= =?us-ascii?Q?Y3OfuQTvjESmt+FSTeLmpwgV9yDUIjab+p+qEl1Bwa8yaD5KyCxm4AAK/m/R?= =?us-ascii?Q?LnXcMpqkFLBCUg2G03+fDgy3JBq8h5X+gbrVBr6z1vSbk671w0KovAEftgKK?= =?us-ascii?Q?lICuQ+XxhE2nXkpdielHEryynjmDupJ6RNnNRAFrD61p/SpZE6iJYOiJ3OM5?= =?us-ascii?Q?FH9VvPIqIpA0CLxsc3uVDfc6aoE/TJr3ZKqkVgr14hu8WZtdHr+7+EAT3OOr?= =?us-ascii?Q?wvJqDoGNTz82f1Jromvv0Emcmmaq3inD72TwoUcu/1eIFHpjbkkXsggccSk6?= =?us-ascii?Q?b0AD96fl0xiH7tn4dS+GWGyBSI84VfIJO7ENOHuGdciNqVcn0RrURlqZea0p?= =?us-ascii?Q?HkItgQtdiSVt6gcRIa7DT8bSwCn/050Nn0MAwStU8b06cgGPPrmKrPo9psAG?= =?us-ascii?Q?vA6w43pTHyhj+6klh00bujAr4bkoZSVpSGOSNw7QdpnbqvAgXZOdMmz6V3dM?= =?us-ascii?Q?BnbDBQXzC1ssECVOzvAT4vFFdm2srcVIMFdi7tuZG68KpKmMUy9rCXOSJO48?= =?us-ascii?Q?+OE4UZGVC5lVtAA/zOJpgLsWXO3nrnUyulSGmFwKg=3D=3D?= MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 95e87510-11bc-4efd-e0bc-08d4e4659b9c 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); S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kLRtCSb3OPOU5+r7INj6VJlFF3BUIlAcFtRtR8PbhaCWC5LLN9PNSFMV7x4SwuLVc0FZbKLIfBkjmyrgGyZLv3kLh7rmEgUU6uvyib2Az7DCNooxsRH0l8XzHjmQwwk8uJFktWg/LF23gpDJZq4Q7Ys/eTIBSMj6PUd/3zbjmDr0MhipjO+ZXUa98Ej4Rjbi5PpEnIPoBDMF510wevzjGk5CyN4mjBLo5V776Lpdlgykxd7Huv7f93mY8M/ncFtW8d7umLQZi153TnqM3u3t3s3NFrxEwxLEWNTnfVdJQ= X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: <DM2PR03MB558A939D63C761C4293DC6384820@DM2PR03MB558.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)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(3002001)(6055026)(6096035)(20161123565025)(20161123561025)(20161123559100)(20161123556025)(20161123563025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM2PR03MB558; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM2PR03MB558; X-Forefront-PRVS: 0401647B7F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR03MB558; 23:JWn2WIrDzblTXhc3T0MY0vtgZZuloucfMj+/8qsess?= =?us-ascii?Q?nIk0qK7el1pecXyOowhjPM6Y7yWxskqBF/1wfNr3pFRrV9ijfT++kFfzWSGI?= =?us-ascii?Q?qP1eIBoqQTisb/HOD6YAATAbqcqxdlcpYH7aiOhsRBZfOW9hoIFZy2iGXd+p?= =?us-ascii?Q?IYmSqQS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etadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Aug 2017 05:14:01.7321 (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: DM2PR03MB558 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 c169400..3aa3421 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;