Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2345789ybi; Mon, 17 Jun 2019 03:17:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqzV7ghdYBcMLOnPQ+bF1ByNsPzcgaiGtdpIyAUXH5fcE7AzFDtUUF58e8iOvCxFicMproeD X-Received: by 2002:aa7:8b17:: with SMTP id f23mr78119146pfd.194.1560766630251; Mon, 17 Jun 2019 03:17:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560766630; cv=none; d=google.com; s=arc-20160816; b=qsYd3HmYxmIx5mAzvCv9JWjIQDHCTUIrgCDzseeV/Uv7n07qyxVu9gzNmknhCsHW6O OcbT7rTjKj7nZjtUmgS6kPRvHg7ktMA6yX335iP+5KHTLHF1YKqZgRcAX42zMUFmOPyp +Ged0w6o4SKyUJWxB8GH/RLE3Mg2bmIrdZeK8xWRPYyKHakzAk40zJsVmW6uGmSnPx9E paRSjIMt01npmBGPilTjDU9YlzcCJWAEA4/derigSqke3dYhbdZLYwrY4UAWFzqFidtm o8gkHVS+XvFZpavOpyBntGXnrUDnyYhcH9wxGOXgOfUgy2CZpT6gEK6e4pvxAWx7RJjo lLBg== 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=BW6L11scjUfsI0pCZmhuuLV+QBTvlOxF3DQPT34Pp3k=; b=jh5hPzStp5jgtIai9sAUEtmOl2YngY5O7+dYysqubkUv9EF4PcJ+hO4TnJnUNnq4Xj erTvCGffLlm9r0jXRxI+DAv7f3Yty4b9Z+hfxCN4dmvnDbs5Ly+CH/FJkquFU4I1Vv4e w7YbK/w6/iU6jCw8mx2MKe3OIRgxc2b/lBcE+MtbC60bOh1R37AxS6CgHpJxj5oeCTvv 3MhbFaSqeG5HvUIsZw4bhBODrFDimGPrCvLPibw2FLAWgdoD82cLIa8fVN6fDg21zcsk MAiOCG980YfA0McNsls30qz047FmutBHLebeVkeEgSkzacQp5b1ckfTzBcacYGMJL5BM qTSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=ImgGxpQ7; 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 f17si10296914pgv.338.2019.06.17.03.16.53; Mon, 17 Jun 2019 03:17:10 -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=ImgGxpQ7; 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 S1726673AbfFQKQd (ORCPT + 99 others); Mon, 17 Jun 2019 06:16:33 -0400 Received: from mail-eopbgr130079.outbound.protection.outlook.com ([40.107.13.79]:2126 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726665AbfFQKQc (ORCPT ); Mon, 17 Jun 2019 06:16:32 -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=BW6L11scjUfsI0pCZmhuuLV+QBTvlOxF3DQPT34Pp3k=; b=ImgGxpQ7VvJEAxagnUpgTwvHuG7Oc9ctbCAeyLgbLlcGgxdWpbhOa8RMPKtpccaUR81EiMo6B9f8Gxd6eheEGUq+7zbnD+fuXLYSrrAfx4l4cxfJSwrydKQomDzt/qj6j0lGJhpZcSPMV0qCtL2WGLRAQGx0vvqRMo0PY6ZHjrI= Received: from AM6PR04MB6742.eurprd04.prod.outlook.com (20.179.246.158) by AM6PR04MB3974.eurprd04.prod.outlook.com (52.135.160.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1987.11; Mon, 17 Jun 2019 10:16:28 +0000 Received: from AM6PR04MB6742.eurprd04.prod.outlook.com ([fe80::cdfd:dd0c:dcaf:95b1]) by AM6PR04MB6742.eurprd04.prod.outlook.com ([fe80::cdfd:dd0c:dcaf:95b1%7]) with mapi id 15.20.1987.014; Mon, 17 Jun 2019 10:16:28 +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+GZR0qQ8kEqE4mrq0ZGBSKaYanwAgAPhqdCAA6/2gIAADLiQ Date: Mon, 17 Jun 2019 10:16:28 +0000 Message-ID: References: <20190412083635.33626-1-Zhiqiang.Hou@nxp.com> <20190412083635.33626-20-Zhiqiang.Hou@nxp.com> <20190612135400.GB15747@redmoon> <20190617092901.GB18020@e121166-lin.cambridge.arm.com> In-Reply-To: <20190617092901.GB18020@e121166-lin.cambridge.arm.com> 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.73] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 2918e8af-3919-4a95-bea7-08d6f30cdc6e 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:AM6PR04MB3974; x-ms-traffictypediagnostic: AM6PR04MB3974: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5516; x-forefront-prvs: 0071BFA85B x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(376002)(346002)(366004)(136003)(396003)(13464003)(54534003)(189003)(199004)(25786009)(6436002)(186003)(66476007)(66556008)(66446008)(26005)(66946007)(66066001)(446003)(76116006)(73956011)(476003)(11346002)(71190400001)(71200400001)(7736002)(4326008)(74316002)(256004)(33656002)(64756008)(52536014)(7416002)(99286004)(102836004)(53546011)(55016002)(5660300002)(6916009)(6506007)(486006)(86362001)(478600001)(68736007)(81166006)(9686003)(53936002)(316002)(54906003)(3846002)(81156014)(8676002)(229853002)(2906002)(6116002)(6246003)(76176011)(8936002)(7696005)(14454004)(305945005);DIR:OUT;SFP:1101;SCL:1;SRVR:AM6PR04MB3974;H:AM6PR04MB6742.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: kMlCdLivJz4tbKWJajWKXM+KJyuUm6ssYqYYrIU7lnq5KWQn+QLZL9B9YL3NEBqA7ZSUtVED0s68pFxHYK/1jnHb0zWPapucWMITvMPHn9aEVWgRPYVR2UDjKS1ekPl2cjEdPU6S3B8FEeoHAWh6TnakCyPDASvhb0BCxVdRrw+gYOMFaHy7Y5eqUWzcVlO9w2cmt1Q415HacDkvIj2oCDXD5pkGrXeOQZAfozOSTvJoKtAyXSUL10gEc+YoRWeqm2k/jZAnTGN/Q6W4q8QT3wgVn5yWn8S7F/s6R/POC4K/VrUdAtNOCXadpmL0PTNZCHK70V0u1Mz0hPkEat1ZisoTy/xhfkvX/QPaNi6nRBbK6N5WxE2S4z97xhk4DiL34iIwVGh2GqECOlCJTfIGZo6xo9BZxBJ0Z5ceaMO90HI= 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: 2918e8af-3919-4a95-bea7-08d6f30cdc6e X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jun 2019 10:16:28.1806 (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: AM6PR04MB3974 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgTG9yZW56bywNCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBMb3Jl bnpvIFBpZXJhbGlzaSA8bG9yZW56by5waWVyYWxpc2lAYXJtLmNvbT4NCj4gU2VudDogMjAxOeW5 tDbmnIgxN+aXpSAxNzoyOQ0KPiBUbzogWi5xLiBIb3UgPHpoaXFpYW5nLmhvdUBueHAuY29tPg0K PiBDYzogbGludXgtcGNpQHZnZXIua2VybmVsLm9yZzsgbGludXgtYXJtLWtlcm5lbEBsaXN0cy5p bmZyYWRlYWQub3JnOw0KPiBk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