Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp200590yba; Fri, 12 Apr 2019 01:39:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqwveFGSE+enCwSd3Q1neKIzQKTfw5UdmiVR4vS9DKm/8+9ssVTUbP5oCSchh7LwNKcQApki X-Received: by 2002:a63:cf11:: with SMTP id j17mr51859939pgg.252.1555058390105; Fri, 12 Apr 2019 01:39:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555058390; cv=none; d=google.com; s=arc-20160816; b=Mu6PfdDnsXr6DRG2yiIjU84PeTYO9Kk723aF+V4qtthzBdY7cvH740JJ4Mz9p7i0XW XQx2+2hBdFJJmfUseDEcaBhAwllDPEkG0YaDylexOlvMIHzz5Q7K1aaJp7hX/emIK+d4 8Sxo/W8xI/GdIDgwSyrdQY8BJxcfSQcHORtsubzU9ABQhs70vN4uBntCPswFvaGm8DBr uufL+wM7bUPkivTVZkXHN80blnm/D7ezZSXzo+yienFQDBFyDP8eRbtPYInkVaDvS3ta rBS1OHwmQERMMmsK7rlT0s030hq9HLiaTC1lMsY3TNnSuClNs0RbmNORdEtTs4/bShzO gE7g== 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=8AYUwKCbGvtCTx60DkELIz3VMimGftEil4VMnSeR24E=; b=iMgPasmWUW+RoMPK3J6QvtH3FDJG8YRD0jPhrnupGRHCIW0g/nwg/YykGZj1rJNxyJ /1Nbuq0OAYYogKojQA+TM3sPxNQwFJYKuMvoEA33IMN6KeMaD/gM9Acxu2YBaR3HAHu/ 5zrMATqaFmJvPWbHk39FJCXusnsaR11mjF/bqbVm/GCWpAahPw5xE6tceVVEL/krDP4W Fjk+h/YODWdrmO7fxqTUXeAjIGHD1PDjHmffoTJE51JHgEIvvexD4aNtmw7nuF4L66dX 0OiepaooHybKE3JRQuvCRxClXi37hX/OdQMsALWrvFPQzHrlZ5UVvri5G+lUfCDpqzZa b4nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=kUfSIMQC; 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 bj7si37055806plb.408.2019.04.12.01.39.34; Fri, 12 Apr 2019 01:39:50 -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=kUfSIMQC; 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 S1728625AbfDLIhL (ORCPT + 99 others); Fri, 12 Apr 2019 04:37:11 -0400 Received: from mail-eopbgr80081.outbound.protection.outlook.com ([40.107.8.81]:6214 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727279AbfDLIhK (ORCPT ); Fri, 12 Apr 2019 04:37:10 -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=8AYUwKCbGvtCTx60DkELIz3VMimGftEil4VMnSeR24E=; b=kUfSIMQC0OH+H73pITtwALyVuHyGDZ++nDUmHRlCSflcrGOyXSX9X2cqf83p/972E3VtdLf00M/+LzUkWia/xlWcKRujQXBGg9gS0SyWMsheS4P3PkyV+FLC/Z54p7yePZVTDHvT3ciqBrgbMfAL0XGt994+KT8Mrf2DnmZBnEg= Received: from AM6PR04MB5781.eurprd04.prod.outlook.com (20.179.3.19) by AM6PR04MB5846.eurprd04.prod.outlook.com (20.179.3.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1792.18; Fri, 12 Apr 2019 08:37:05 +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 08:37:05 +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 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+GZR0qQ8kEqE4mrq0ZGBSA== Date: Fri, 12 Apr 2019 08:37:05 +0000 Message-ID: <20190412083635.33626-20-Zhiqiang.Hou@nxp.com> References: <20190412083635.33626-1-Zhiqiang.Hou@nxp.com> In-Reply-To: <20190412083635.33626-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: HK2PR06CA0011.apcprd06.prod.outlook.com (2603:1096:202:2e::23) 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: 46de97c0-2244-4a68-9260-08d6bf220af6 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:AM6PR04MB5846; x-ms-traffictypediagnostic: AM6PR04MB5846: x-microsoft-antispam-prvs: x-forefront-prvs: 0005B05917 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(366004)(376002)(396003)(346002)(136003)(189003)(199004)(54534003)(486006)(478600001)(2616005)(476003)(316002)(446003)(11346002)(305945005)(7736002)(81166006)(25786009)(81156014)(256004)(14454004)(8676002)(7416002)(4326008)(186003)(50226002)(26005)(8936002)(68736007)(2906002)(53936002)(102836004)(6512007)(66066001)(86362001)(99286004)(106356001)(6116002)(3846002)(6436002)(97736004)(1076003)(6506007)(386003)(52116002)(2201001)(105586002)(6486002)(36756003)(71200400001)(110136005)(54906003)(5660300002)(2501003)(71190400001)(76176011)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:AM6PR04MB5846;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: 6mMn1oEdVO2RyI1E/v+1Jw9sstgPFKglCS1e2K8Bf2N8EEBKb6vNEEu+p9fqHbAd/lGFVE8z7Kzw++dlrYqoYiZaYXCL40NAlTllaMKUIUdfSSqHKf8+52PLsEIUJ+83y3ld6TJhiOhXDCriIf7IiIC+8tDp4PXDQmp1EEbQE3sNTED3sz0TY1iy53NNkh+ehDc4rBY4nR7Hl6MTIJVNKNLNJAJdRat3Mmk4R5+PzeA1imtxSMbSkIK6sWyGuQlIBcC4ETWEQ4nl6VAKR3dJg32Lj0XhlZoHmiXmC6SGjKxprkx2cvCzlx5T5RioKAXhCoAJzc5sTaBbaXUCzyYTcSImHo/wM8ZobNgNM2xTH3s27IFpsv7LOX6IMZKJoQ94B8UGcEXJVUQdGFvMthCYOqvt+Uz4Tkx0irOpfsCKwXE= 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: 46de97c0-2244-4a68-9260-08d6bf220af6 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Apr 2019 08:37:05.6691 (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: AM6PR04MB5846 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogSG91IFpoaXFpYW5nIDxaaGlxaWFuZy5Ib3VAbnhwLmNvbT4NCg0KVGhlcmUgYXJlIHNv bWUgOC1iaXQgYW5kIDE2LWJpdCByZWdpc3RlcnMgaW4gUENJZQ0KY29uZmlndXJhdGlvbiBzcGFj ZSwgc28gYWRkIGFjY2Vzc29ycyBmb3IgdGhlbS4NCg0KU2lnbmVkLW9mZi1ieTogSG91IFpoaXFp YW5nIDxaaGlxaWFuZy5Ib3VAbnhwLmNvbT4NClJldmlld2VkLWJ5OiBNaW5naHVhbiBMaWFuIDxN aW5naHVhbi5MaWFuQG54cC5jb20+DQpSZXZpZXdlZC1ieTogU3VicmFobWFueWEgTGluZ2F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