Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp127201rdb; Wed, 1 Nov 2023 20:31:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFQ422tNiFQ+fdYw3LhmkL0aPATTyfIrpJqvoGQmVIgGZTftWMnpMvwZlB6zJFipQxE9WKV X-Received: by 2002:a17:902:c783:b0:1cc:3daa:d368 with SMTP id w3-20020a170902c78300b001cc3daad368mr8963118pla.65.1698895867135; Wed, 01 Nov 2023 20:31:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698895867; cv=none; d=google.com; s=arc-20160816; b=q9pTSv/VY02D/FpQ/zH/q+zddANwOB0VrKFKxUYOZfQVOYMgHWJ5FcymBH8BNA8HjV VEYSk7MXjkCNp4A1Yeky3IpR0mH7e9WJhze57SSBRSaREs52+jaQOMxc5472ztAJFnCw pHZwMCkms6vFzePE2FE4lpg2FdXkYiIwyz3V0uRwrzMk10Ws938wbh+UDAgPWHZ3Ni9u xgPqnLuj5MIkq1ifoVGxmQk4g9+tJWHgMB0iM85xAhswZ7ohVicunLGEi4tUgGPm+rUD 1/T07v6ejvIz+phTK5ipqI6iJnaPtff1OgVPFeUu9LeJVXdwjmaIMtfYxTcodu1+CVoY csZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=dLkVaE02Zcphzad1JUxU4SJDrR13ipMfpzcXUApbjhM=; fh=sYSoVz2I3RUX7LohI+GfI1GAkyxTEW6Y3T46GU4rCgk=; b=DdMN/6LzssEDQbjx+2WeCgKW7yVyH/vg2Gj2FfLD46aY2arrysO66hNhf3h4y96sM6 0hfqRAWtna0RSdWYfvZ76hFdrsaHuLoaw5gURGubHmaxu/vevJvY4BMSvLjKsQArmiL9 DuF573/CCMHcV5DaUPXy7Taoz2xK0IACErjRM6naIqFX4j+qAkTlao1edc3qcjeTxu5d 2d0yokxPVPWNhR/yEUjTPbWBqfNNJKS7ZouCbq76z6TcDsjTQ7CpKDojm1/74horMhTM kliOJ8AcOyBmiEuYQlVawUeS/IT310T9B/Y8pwiUpAIPySvoXDmRisN0F2FdbWdFDoqI 1IJw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id r2-20020a170902c7c200b001ca89920d2fsi4030844pla.588.2023.11.01.20.31.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 20:31:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 03F6480FE282; Wed, 1 Nov 2023 20:31:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346757AbjKBDaj (ORCPT + 99 others); Wed, 1 Nov 2023 23:30:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348352AbjKBDah (ORCPT ); Wed, 1 Nov 2023 23:30:37 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D098126; Wed, 1 Nov 2023 20:30:29 -0700 (PDT) X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 3A23UEWK02322783, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.93/5.92) with ESMTPS id 3A23UEWK02322783 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 2 Nov 2023 11:30:14 +0800 Received: from RTEXDAG02.realtek.com.tw (172.21.6.101) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.32; Thu, 2 Nov 2023 11:30:15 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXDAG02.realtek.com.tw (172.21.6.101) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Thu, 2 Nov 2023 11:30:13 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::40c2:6c24:2df4:e6c7]) by RTEXMBS04.realtek.com.tw ([fe80::40c2:6c24:2df4:e6c7%5]) with mapi id 15.01.2375.007; Thu, 2 Nov 2023 11:30:13 +0800 From: =?utf-8?B?VFlfQ2hhbmdb5by15a2Q6YC4XQ==?= To: Krzysztof Kozlowski , Linus Walleij , Bartosz Golaszewski , "Andy Shevchenko" , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley CC: "linux-gpio@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH 1/2] gpio: realtek: Add GPIO support for RTD SoC variants Thread-Topic: [PATCH 1/2] gpio: realtek: Add GPIO support for RTD SoC variants Thread-Index: AQHaDG9Hk0D/m9zpMEiXHZM9KcVyR7Bkh3iAgAHUOsA= Date: Thu, 2 Nov 2023 03:30:13 +0000 Message-ID: <8e4c8676acaf4ba6bf3f57451b2eab40@realtek.com> References: <20231101025802.3744-1-tychang@realtek.com> <20231101025802.3744-2-tychang@realtek.com> In-Reply-To: Accept-Language: zh-TW, en-US Content-Language: zh-TW x-originating-ip: [172.21.181.166] x-kse-serverinfo: RTEXDAG02.realtek.com.tw, 9 x-kse-antivirus-attachment-filter-interceptor-info: license violation Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 01 Nov 2023 20:31:00 -0700 (PDT) SGkgS3J6eXN6dG9mLA0KDQo+T24gMDEvMTEvMjAyMyAwMzo1OCwgVHp1eWkgQ2hhbmcgd3JvdGU6 DQo+PiBUaGlzIGNvbW1pdCBhZGRzIEdQSU8gc3VwcG9ydCBmb3IgUmVhbHRlayBESEMgUlREIFNv Q3MuDQo+DQo+UGxlYXNlIGRvIG5vdCB1c2UgIlRoaXMgY29tbWl0L3BhdGNoIiwgYnV0IGltcGVy YXRpdmUgbW9vZC4gU2VlIGxvbmdlcg0KPmV4cGxhbmF0aW9uIGhlcmU6DQo+aHR0cHM6Ly9lbGl4 aXIuYm9vdGxpbi5jb20vbGludXgvdjUuMTcuMS9zb3VyY2UvRG9jdW1lbnRhdGlvbi9wcm9jZXNz L3N1Ym1pdHRpbmctDQ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