Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4839240pxv; Tue, 27 Jul 2021 18:36:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFQoqprpSSnG1n4V5rOHoSiKJ3ptQAhNfq171a0GW6N2kgRzo+EP8gCpj53xeYFLDE2AH4 X-Received: by 2002:a5e:8401:: with SMTP id h1mr11521742ioj.75.1627436175125; Tue, 27 Jul 2021 18:36:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627436175; cv=none; d=google.com; s=arc-20160816; b=ZbH2a9PshDwYlYwudgmGepLOxr0lo6mKSZ+nTmfUcuE3Qm5qDsbk2ArcUXiWeyTfjn 0sJhUu8ePVOrA4uiM8G9nKFUkjtEpFJ+9x/2VJsN22D5q1zl6EN1qBY2lBD6UsCt9/W6 D09G/1sYwGqjpkwSBfwqrabbPAxDOoGdnM5WlLn8DL+P178lOjtEQItmE6FNP9ol10OE kfvE4CRjb/ud9gKwTJ6rYlHCyKy3RTTE122X0tX1MqqxI/voMY0sWOdXOPK9R6w5XGH/ /tDCt7lQgFiR24fRjzu3zT5PWxYp8RmUuIHFPLrFDn3P3HhtwFvUGKuIzMiuB6zXGJjj gB5w== 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=tystcQCeK1JokSJpr3jNYbyoX8+NJdw5MNRuzT9Nl1s=; b=prkjsNwlOP5v4brFWrOxbiri8sog2Aa02hv3imjPrx2fhmyvvm/uA4Rp4b81Q9EW54 KMTJBtiwqBCBPP0j3M2ogiN8baI0tfP9bkBGn8yVij6b29lvmxezG+RyFxtBlxqhnBSF V6wMkthP7sR0XACoxi87kgBCjUyM7/yW2iEN8MS2Z0IYTrYsBMNToeOxSIlkjZ2P0K2S p4LHdmh4r53lLNOBaKGk5dsS+yHRcMP4zX6un4vi5WIXunuJM+f+rrs4l//lWpxLaHX3 jGM4s8vxZO6sFc/1NHraX49ZCMqO+JEvZvi0oZ5wXfaMdLgcuXc1SgYJYR0JXnlRKLmE a9og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=B5YTcTWL; 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 f11si5151058jav.53.2021.07.27.18.36.03; Tue, 27 Jul 2021 18:36:15 -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=B5YTcTWL; 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 S234095AbhG1BfK (ORCPT + 99 others); Tue, 27 Jul 2021 21:35:10 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:42372 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S234015AbhG1BfJ (ORCPT ); Tue, 27 Jul 2021 21:35:09 -0400 X-UUID: 83ffc371ee0242f1a9a5e03b4eae63e0-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=tystcQCeK1JokSJpr3jNYbyoX8+NJdw5MNRuzT9Nl1s=; b=B5YTcTWL9N2Ccfi/OHpSmHeQ1b5DSpNGkjNIucKMFWfNzier6BvpJ/OC9il7NL3B1NQCPxjNGQXCW/WBvxH/c0kJv8QuGKkvSn7x024/8rJD8bSMUJFrkBNlpLXaBwnQhuMB2iSh92KC0Hcv0bLiz67/4HtV0FlyXwJ4I3krgP8=; X-UUID: 83ffc371ee0242f1a9a5e03b4eae63e0-20210728 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 2004428482; Wed, 28 Jul 2021 09:35:05 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 28 Jul 2021 09:35:05 +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:35:03 +0800 Message-ID: <1627436103.31194.3.camel@mhfsdcap03> Subject: Re: [PATCH 1/2] phy: introduce phy mode PHY_MODE_UART and phy_get_mode_ext() 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:35:03 +0800 In-Reply-To: <1627383013-4535-1-git-send-email-macpaul.lin@mediatek.com> References: <1627383013-4535-1-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 U29tZSBlbWJlZGRlZCBwbGF0Zm9ybSBza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