Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3418015ybd; Tue, 25 Jun 2019 02:10:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqwSwfh2coykwP+OwYBXvL8qXc/F7lOncTdaxD/ywym9LAka4CQ7tQyRMEnRPQTcl1ARGZq5 X-Received: by 2002:a17:90a:d595:: with SMTP id v21mr30148390pju.34.1561453805564; Tue, 25 Jun 2019 02:10:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561453805; cv=none; d=google.com; s=arc-20160816; b=RPh98T+Voa8f0KytFAtTVZpxj87EKRhl5R0mt3hGRWHjpS23vKNlcF3STdzu9tdpHI QAA5uIFiCZD1hpvlSFFxwDu3ihFMdIHMYUfPKLg1ThVyXu27crQG9VwBPDtOIGBZ6Cxe d/RVvy3TDHjQpx6bIX6dGmOc2X5uJCcBBr8Zx79UyFZnmQWyjx2f2RGut4Xjo1xm2xn1 /vKw08U7XFn8UE9hAsHcj0yllUbE1QEwmXqr1KNANfIYWTeDOsiuRwdRvYEiElNspulE /cfqvbvE29BS+cGQlaHQiqElsDMD0ms2f2YX4e2Ay7619E8wmtNAFGQShsgYPKkYZlPY r4jQ== 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=KNzkn/a0IqunK1Yi9Xo6xRbN57iI7q+LcT+L41q2PKE=; b=AcNMNd6dTqMAztG5XCRZL2s1mpbbgobDx2F5eYZUFoB2sXsnyiEFBEgQ+Kjlv8h0z4 CqbcW8Nb0aESZB+gHo6WOLUE6tW3gMgsz40jF2qSKvaMGIsQvO+5gU0gY5o/3DYBVcSP eUt2mXQUvJ8z1y+jTuw4nrGEtSId7TRcQFo+vCnIu7mrCGr6ytB4wteTUzrliL4271ey Cc/m2LkM/j7XoJMzyZYkGoS/BnJHDL23d4okDCLFCiwn4U2lvs7fbsFDBafoyDgbqY1P 0Wv+4AmsfLVKddjLnLoXa/DYD5/LOSdi0INalCI9kdK3gaBUW1Pp5R699Q43GXrt0+Jj KbPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=KzABVjnx; 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 a64si15369721pfb.60.2019.06.25.02.09.49; Tue, 25 Jun 2019 02:10:05 -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=KzABVjnx; 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 S1731303AbfFYJJc (ORCPT + 99 others); Tue, 25 Jun 2019 05:09:32 -0400 Received: from mail-eopbgr150077.outbound.protection.outlook.com ([40.107.15.77]:56134 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731294AbfFYJJb (ORCPT ); Tue, 25 Jun 2019 05:09:31 -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=KNzkn/a0IqunK1Yi9Xo6xRbN57iI7q+LcT+L41q2PKE=; b=KzABVjnxVn6ypctwJSGEPMqX+qUN1ultl40IRdfT2qbWUIRmk9eS0JY8ZXQA56J0EVvOLz8ezxwD7be2D18fnWvJ9ZOFrXjUShIprysUnM0x2aVwdtgrzMsBQroMFTA4zhGTpDE0aDTuKvP9p0p9tLimyoW4Id0NG9JwWM8F9dk= Received: from DB8PR04MB6747.eurprd04.prod.outlook.com (20.179.250.159) by DB8PR04MB6746.eurprd04.prod.outlook.com (20.179.251.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2008.16; Tue, 25 Jun 2019 09:09:28 +0000 Received: from DB8PR04MB6747.eurprd04.prod.outlook.com ([fe80::93a:4344:1120:4ca0]) by DB8PR04MB6747.eurprd04.prod.outlook.com ([fe80::93a:4344:1120:4ca0%6]) with mapi id 15.20.2008.017; Tue, 25 Jun 2019 09:09:28 +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" , "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" CC: Mingkai Hu , "M.h. Lian" , Xiaowei Bao , "Z.q. Hou" Subject: [PATCHv7 4/7] PCI: mobiveil: Add 8-bit and 16-bit CSR register accessors Thread-Topic: [PATCHv7 4/7] PCI: mobiveil: Add 8-bit and 16-bit CSR register accessors Thread-Index: AQHVKzWxDgZokwi9zUOCFYG14230nQ== Date: Tue, 25 Jun 2019 09:09:28 +0000 Message-ID: <20190625091039.18933-5-Zhiqiang.Hou@nxp.com> References: <20190625091039.18933-1-Zhiqiang.Hou@nxp.com> In-Reply-To: <20190625091039.18933-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: HK0PR03CA0116.apcprd03.prod.outlook.com (2603:1096:203:b0::32) To DB8PR04MB6747.eurprd04.prod.outlook.com (2603:10a6:10:10b::31) 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: eefafff2-85f6-4280-4ac3-08d6f94cd374 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:DB8PR04MB6746; x-ms-traffictypediagnostic: DB8PR04MB6746: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2043; x-forefront-prvs: 0079056367 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(136003)(39860400002)(396003)(366004)(346002)(189003)(199004)(4326008)(386003)(446003)(26005)(102836004)(3846002)(478600001)(71190400001)(186003)(11346002)(71200400001)(7416002)(6116002)(25786009)(66946007)(50226002)(110136005)(8936002)(54906003)(81166006)(8676002)(305945005)(81156014)(316002)(2201001)(5660300002)(66556008)(7736002)(66476007)(66446008)(64756008)(1076003)(66066001)(486006)(2616005)(2501003)(73956011)(68736007)(6436002)(6486002)(256004)(6512007)(86362001)(6506007)(53936002)(36756003)(14454004)(99286004)(2906002)(52116002)(476003)(76176011)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB8PR04MB6746;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-message-info: Gt2Am9JVtGIsu0SPXF0hdh22vv5J+/2Er/5zoVrRzAP4AwLCf+EbHbu8Vc3aQ6VmVBtwaWba5aU4iBz0WoQVKx6dxfd42xAKOPSW/QnNhHVE7vdxYDWP3WL6D0Hx2VPaSw85jhETqGaMLsXoIisoYfoL7JGu1G0uVZ3uO3Ta/hdZaD2TPy0bNcTSmil6i+HNQnX9ReiGFh74lRAi16iDz8n7fXB9o/Ahlv1WJ3OXxnEFurinHEGuueDW0eICrWSVDYiIK6+bQvc3REpOKOp1Akj8P5iVg48vyaA6CXIGc3jo4e2pEJiZwteJVpvhMPgegOFzKcAAPL4tVBuhDpm4joRVnTTvNhn0iuJBY+zhbk38cIzYhqR1pG73Kqh3Sks1CWhxK3AGtDjl22Q/6XRYX4N5VWQnWBPrT2iUO5mQg6w= 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: eefafff2-85f6-4280-4ac3-08d6f94cd374 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Jun 2019 09:09:28.3646 (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: DB8PR04MB6746 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogSG91IFpoaXFpYW5nIDxaaGlxaWFuZy5Ib3VAbnhwLmNvbT4NCg0KVGhlcmUgYXJlIHNv bWUgOC1iaXQgYW5kIDE2LWJpdCByZWdpc3RlcnMgaW4gUENJZSBjb25maWd1cmF0aW9uDQpzcGFj ZSwgc28gYWRkIHRoZXNlIGFjY2Vzc29ycyBhY2NvcmRpbmdseS4NCg0KU2lnbmV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