Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 99BB1C64EC4 for ; Wed, 8 Mar 2023 09:44:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230100AbjCHJof (ORCPT ); Wed, 8 Mar 2023 04:44:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230145AbjCHJoP (ORCPT ); Wed, 8 Mar 2023 04:44:15 -0500 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.86.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B0D84ECD5 for ; Wed, 8 Mar 2023 01:43:09 -0800 (PST) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with both STARTTLS and AUTH (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-33-CAryPP8kPFqZSO2VJYhQlQ-1; Wed, 08 Mar 2023 09:42:45 +0000 X-MC-Unique: CAryPP8kPFqZSO2VJYhQlQ-1 Received: from AcuMS.Aculab.com (10.202.163.6) by AcuMS.aculab.com (10.202.163.6) with Microsoft SMTP Server (TLS) id 15.0.1497.47; Wed, 8 Mar 2023 09:42:43 +0000 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.047; Wed, 8 Mar 2023 09:42:43 +0000 From: David Laight To: 'Keguang Zhang' , Bartosz Golaszewski CC: "linux-gpio@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-mips@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Linus Walleij , Rob Herring , "Krzysztof Kozlowski" Subject: RE: [PATCH v2 2/5] gpio: loongson1: Use readl() & writel() Thread-Topic: [PATCH v2 2/5] gpio: loongson1: Use readl() & writel() Thread-Index: AQHZUKdVlp3MaV2isEWZMPAiZIsbQK7woloA Date: Wed, 8 Mar 2023 09:42:43 +0000 Message-ID: <2d5521ff21ea4b99be3dd2e449f53934@AcuMS.aculab.com> References: <20230302125215.214014-1-keguang.zhang@gmail.com> <20230302125215.214014-3-keguang.zhang@gmail.com> In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogS2VndWFuZyBaaGFuZw0KPiBTZW50OiAwNyBNYXJjaCAyMDIzIDAzOjQ2DQo+IA0KPiBP biBNb24sIE1hciA2LCAyMDIzIGF0IDU6MzDigK9QTSBCYXJ0b3N6IEdvbGFzemV3c2tpIDxicmds QGJnZGV2LnBsPiB3cm90ZToNCj4gPg0KPiA+IE9uIFRodSwgTWFyIDIsIDIwMjMgYXQgMTo1MuKA r1BNIEtlZ3VhbmcgWmhhbmcgPGtlZ3VhbmcuemhhbmdAZ21haWwuY29tPiB3cm90ZToNCj4gPiA+ DQo+ID4gPiBUaGlzIHBhdGNoIHJlcGxhY2UgX19yYXdfcmVhZGwoKSAmIF9fcmF3X3dyaXRlbCgp IHdpdGggcmVhZGwoKSAmIHdyaXRlbCgpLg0KPiA+ID4NCj4gPg0KPiA+IFBsZWFzZSBzYXkgV0hZ IHlvdSdyZSBkb2luZyB0aGlzLg0KPiA+DQo+IHJlYWRsICYgd3JpdGVsIGNvbnRhaW4gbWVtb3J5 IGJhcnJpZXJzIHdoaWNoIGNhbiBndWFyYW50ZWUgYWNjZXNzIG9yZGVyLg0KDQpT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