Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp689012rwo; Wed, 2 Aug 2023 02:32:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlEXk3wqPUAe2Unl/9Hqsi58Mm6vbRSc/O4pVRXedqpjnxqkqxvMdwsWEj7yJ6cK5NXSecIF X-Received: by 2002:a17:90a:c254:b0:268:1d18:a19f with SMTP id d20-20020a17090ac25400b002681d18a19fmr14031310pjx.25.1690968759625; Wed, 02 Aug 2023 02:32:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690968759; cv=none; d=google.com; s=arc-20160816; b=knyQ80hybxXF31GI+gCNjxn5Jr4vS3jn5aLgoG0ZKeI1wxTCUfSurQJ1cQWD3Zsk1T 9IpQt+m6GiVdINKyj1Y9N6mVXeLY8F8QxXdktHsDENM+EpT61sdcCX9ZaTpL/DGZUdir CplkBSPfsXUNB/4DZqPsMxH4hunKGEfI/ynLE9pcSPONyoUQteUWbEgEqrxfg/g1/FKa zSS+zLbTgjOjn96suBos0sSyfN03ZQpQhT2ce/kSxGYdhoE8rYbOCc6smEQlopS0ozyS TUB+9DulCDQGaJvxV5MoD7tr3MN5orV1NjFyg3Q/zu7tNZy9lSoaGFlLAEIst3tqztEk Pzrw== 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:authenticated-by; bh=evn13asZ6JC3Pf1VCnv+hQ/yWM6hkpmHWGNBwLlCFmo=; fh=9qiDkV/VUqVSDJJqF8HVSWkGvMk8d61YMYEOKxTAzD8=; b=q42T8Oxx5HtfDMOqM+1cCx0F+uwhxzF3BrcXpYZG4EVVxL+fcGE4SndCjzwiqKWyAs MsQ4HJbFeq5BxoqdZ933zP/UWJkS3iYMM4ecYy/Vg8gz+7+sfAQwbTZMssUspEfQR53M BFMEncW6NMyDCwmbV2qKpFBbJpLElOSV7iyQOkn7qcj35FieyiiVJ1s9eRNmaXEKhSM5 z4qdCuMhwZGB+Se1lf56yKbZJpvcV/T84hfKFmCvu+wSdqKCcu+Aimd1HAD0tSEJjRFx yUF+6kwKxOCStyqfB7UZTosKvXgNLdsDekhMfQHYFzPas5Eh36P9LHGTXF+XgqDl77NR +S7g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h22-20020a17090ac39600b002507cbb009bsi912711pjt.112.2023.08.02.02.32.27; Wed, 02 Aug 2023 02:32:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233935AbjHBI1W (ORCPT + 99 others); Wed, 2 Aug 2023 04:27:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232838AbjHBI1U (ORCPT ); Wed, 2 Aug 2023 04:27:20 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 36361E48; Wed, 2 Aug 2023 01:27:18 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 3728QaklE004404, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 3728QaklE004404 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Wed, 2 Aug 2023 16:26:36 +0800 Received: from RTEXMBS01.realtek.com.tw (172.21.6.94) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Wed, 2 Aug 2023 16:26:51 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS01.realtek.com.tw (172.21.6.94) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Wed, 2 Aug 2023 16:26:50 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::e138:e7f1:4709:ff4d]) by RTEXMBS04.realtek.com.tw ([fe80::e138:e7f1:4709:ff4d%5]) with mapi id 15.01.2375.007; Wed, 2 Aug 2023 16:26:50 +0800 From: =?utf-8?B?U3RhbmxleSBDaGFuZ1vmmIzogrLlvrdd?= To: Thinh Nguyen CC: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "linux-usb@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v2 1/2] usb: dwc3: add Realtek DHC RTD SoC dwc3 glue layer driver Thread-Topic: [PATCH v2 1/2] usb: dwc3: add Realtek DHC RTD SoC dwc3 glue layer driver Thread-Index: AQHZxFokPxd4W07ijUGGBrmKl0qPKq/VrnaAgADyIuA= Date: Wed, 2 Aug 2023 08:26:50 +0000 Message-ID: References: <20230801092541.25261-1-stanley_chang@realtek.com> <20230802011400.v4jim6ajsqc3tvei@synopsys.com> In-Reply-To: <20230802011400.v4jim6ajsqc3tvei@synopsys.com> Accept-Language: zh-TW, en-US Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.190.159] x-kse-serverinfo: RTEXMBS01.realtek.com.tw, 9 x-kse-antispam-interceptor-info: fallback x-kse-antivirus-interceptor-info: fallback Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgVGhpbmgsDQoNCj4gPiArc3RydWN0IGR3YzNfcnRrIHsNCj4gPiArICAgICBzdHJ1Y3QgZGV2 aWNlICpkZXY7DQo+ID4gKyAgICAgdm9pZCBfX2lvbWVtICpyZWdzOw0KPiA+ICsgICAgIHNpemVf dCByZWdzX3NpemU7DQo+ID4gKw0KPiA+ICsgICAgIHN0cnVjdCBkd2MzICpkd2M7DQo+ID4gKw0K PiA+ICsgICAgIGludCBjdXJfZHJfbW9kZTsgLyogY3VycmVudCBkciBtb2RlICovDQo+ID4gKyAg ICAgYm9vbCBzdXBwb3J0X2RyZF9tb2RlOyAvKiBpZiBzdXBwb3J0IEhvc3QvZGV2aWNlIHN3aXRj aCAqLw0KPiANCj4gSSB0aGluayB3ZSBtYXkgbm90IG5lZWQgdGhpcyBhbmQgZG8gYXdheSB0aGUg Ym9vbGVhbiBzdXBwb3J0X2RyZF9tb2RlLg0KDQpZZXMsIHRoZSBpbml0aWFsIGZsb3cgc2hvdWxk IGJlIHNpbXBsaWZpZWQgYXMNCkBAIC0zNDYsMTIgKzM0Miw3IEBAIHN0YXRpYyBpbnQgZHdjM19y dGtfcHJvYmVfZHdjM19jb3JlKHN0cnVjdCBkd2MzX3J0ayAqcnRrKQ0KDQogICAgICAgIHJ0ay0+ Y3VyX2RyX21vZGUgPSBkcl9tb2RlOw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