Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1531742ybv; Thu, 6 Feb 2020 05:48:21 -0800 (PST) X-Google-Smtp-Source: APXvYqz5ktMFj3LK/xFwY2LUworafGLOKjPFO9QzGWkhsaV/XP1EHXsp2jEwlPzaZzDoRAJwo+t4 X-Received: by 2002:a05:6808:4c2:: with SMTP id a2mr6673784oie.118.1580996901008; Thu, 06 Feb 2020 05:48:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1580996901; cv=pass; d=google.com; s=arc-20160816; b=zd9vyluIVRNTsxR3c6VGHpnTc7TK5W6vGa7b8HAcJ+y+k50385PfPS3ekGfRnc2Npe z0FenEk3unPSotMZRWPGvJnFGWUqihssWRgrgCy60b2HTM5xhZJBBdb7mqLZTeCOLmpO 3vlFPHuNfCByZufqou729CU4qOn/OiekVckJE/iKu8cwXYXh9vpP/GXL/KEBqTYyJ8Y6 meaFPO70QU3RwLwtCTfR6zEla1YfcnOVeiHbFM6nPexUTz/BTWRUv0kg5u9yqYoYe0vb yoJXdxjKJDHkfpJcmVsIbNzt8Hrjcq25O3UVSTh8xKoOAdNMuYn6wpw9+wldhI5uXZJj Mv8g== ARC-Message-Signature: i=2; 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=twv5rjXQHapHuLk7+cf1XMq8HsajBQKIPIT4Edec2/E=; b=U7Ap+1CT2UgbbK6nAAWAyKAH4N896EEnFKbLiN1JmmrIhAF6dH27gPfcfcHxyuttDj LV1IcD51ikVMRgm2yv8QJsBRQTbUyyAL5eSEgQ03toIdYWb+wVe+2o7K7H4zEGTuv9Ae wWvwLjIFQ3g/eSXcsamYuls0VSVkqrmhd8evl7N8OzySNVf0hbEdBEemrnwB16751uh3 mC/b2B+LCM3655Z0TbL62UJmle3sl2GFjpZgsxZ6hlDN7Hc3tPFBnQ31G4ySpe1GCVjz R4VvUJKxzh2tjbD/NVZvegM+cVdkwaE9AkkZWjq5zN3/zu1N44K1u9sJ0OV7ZPlvf+vP A92w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=DoIm3XTN; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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 w18si2085108otl.54.2020.02.06.05.48.08; Thu, 06 Feb 2020 05:48:20 -0800 (PST) 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=DoIm3XTN; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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 S1728047AbgBFNpj (ORCPT + 99 others); Thu, 6 Feb 2020 08:45:39 -0500 Received: from mail-eopbgr80054.outbound.protection.outlook.com ([40.107.8.54]:54078 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727951AbgBFNpi (ORCPT ); Thu, 6 Feb 2020 08:45:38 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bJk5DxdufctyaraGWrVPFmIiGIN/e0Aa7d8WQRtLK4JMRe4tGgujmsvTJY1d/AopG1TwiDm4tsA18ZtS/7SEsG7SjZS6g6B4YL1IczqcgXZluG2TOyySTQTKjTCnH32DElDg2ew9jPh5iSXeAk8G6kNv3s9SWKcnlkB+hBGx2X6KfGMSY/WAdI3/wBOXcWpZ1BUiE9agRHJjH1C0d/EMGuGgqw0EmYZYS3nc3dEWYlsoDrqDBjUMqWp1AjHoWVA/+bayD/1k+WWbUTyOCaGn/CHGJr97rf8rigtkrvgelcr/nl3v7dvTS3AS21iFfxYZBfSVV+ki5mTW8ESR+nk9lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=twv5rjXQHapHuLk7+cf1XMq8HsajBQKIPIT4Edec2/E=; b=DAX5/qjWQevCB0DeJU4RJDkcZTXa0v527a10iaVhu1QdoTtbGirk0HOxE0DD1EiGBd8Ii/3asLN3tPrYBZh58P26M7Gi5x7PJ729TMpWyQWQoTOgLG9RAUXVnurdU2k4/y45bUnM7dUtqWRsUfStFJufdJScvOXXcppqALDzgMd0SyA6hZn9PXWhxgFlQIrUTTJkKRN6nFMbJ1TnGm7pv6uHYIyRNqIsBg6xdjhnhoQfGhUy/OTWVHd86FJwX8XCgrJvhGndCLNMnYGiNovFR2sJaLW7PJ8laGBK5qsZmFzk45ZoAA3Z7lnvJmFCZdrygqu+va8VD9mcQ1YPYQNNig== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none 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=twv5rjXQHapHuLk7+cf1XMq8HsajBQKIPIT4Edec2/E=; b=DoIm3XTNY9NzTYAURUlpbl/vc395BujgHHSfdIIs2I6uPZEKp8uizOxGpqLOuC399G2rrHxEvOTknlCi/ncqEZQ/8KhcMYzx2CFffbT6q7hhFxS2gl0vJTJ862NRDvmb1DkuwqY6tsLEOI0aVVKJ/Kh87zVepzkD2CFTotUW09Y= Received: from DB8PR04MB6747.eurprd04.prod.outlook.com (20.179.250.159) by DB8PR04MB6748.eurprd04.prod.outlook.com (20.179.251.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2686.32; Thu, 6 Feb 2020 13:45:31 +0000 Received: from DB8PR04MB6747.eurprd04.prod.outlook.com ([fe80::104b:e88b:b0d3:cdaa]) by DB8PR04MB6747.eurprd04.prod.outlook.com ([fe80::104b:e88b:b0d3:cdaa%4]) with mapi id 15.20.2686.035; Thu, 6 Feb 2020 13:45:31 +0000 From: "Z.q. Hou" To: Andrew Murray 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" , "arnd@arndb.de" , "mark.rutland@arm.com" , "l.subrahmanya@mobiveil.co.in" , "shawnguo@kernel.org" , "m.karthikeyan@mobiveil.co.in" , Leo Li , "lorenzo.pieralisi@arm.com" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , Mingkai Hu , "M.h. Lian" , Xiaowei Bao Subject: RE: [PATCHv9 08/12] PCI: mobiveil: Add 8-bit and 16-bit CSR register accessors Thread-Topic: [PATCHv9 08/12] PCI: mobiveil: Add 8-bit and 16-bit CSR register accessors Thread-Index: AQHVn1UM/CwMe5ZZnEiSNfgmt9Cx/qfoy1uAgCRZKrA= Date: Thu, 6 Feb 2020 13:45:31 +0000 Message-ID: References: <20191120034451.30102-1-Zhiqiang.Hou@nxp.com> <20191120034451.30102-9-Zhiqiang.Hou@nxp.com> <20200113113135.GN42593@e119886-lin.cambridge.arm.com> In-Reply-To: <20200113113135.GN42593@e119886-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: [92.121.68.129] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 46510d77-e63f-48b4-878c-08d7ab0ad594 x-ms-traffictypediagnostic: DB8PR04MB6748:|DB8PR04MB6748: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1247; x-forefront-prvs: 0305463112 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(136003)(396003)(376002)(39860400002)(346002)(366004)(189003)(199004)(55016002)(478600001)(4326008)(8936002)(76116006)(66446008)(66946007)(66476007)(64756008)(66556008)(9686003)(5660300002)(52536014)(86362001)(33656002)(7416002)(6916009)(316002)(26005)(54906003)(71200400001)(186003)(81166006)(7696005)(2906002)(6506007)(53546011)(8676002)(81156014);DIR:OUT;SFP:1101;SCL:1;SRVR:DB8PR04MB6748;H:DB8PR04MB6747.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: BCL:0; x-microsoft-antispam-message-info: KT+YOm4Y6Wp+YdXnMIO4rGN6gb/kk9aCPyjzbZYzcj/bx7WVqd1jVeWncmmEE61+ixlgffGCUmDyE91LP3VfYFoQ1mo44jp6BxkDJteKTl1Dh//bi8ocr8L75PylbUV8Od11Jw860/tWU8jxqt6TerO/i2KrGORUiaGIVcbDYcs9HCUdzG0k6ne3fG/o7eWbq6jKfZfcT9FDzF5BSRYi6RDIR0TxV8lyT9PycTr19aZ/JzL3bMWcbb9MRm4s+nxcP659U8AOh+mDCBdvkqJTEPrGj2gTvWFLoFe51DlPWtVbW8Hdh5CJqTMd2zehF9aq4CjMgLc3eSQa7b9hXhuZoK0zaG8RhbNKpQCmsbkn2h6t7000cLVzDeR5UXaX9gZFQDOIKc6S1/n8pQ6fWRGZ7kPsw2DyUYu6Ige0Ae3cBUOt3RHx7JQ2Donoe52rxv/y x-ms-exchange-antispam-messagedata: EH8GTHAjnbVJbgpmWaf2PieryDRGWy/zlrCZO2kJxIhaDihFtloco26b4OSAf6CwxBuS9GUK0S4cC18Zw1SKCn7ZwGxcrxizHu8fuOsmQTdEnItNFy7FrMBYWDp+/v5E4cch3bBkxasz1ZNFh6/zTQ== 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: 46510d77-e63f-48b4-878c-08d7ab0ad594 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Feb 2020 13:45:31.5919 (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: 4+RgWw+3gnaapKNosRwrZZXbsBePEdLnsscYYSNFyRmQUB7MK+vbni9ia9cc+Z+GhzZohNOBue0T9EZi6xSQ+w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB6748 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgQW5kcmV3LA0KDQpUaGFua3MgYSBsb3QgZm9yIHlvdXIgY29tbWVudHMhDQoNCj4gLS0tLS1P cmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQW5kcmV3IE11cnJheSA8YW5kcmV3Lm11cnJh eUBhcm0uY29tPg0KPiBTZW50OiAyMDIwxOox1MIxM8jVIDE5OjMyDQo+IFRvOiBaLnEuIEh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