Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp252626yba; Fri, 12 Apr 2019 02:54:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqy70X/KQAk6sEQwWz9WpbuVJm3GnB4HrySdnXk1aZpaaD1fiDdNMaPfyHv0ISrp1aVc/PJk X-Received: by 2002:a62:5797:: with SMTP id i23mr54175496pfj.12.1555062860846; Fri, 12 Apr 2019 02:54:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555062860; cv=none; d=google.com; s=arc-20160816; b=F1gobDSn0A9fgbtbmhyzzS7N2v3kdr9UY09Odi9p7eqfFfdCvdzkFA3LFiIBjQJI6b C04/xfvCx9agzCjWbGkZ8OttNFp0xUWUkScLH4fvhc7OZpdt74ip3BlglD9Ds8F6T6xq HUzbWCrYvPyJ04xS6ARh/KsCff/TzDObtHX2jPoEozu7aMZdIUeson/c8UciPfLNe0NM Zy4yduSd8DgCEPZY6CadNCGS1bM/c6HnYMmpG2JijLiTCPbNoEt/YLTEtD7oi4iSFYT4 r+FBYbrRo+9N8fbe98UvI/VYzwS8l4bqXr3sZnCRvn+HMEHosfl2KyjgdPqS7zInP2RH QAZg== 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=/1Zku6vfoKt7fEtyvJHYpXJNfQV1lP0TfoCJGhnswJc=; b=U9eC6VsbGsVgBzpZR1Ze3K8dDxu1TOWsrY18LgBy69NBYyiUqevKAyPruo9B+zxZnc eXvADpd7LGbIqQg3VbpDhLSp08RAuqU7lADZ8RVeVuwVo2zG1lccAA4wLz7rwYVzrfc2 w6w2NHq/QBTKfPqKa1v0dQTlHGylEIuMPwu1CTBMrUOQvaMv/fVgCJctT64r/TpNfoAB nLe38j3s6wDRJvg0+GGMYaCm2Q3CMIgKfyMI+LM3urEktrmDfKQ5To2maqpEFFVyOQhJ f4SLYLMScGnr6URDXhtL7eM+dUdS3zvlGaprWNMWvhlqGmLtpb4iEw9pBWAHibZCHmJk JGsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=totDVYAT; 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 v131si37216444pgb.452.2019.04.12.02.54.04; Fri, 12 Apr 2019 02:54:20 -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=totDVYAT; 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 S1727048AbfDLJxS (ORCPT + 99 others); Fri, 12 Apr 2019 05:53:18 -0400 Received: from mail-eopbgr10063.outbound.protection.outlook.com ([40.107.1.63]:5486 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726902AbfDLJxQ (ORCPT ); Fri, 12 Apr 2019 05:53:16 -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=/1Zku6vfoKt7fEtyvJHYpXJNfQV1lP0TfoCJGhnswJc=; b=totDVYATj7spkNNv9JZUmgsxJ+rnT8gek8etDwHCMdK96F9gI5OjISDrIXq1LeTXG+ugxfxHBTMKH6WY4+C5ZmaBQypnhDIwHNMVJ2WPzeBgJfjUr6J1AQIwTunUwRSqZbyA3xpMxRjWegIVTtNz3hbQWZ1EGVll4rad/w8V0bE= Received: from AM6PR04MB5781.eurprd04.prod.outlook.com (20.179.3.19) by AM6PR04MB6262.eurprd04.prod.outlook.com (20.179.7.205) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1771.21; Fri, 12 Apr 2019 09:52:30 +0000 Received: from AM6PR04MB5781.eurprd04.prod.outlook.com ([fe80::f9db:ed86:614e:460]) by AM6PR04MB5781.eurprd04.prod.outlook.com ([fe80::f9db:ed86:614e:460%4]) with mapi id 15.20.1792.009; Fri, 12 Apr 2019 09:52:30 +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: [PATCHv5 1/6] PCI: mobiveil: Refactor Mobiveil PCIe Host Bridge IP driver Thread-Topic: [PATCHv5 1/6] PCI: mobiveil: Refactor Mobiveil PCIe Host Bridge IP driver Thread-Index: AQHU8RVxwCgqbmUIs0+mzKQDP7R+kg== Date: Fri, 12 Apr 2019 09:52:30 +0000 Message-ID: <20190412095332.41370-2-Zhiqiang.Hou@nxp.com> References: <20190412095332.41370-1-Zhiqiang.Hou@nxp.com> In-Reply-To: <20190412095332.41370-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: HK2PR02CA0210.apcprd02.prod.outlook.com (2603:1096:201:20::22) 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: 6db5b21f-e447-4593-fb04-08d6bf2c93e6 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:AM6PR04MB6262; x-ms-traffictypediagnostic: AM6PR04MB6262: x-microsoft-antispam-prvs: x-forefront-prvs: 0005B05917 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(346002)(136003)(376002)(396003)(39860400002)(199004)(54534003)(189003)(68736007)(81156014)(3846002)(66066001)(26005)(76176011)(81166006)(86362001)(2201001)(102836004)(186003)(386003)(7736002)(50226002)(7416002)(8676002)(2906002)(6506007)(8936002)(305945005)(5660300002)(6116002)(5024004)(14444005)(4326008)(476003)(53946003)(478600001)(25786009)(486006)(256004)(2616005)(105586002)(71190400001)(446003)(110136005)(6512007)(11346002)(1076003)(53936002)(14454004)(52116002)(6436002)(6486002)(71200400001)(54906003)(2501003)(30864003)(36756003)(106356001)(316002)(99286004)(97736004)(921003)(1121003)(559001)(569006);DIR:OUT;SFP:1101;SCL:1;SRVR:AM6PR04MB6262;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: rIfl1AE9MSD5e5iYWGkwlAFU9N5Kn62f1dsWqJNWK0uyHnV1vBzt+dLNcCwMXhfvjZpoELQFyoiFfSB6Uwg/V+LL4qht9Cr9s4qQi3wTYfwivcTEIoikY6EY3FThbmmAaLm1X8BHgxIN9IzATEJ/X1Z1wBqag0mpt3nG0esFmHOFfVYp5HM2Vgp4ZVVQC1VdH5MgTUPugG0W4+N5Yi12BahsoCWK4QIEE1ASsNZmsgJBXsGrKsSuemIW2BfBjhkquJEHwQ8V0Ii4LFHQeJso7RQXN0youbhOYmQH8QDko4tXUzI/omi7P+/Bl0dBpBwgLcaxEgr1Ctjjy+BhgXQx0LbRtnyCprwl4o9QuTCIvi5Y2yPTV5/4+DV+4qmnboAMA/lWcfLRbsoVkJEZ2ob/zqfkQcQDDT0EeCrgx+e7Fq0= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6db5b21f-e447-4593-fb04-08d6bf2c93e6 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Apr 2019 09:52:30.5862 (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: AM6PR04MB6262 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogSG91IFpoaXFpYW5nIDxaaGlxaWFuZy5Ib3VAbnhwLmNvbT4NCg0KUmVmYWN0b3IgdGhl IE1vYml2ZWlsIFBDSWUgSG9zdCBCcmlkZ2UgSVAgZHJpdmVyIHRvIG1ha2UNCml0IGVhc2llciB0 byBhZGQgc3VwcG9ydCBmb3IgYm90aCBSQyBhbmQgRVAgbW9kZSBkcml2ZXIuDQpUaGlzIHBhdGNo IG1vdmVkIHRoZSBNb2JpdmVpbCBkcml2ZXIgdG8gYW4gbmV3IGRpcmVjdG9yeQ0KJ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