Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4286949yba; Mon, 29 Apr 2019 17:24:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqydvV9c5sfoXdji/eINaf8fO3RaURBUp4tddEZnJcUz3Pw6iGGjJCApWrcLk9t0iWPaIERQ X-Received: by 2002:a17:902:302:: with SMTP id 2mr66596478pld.232.1556583898007; Mon, 29 Apr 2019 17:24:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556583897; cv=none; d=google.com; s=arc-20160816; b=LVG3joIJmPnIW7W4JSSFanBLfnAs+Ng8x6U13fIJaiM16OTvr3g7xWn/lWNDkSPlJ0 PpHUEkTbptylPhBDZWBOdzjRY4+OI2QlJ6DFd7eiZebYdC49ypxFfN9cpaNQKnaVyB6E P/mXfApYuIZYeFr7q6ibkEPDVfSXIouT4FZVJuOJ7l6XGR0oqLG8vFoQ1gL9llK1clIP 6q1LgBTSnlZU3cmsCekoQqYwnoGyDPVR580h+LMfYvOAzDWf8kOPFhe6UgrKCdip6K9U WqbsZbWcqfVhYP09+LgY/RRePBiAZD9joskUL4CaeBoflNBvnG8NLoShSVH+6pIgx/fT ZPdA== 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=Us9/e3YEtHABk7roSqw7P05HelM2MqxP+2Ld8XPe1fY=; b=JD5uL76uurDtKLbCvt0FdfYH2b/4lqcO36Oz/qOfpnWbZod0Ma6SbJshOQmNZOOfLp 7mONMsBn4QCIonwMVRn+NbPdi9jyZ3wZc/NXt93q8chDnZNfb9q/2s6gMl9p1oEaWkuo ov388C/mm9XDTbLCPBsod+kTTdvoi5CRe55ARWqDICd16soCvgIdx/n1i1HMWrOPGkeg s2HuGLSW6bU9E9ts7/jXt87L7jhuot/u0wLNIEPN2LYWMmrZAADBqZBfs4s/HrKxfm9Y YckMayeh3hguLQg6iZ5k4aY8jHWhdTYmDgQy//ECAZuKxhsqywOWXd+dv20BOO/8AUih Zrcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=ULzAIfL1; 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 j6si6441327pgi.464.2019.04.29.17.24.42; Mon, 29 Apr 2019 17:24:57 -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=ULzAIfL1; 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 S1729391AbfD3AXx (ORCPT + 99 others); Mon, 29 Apr 2019 20:23:53 -0400 Received: from mail-eopbgr10080.outbound.protection.outlook.com ([40.107.1.80]:5890 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729214AbfD3AXw (ORCPT ); Mon, 29 Apr 2019 20:23:52 -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=Us9/e3YEtHABk7roSqw7P05HelM2MqxP+2Ld8XPe1fY=; b=ULzAIfL1J4XAb8LG92ZyRNCSLhlu+ER5ckuMLMEd9HUBraL/HOgWvwVpXLHVSCY6NczX1AlvGrIywY1nTjHv18gXHQfOkiyGkjEyJn8bIGPQhEjasmY3gAf4/iEIxnD3xu9txZfnFMqurxkiJjR/7efi6C6rjkgAUhgp/tBAmCA= Received: from AM6PR04MB5781.eurprd04.prod.outlook.com (20.179.3.19) by AM6PR04MB6296.eurprd04.prod.outlook.com (20.179.18.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1856.10; Tue, 30 Apr 2019 00:23:47 +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.1835.018; Tue, 30 Apr 2019 00:23:47 +0000 From: "Z.q. Hou" To: Arnd Bergmann CC: "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" , "M.h. Lian" , Xiaowei Bao , Mingkai Hu Subject: RE: [EXT] Re: [PATCHv5 1/6] PCI: mobiveil: Refactor Mobiveil PCIe Host Bridge IP driver Thread-Topic: [EXT] Re: [PATCHv5 1/6] PCI: mobiveil: Refactor Mobiveil PCIe Host Bridge IP driver Thread-Index: AQHU8RVxwCgqbmUIs0+mzKQDP7R+kqY4mNcAgBtWwnA= Date: Tue, 30 Apr 2019 00:23:47 +0000 Message-ID: References: <20190412095332.41370-1-Zhiqiang.Hou@nxp.com> <20190412095332.41370-2-Zhiqiang.Hou@nxp.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=zhiqiang.hou@nxp.com; x-originating-ip: [119.31.174.68] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 76b8b8c7-6efa-418a-997e-08d6cd021cc1 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:AM6PR04MB6296; x-ms-traffictypediagnostic: AM6PR04MB6296: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6108; x-forefront-prvs: 00235A1EEF x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(39860400002)(376002)(136003)(346002)(396003)(189003)(199004)(13464003)(2906002)(14454004)(3846002)(186003)(6116002)(66556008)(64756008)(66446008)(66476007)(71200400001)(71190400001)(76116006)(97736004)(66946007)(73956011)(6246003)(81156014)(53936002)(25786009)(33656002)(55016002)(9686003)(4326008)(8676002)(8936002)(81166006)(256004)(5024004)(14444005)(316002)(486006)(478600001)(7416002)(68736007)(11346002)(76176011)(305945005)(53546011)(86362001)(74316002)(102836004)(6436002)(5660300002)(476003)(7736002)(66066001)(99286004)(6506007)(52536014)(229853002)(446003)(26005)(6916009)(7696005)(54906003);DIR:OUT;SFP:1101;SCL:1;SRVR:AM6PR04MB6296;H:AM6PR04MB5781.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A: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: Ec+IobIlPblM32BDiObQ2+1jRm6kL6j/F4neizIATSkyMZ04pgRH2lsJMUkSjCKcKxEA28XzzR9qfb5RCl8QtaXWTvgxq2haQ3Q5Gk/rXFCsorWeJHJjjXr4xjsfTBIWwcWyVsSXgLQXOxxlC693ayQsfgaaqSq315U/phDv4CCzD3PxqBWXkXN4FkaWIJ7K9OVhhVDk7APAHPUEeJycTcWuotvuCnhg0JvODsLKbzvte5Y0wG/RJ2Ctv/dVHAjw3soue4F5P/4RavylShVzZQX3oevzbKW9utUq5EuEwPc+YxPrLPBP9gxY0yfxpjItKWsY1ZShZRe9PJK/IsDSOKO0RG/1jHNpy9C8h2JVQ1A0ZRCf+CEwaa9QatTTBlLyDVU85KROIrxy21jCj5Pxm4jedI+q13q/CM+oRGibiUk= 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: 76b8b8c7-6efa-418a-997e-08d6cd021cc1 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Apr 2019 00:23:47.4591 (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: AM6PR04MB6296 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgQXJuZCwNCg0KVGhhbmtzIGEgbG90IGZvciB5b3VyIGNvbW1lbnRzIQ0KDQo+IC0tLS0tT3Jp Z2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IEFybmQgQmVyZ21hbm4gW21haWx0bzphcm5kQGFy bmRiLmRlXQ0KPiBTZW50OiAyMDE55bm0NOaciDEy5pelIDIyOjM5DQo+IFRvOiBaLnEuIEhvdSA8 emhpcWlhbmcuaG91QG54cC5jb20+DQo+IENjOiBsaW51eC1wY2lAdmdlci5rZXJuZWwub3JnOyBs aW51eC1hcm0ta2VybmVsQGxpc3RzLmluZnJhZGVhZC5vcmc7DQo+IGRldmljZXRyZWVAdmdlci5r ZXJuZWwub3JnOyBsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnOw0KPiBiaGVsZ2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