Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp925076imc; Mon, 11 Mar 2019 02:32:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqy4o4A7WPULBzFhQQa74tePg0cN/4DRu9zWTYaoyCVnYVvxziaTDwr5a2ltn1E3Rqo9TcZf X-Received: by 2002:aa7:9141:: with SMTP id 1mr31932985pfi.38.1552296743806; Mon, 11 Mar 2019 02:32:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552296743; cv=none; d=google.com; s=arc-20160816; b=JpjmH5jW9oWmIZLWB5pYmZvoOmBNxD59jW/GS+GdldXg+iJWjAKrS4kI14rZon/zkU hodICl4eZ4HEXI0dwVLyhDI3oW2WjC+oC4jk7WByq9exYArGDvqm4RXy18C+f+qW36K2 9uRAS+/0XNOm7B5msNp6XnS6YO2ff/uSUGX20na2uDxbPtvWHWU/DsL8Filz3LNZ7b0e 1h2U3G0NUi1m/G/NRi3CKgAYBfzbCJsHpoaaPUtq+gwNTmPvhiuzxKgAEO4PgQ6dhELg +HEq/uE62WgImukIJlppXsoiy9lZWt32G0Kb5Wz4nS8df1I+kkd4o70ThtIQbbE/1nMz grEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=ioURpHbldQu1ga2fdu1nut9D4Rk/cA214SnJc+EcAus=; b=coMhLvqW0IgScXKxEoFXklgGE5mOIjG9ahK3wUGnlSa2OP5nRHxrU2OW4d7LV7mCpR w+xhXVOZHo4wf5f0hdP//0QYgAaW9U0nSTVdnKKurn8cplMfMZX0NovY7DtD/TQ3f56C LAqS8fqTpWqxAjXfmiPsN4kmwf1IEobJcR6nNs8igTbglaIoWYHaqbwO+jM4PqkJpRDT DsWp0r9QOSJx7X04KwDvPSAasLtF1p7fIcb8LUmJ9iDfGUFTYyTs2N2AcdwpOf1xOJJk Y1hdtQ3FlFc8Sq8mjClWLJNbeXdL2/L7/IFIQu7jVMqCBP6HGv/rZYDWE9FZZQtEd2BL 2T4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=YtIUtzBY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 20si4852252pfs.165.2019.03.11.02.32.08; Mon, 11 Mar 2019 02:32:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=YtIUtzBY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727360AbfCKJbb (ORCPT + 99 others); Mon, 11 Mar 2019 05:31:31 -0400 Received: from mail-eopbgr80044.outbound.protection.outlook.com ([40.107.8.44]:11104 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727320AbfCKJb2 (ORCPT ); Mon, 11 Mar 2019 05:31:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ioURpHbldQu1ga2fdu1nut9D4Rk/cA214SnJc+EcAus=; b=YtIUtzBYKVs9FV8vMHYwMAP/Sx93EmjQzBepNz1ei40d+dMEdEGNoheBWmwhFN28FpVlVSHCaJHY+MpZ+3IFgU3fMt9XKA80UXZgGMQtTm9lQfdzsBX/lufSIPL5p4m1vi4JM2dPavpo0RMQTiS5UlzXRl8ukfujZ7nrUbB0zsA= Received: from AM6PR04MB5781.eurprd04.prod.outlook.com (20.179.3.19) by AM6PR04MB6566.eurprd04.prod.outlook.com (20.179.246.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1686.16; Mon, 11 Mar 2019 09:31:23 +0000 Received: from AM6PR04MB5781.eurprd04.prod.outlook.com ([fe80::30cc:e034:1f7a:2cc7]) by AM6PR04MB5781.eurprd04.prod.outlook.com ([fe80::30cc:e034:1f7a:2cc7%2]) with mapi id 15.20.1686.021; Mon, 11 Mar 2019 09:31:23 +0000 From: "Z.q. Hou" To: "linux-pci@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "bhelgaas@google.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "l.subrahmanya@mobiveil.co.in" , "shawnguo@kernel.org" , Leo Li , "lorenzo.pieralisi@arm.com" , "catalin.marinas@arm.com" , "will.deacon@arm.com" CC: Mingkai Hu , "M.h. Lian" , Xiaowei Bao , "Z.q. Hou" Subject: [PATCHv4 11/28] PCI: mobiveil: only fix up the Class Code field Thread-Topic: [PATCHv4 11/28] PCI: mobiveil: only fix up the Class Code field Thread-Index: AQHU1+0xoaV/Y9GqOUGCpK8QyE26hg== Date: Mon, 11 Mar 2019 09:31:23 +0000 Message-ID: <20190311093130.7209-12-Zhiqiang.Hou@nxp.com> References: <20190311093130.7209-1-Zhiqiang.Hou@nxp.com> In-Reply-To: <20190311093130.7209-1-Zhiqiang.Hou@nxp.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HK0PR03CA0015.apcprd03.prod.outlook.com (2603:1096:203:2e::27) To AM6PR04MB5781.eurprd04.prod.outlook.com (2603:10a6:20b:ad::19) authentication-results: spf=none (sender IP is ) smtp.mailfrom=zhiqiang.hou@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-originating-ip: [119.31.174.73] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ec21b41d-9e08-48d9-6d2a-08d6a60453c5 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020);SRVR:AM6PR04MB6566; x-ms-traffictypediagnostic: AM6PR04MB6566: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1;AM6PR04MB6566;23:O2ykTF/dLD89ixjTqdMatg+bXuvZRGsSShvEKHQ?= =?iso-8859-1?Q?QNohpZAFjZ1i/18pBSrYgnzk2Vp9QNwi5DmrY8xKKXemSbia3lQE38fv1Z?= =?iso-8859-1?Q?Ha4ngYc0Df88r7/9Oebj6PpPofdChrVWOH2SKvGLFAyRwLLThgtqofgsd0?= =?iso-8859-1?Q?1VpKNOHQAdIMu38mVoGHeBuPULgvVj6Gh904xJ4/TRCDnFsUBSqYR4nLmt?= =?iso-8859-1?Q?qHUQV7yD/ePd+fATilGD1OFp5o2OdNP66zCx3oFim0aKnfWy7OVcHcLl4C?= =?iso-8859-1?Q?q/LqbcBTO4e/Zy/3rX0VJCBZS0ClYTvJxpIoTyh3wWHLGGbwaORWQWF2JH?= =?iso-8859-1?Q?h8fKEd1QkPEe8juFVuLti+MymZM+RrrGuVAnqzfqlDUhssax4CU6an7hEH?= =?iso-8859-1?Q?my2xwe12tjukTfElh0GF7kdtzdB74oBgRHMTQKwXV9tsJAIFk1Jqh+q5DM?= =?iso-8859-1?Q?ZpA2nldTnHalisI9f+aKdljKmt8o8nZjaO2r1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ront-prvs: 09730BD177 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(366004)(39860400002)(346002)(376002)(136003)(199004)(189003)(6436002)(478600001)(25786009)(99286004)(11346002)(2616005)(476003)(76176011)(3846002)(6116002)(81166006)(81156014)(486006)(71190400001)(71200400001)(2906002)(8676002)(2201001)(5660300002)(97736004)(6486002)(446003)(7416002)(2501003)(86362001)(256004)(14454004)(316002)(68736007)(26005)(8936002)(6512007)(53936002)(1076003)(66066001)(386003)(54906003)(50226002)(110136005)(102836004)(6506007)(36756003)(105586002)(4326008)(106356001)(186003)(305945005)(52116002)(7736002)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:AM6PR04MB6566;H:AM6PR04MB5781.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: THh689YRWj/TDFnfuALOViBkWft0f3RUKmA7t7+CQ0P/2x/6rvUcdWvecCvsPbkNqriCjY8Eb711Dc/G8eGg88EYtdObwWtU5eF6b+uUb1ixIWgJcginYTb4yJWIrnOAn5mJyUmfUjoIiT3lZDOyQHDbLdsTkBPGWTMN+whblD5PGRUP4RnhLUOx87RLqa6RPziAaEL0KQlONVydsE6hucImKeEJ+Q5NeRFLX+DVd1TfG2+6VqJecC9LFCdacZoiddiobQX32vYRf8Dy016/LwattEVv2vqeqfgLJ4r+6OjHLxUTuWwawYS1x+deX4yT6PklMLVZL6Cg5wav8q40Z8NUIlNFOjGz2Ih9fsqkM/CiIq0kfWkH7Zip8h64EUuF0W26bnMjk/V/VyUSGGR+HNW6iEf0iJgNQforMnhL8E0= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ec21b41d-9e08-48d9-6d2a-08d6a60453c5 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Mar 2019 09:31:23.7883 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB6566 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hou Zhiqiang Fix up the Class Code to PCI bridge, do not change the Revision ID. And move the fixup to mobiveil_host_init function. Fixes: 9af6bcb11e12 ("PCI: mobiveil: Add Mobiveil PCIe Host Bridge IP driver") Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian Reviewed-by: Subrahmanya Lingappa --- V4: - no change drivers/pci/controller/pcie-mobiveil.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/pci/controller/pcie-mobiveil.c b/drivers/pci/controlle= r/pcie-mobiveil.c index 78e575e71f4d..8eee1ab7ee24 100644 --- a/drivers/pci/controller/pcie-mobiveil.c +++ b/drivers/pci/controller/pcie-mobiveil.c @@ -653,6 +653,12 @@ static int mobiveil_host_init(struct mobiveil_pcie *pc= ie) type, resource_size(win->res)); } =20 + /* fixup for PCIe class register */ + value =3D csr_readl(pcie, PAB_INTP_AXI_PIO_CLASS); + value &=3D 0xff; + value |=3D (PCI_CLASS_BRIDGE_PCI << 16); + csr_writel(pcie, value, PAB_INTP_AXI_PIO_CLASS); + /* setup MSI hardware registers */ mobiveil_pcie_enable_msi(pcie); =20 @@ -896,9 +902,6 @@ static int mobiveil_pcie_probe(struct platform_device *= pdev) goto error; } =20 - /* fixup for PCIe class register */ - csr_writel(pcie, 0x060402ab, PAB_INTP_AXI_PIO_CLASS); - /* initialize the IRQ domains */ ret =3D mobiveil_pcie_init_irq_domain(pcie); if (ret) { --=20 2.17.1