Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp45854ybi; Fri, 14 Jun 2019 18:16:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqzFdvcZ/MqsqZzVuofxmEe+ujITGlOEl2Ivl1+FkGMPdFVhPPpy36pJD1C6tBKCZHzp959D X-Received: by 2002:a62:ee05:: with SMTP id e5mr99435279pfi.117.1560561374755; Fri, 14 Jun 2019 18:16:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560561374; cv=none; d=google.com; s=arc-20160816; b=LbU020rMQZjm51EY+9HdfNP8m+IxNkpj/JbDsvAw9Twjk7QNag+wubxhvFPSCBsSSj p+pErmVWS89fHKFrSTivDslOr3Y0Ln7/Dg4/xp8ztWgocpTCyr27tEVcUaPA/B34/Blr DJi2cX38vY+FWyX96tjmFMfuxRQw/xZyr3xV1o3H4zMoUEP24wy9sM2KKCMYYJBMCveu bcYobEdr5PuFo4tSADst8+RurUAZDewbFM8W7Vkvm0FCWAR5yZ5IpOt1hKfH/+WOrB+z HSoPcXjDmWiXQcfPWqkiF4b+tjn1FmJEmADMnVdsZMMKJMxIvCBUizPY90e1w3gGxClN 2P/g== 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=2o9r19ElmknWT/DGekY4AI4zXOQdJ5bAS0pWjfy73Ro=; b=vBsJenF0fEx7aUt/ybuz/moLZtqelFpSkIEcBGDAe6+vZrInoiY6q9HYs8ksdtoOwv wT/rg0izNF+61gJS0OlmBCFBNsWY661WIUw079nDuBm0EotsZ36gTuRNTJ7enwBHTRYD wkH3ShxriR71JwykxzZxr5cV8dDAcr1tQFJZ9TziMDsNzaxU9Zi1a6Cuketmr9ivgumc vzVwmdTS7rVtWoIIIGAFVNVgEjvd1UvEVMtSrmNjU2I50XZEb5V0/7BIpO6NJQCmbqLf gPGWRwZDV11kyEl65bSLeTM+Gn8O4dyfafhOfMVJ1Ti0SKLIEf7E5ORXn/EaWCZYj3IY 0P4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=kixVMxTg; 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 m62si3911527pgm.392.2019.06.14.18.15.59; Fri, 14 Jun 2019 18:16:14 -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=selector2 header.b=kixVMxTg; 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 S1726185AbfFOBOg (ORCPT + 99 others); Fri, 14 Jun 2019 21:14:36 -0400 Received: from mail-eopbgr70057.outbound.protection.outlook.com ([40.107.7.57]:14660 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725942AbfFOBOf (ORCPT ); Fri, 14 Jun 2019 21:14:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2o9r19ElmknWT/DGekY4AI4zXOQdJ5bAS0pWjfy73Ro=; b=kixVMxTgLjMAgOEbQn/PVxCQmiqkDkS5PGshzACqWZHhI79ySR6P+2THH8TvXrrtT96wDzikfeQO/7JB9eNbruZM1Vw6SEPiveVUG2sfUiDfJXUhpButMfMLS6M0UHj4R3Bv0n9mia9/NnLkZk4k77p3UB+sI7cDK9WsDJVHsyY= Received: from AM0PR04MB6738.eurprd04.prod.outlook.com (20.179.253.203) by AM0PR04MB5043.eurprd04.prod.outlook.com (20.177.40.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1987.13; Sat, 15 Jun 2019 01:13:48 +0000 Received: from AM0PR04MB6738.eurprd04.prod.outlook.com ([fe80::f41f:5455:d0b3:2527]) by AM0PR04MB6738.eurprd04.prod.outlook.com ([fe80::f41f:5455:d0b3:2527%4]) with mapi id 15.20.1987.013; Sat, 15 Jun 2019 01:13:48 +0000 From: "Z.q. Hou" To: Lorenzo Pieralisi 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 , "catalin.marinas@arm.com" , "will.deacon@arm.com" , Mingkai Hu , "M.h. Lian" , Xiaowei Bao Subject: RE: [PATCHv5 19/20] PCI: mobiveil: Add 8-bit and 16-bit register accessors Thread-Topic: [PATCHv5 19/20] PCI: mobiveil: Add 8-bit and 16-bit register accessors Thread-Index: AQHU8Qro+GZR0qQ8kEqE4mrq0ZGBSKaYanwAgAPhqdA= Date: Sat, 15 Jun 2019 01:13:48 +0000 Message-ID: References: <20190412083635.33626-1-Zhiqiang.Hou@nxp.com> <20190412083635.33626-20-Zhiqiang.Hou@nxp.com> <20190612135400.GB15747@redmoon> In-Reply-To: <20190612135400.GB15747@redmoon> 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: [27.186.246.136] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 885aab02-da50-4d5c-0893-08d6f12eb8b6 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:AM0PR04MB5043; x-ms-traffictypediagnostic: AM0PR04MB5043: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1728; x-forefront-prvs: 0069246B74 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(376002)(39860400002)(396003)(366004)(136003)(13464003)(54534003)(189003)(199004)(53546011)(229853002)(33656002)(6506007)(9686003)(76176011)(74316002)(71190400001)(71200400001)(7736002)(55016002)(68736007)(53936002)(478600001)(99286004)(7696005)(476003)(6116002)(3846002)(305945005)(486006)(6436002)(446003)(11346002)(2906002)(5660300002)(6246003)(25786009)(26005)(4326008)(54906003)(66446008)(64756008)(66946007)(66556008)(102836004)(7416002)(73956011)(6916009)(66476007)(316002)(76116006)(52536014)(186003)(81156014)(8676002)(86362001)(8936002)(81166006)(66066001)(14454004)(256004);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB5043;H:AM0PR04MB6738.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: Pyd5ytsRbfVDHMEAEPTKn8ZL6u1IC1LiOt2z3ap3oKSEwZXpArBDK2HUYAiTIyiVsb2FhgNbQ/KwzsEg0ICEEqqFB+Jb6uHoyeDWBPGEX6das6OHuZPsYYLBr47rHrtmS6j1PZQPus7D2vdyMmxRwwpSnN/qcUbrVAiFa79CP+eABudGgAKq4oCLeblgNHBW3n5brsaOPOL74ueFnHs8i77pD8NVAbIEEGLkJkDTL3geKBcZ1UuqGvE0nUuaBKqVT56adNkXADxVFxW1x+5HksoCo9R0brwzsHf8uzRKvsSFpasPjU3bOU3wIKBDf/lxJaNoIjPoXU6g31HInZKdOthjbHuoxJfIJn0WulSWTIaKRrCojqLcoVbk5QrULDfni7ALtQk10yb4Tol4lstr8D7DIehzGGSA4X0MbtqU5W4= Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 885aab02-da50-4d5c-0893-08d6f12eb8b6 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jun 2019 01:13:48.7931 (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-CrossTenant-userprincipalname: zhiqiang.hou@nxp.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5043 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgTG9yZW56bywNCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBMb3Jl bnpvIFBpZXJhbGlzaSBbbWFpbHRvOmxvcmVuem8ucGllcmFsaXNpQGFybS5jb21dDQo+IFNlbnQ6 IDIwMTnE6jbUwjEyyNUgMjE6NTQNCj4gVG86IFoucS4gSG91IDx6aGlxaWFuZy5ob3VAbnhwLmNv bT4NCj4gQ2M6IGxpbnV4LXBjaUB2Z2VyLmtlcm5lbC5vcmc7IGxpbnV4LWFybS1rZXJuZWxAbGlz dHMuaW5mcmFkZWFkLm9yZzsNCj4gZGV2aWNldHJlZUB2Z2VyLmtlcm5lbC5vcmc7IGxpbnV4LWtl cm5lbEB2Z2VyLmtlcm5lb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