Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4848926pxv; Tue, 27 Jul 2021 18:56:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1fHjTO5hn47YChQcRzmOZJcvcbSkKfgpG8snOAlsRWjU1ysDB/4A844hG+lDODTw9faMJ X-Received: by 2002:a5d:8b8b:: with SMTP id p11mr21783607iol.77.1627437372882; Tue, 27 Jul 2021 18:56:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627437372; cv=none; d=google.com; s=arc-20160816; b=uzNRxw8zXqB26hvGPABtO59DQNFqQhpDDtgfehuOkWbSwOl0HJx9HiC+rx36yu4IMV yt3m9QR85oaGf33uCt/oATD/bFmi/HfH6031EDuMdGMpeUHH3vyyW/wpSFz9jw7g4Mry 6ClG/iJcLpZXJG896P2L46T8cvKpmG/RcVc8mopu6vGFcrWWVaeD9ljVai45EdD1+lL3 WyXDQPli3RFlWM6x4AmOvOfjZPNdpEpjb56mmKl3a3/nAys1CSKnJUJTPon+kpDH41KJ dJ0UPfK30BGIHcNn9qphflNXbtoGe9SKVcDCB84tTHyD0c+U6OB2fwHWUGQpVJyS0lJ0 ovEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=58L+Btku+CwzhUYReBlGJltfCSXj2Yn897i2au2OlSc=; b=f+oVTIGj8M3HRaFFiSY4lI/HR3Agnn/3uNYnYciEBnQqaV7aMFy5QaYNJM244fwwc3 jjQQkZiaBSb7rp0R9FX97Or3QDZRuaOhRmJsewcVqWn2As2cn8yXF2mzFN6m9mmzp3yq WzJemSJ4ZZpmUrfQQsU56xkK3mRPhshaVmZY+px56Wp+Yhraf7q/9VeYl5m77dio53z+ lPdTvpyrQCkWwoArDrlT8y5TqiAyf/nSpBVJcWVwhPBmO0qVZb3PiNf8HlA2fyxZwKEp bqYCRsI9V0GfwaDTGnflBc5G0EiuFQkEz0Pw8KDqedRmfC8CIO+0rkCNiSVKCIKOFDwc Ilkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=U3BkHUMI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m19si5661893jat.15.2021.07.27.18.56.00; Tue, 27 Jul 2021 18:56:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=U3BkHUMI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233260AbhG1BzV (ORCPT + 99 others); Tue, 27 Jul 2021 21:55:21 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:33138 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S232926AbhG1BzU (ORCPT ); Tue, 27 Jul 2021 21:55:20 -0400 X-UUID: c9f6666089d143e29dc82dc39c2571b9-20210728 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=58L+Btku+CwzhUYReBlGJltfCSXj2Yn897i2au2OlSc=; b=U3BkHUMIA6xzBNrS69NkBtSsd9K2Vvwn7zUNA76F6quugxZ+TRJNO3tHkWnnYdoL53IWdNTJRIGOZpb7dxPx0o/SK0bR2EEoAia3TZoJVmi41Jl+2hBe8WE+OeYPokh2A0glX0yXwy1Vi2cog2K8cwtP6i5uDdak7jbzX4EZSpU=; X-UUID: c9f6666089d143e29dc82dc39c2571b9-20210728 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 24134824; Wed, 28 Jul 2021 09:55:17 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by mtkmbs06n2.mediatek.inc (172.21.101.130) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 28 Jul 2021 09:55:16 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 28 Jul 2021 09:55:14 +0800 Message-ID: <1627437314.31194.13.camel@mhfsdcap03> Subject: Re: [PATCH 2/2] phy: mediatek: phy-mtk-tphy: support USB2UART switch From: Chunfeng Yun To: Macpaul Lin CC: , Kishon Vijay Abraham I , Vinod Koul , Matthias Brugger , Ainge Hsu , Eddie Hung , Kuohong Wang , Mediatek WSD Upstream , Macpaul Lin , , , , Date: Wed, 28 Jul 2021 09:55:14 +0800 In-Reply-To: <1627383013-4535-2-git-send-email-macpaul.lin@mediatek.com> References: <1627383013-4535-1-git-send-email-macpaul.lin@mediatek.com> <1627383013-4535-2-git-send-email-macpaul.lin@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gVHVlLCAyMDIxLTA3LTI3IGF0IDE4OjUwICswODAwLCBNYWNwYXVsIExpbiB3cm90ZToNCj4g U29tZSBlbWJlZGRlZCBwbGF0Zm9ybSBz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