Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5879416pxb; Thu, 27 Jan 2022 01:15:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJyVzKCeY/nu1jqJAoBRPx9xcNkhqr7WpwMAe2Ai/olz/DmNn2kEpS2PBmjYR61/Aglo1unU X-Received: by 2002:a17:902:ead4:: with SMTP id p20mr3075725pld.90.1643274939526; Thu, 27 Jan 2022 01:15:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643274939; cv=none; d=google.com; s=arc-20160816; b=kocHreGiwrrNC+mlDhugdfDimzINt1i5Mi9tDMLXBameRyBSiCW0laB7O6CLQIDavD IboFQ7mbuHVDOLnOAMpqWe55BKdIh8qBpC+vS6mwndfhYbuUxmxoVoUVit12H75HkSpm Q4l7XDgfrydbNwNgNsjI+rgtV/ON8WqFJCs36oMurHyu5L+UPffmpbF+asjyZgRw6tRP ZrPGHhNEX2yXucX3fphJPdsJygMBOFqnLkdFhuyLF1uGfXdaeHES4gOuGq1C9/XKa7pV XYo9dnJloUrcEboSzph7C3y380EM3InPIBNiJz3TTeZ5+cSR+TtUTEqc35m/dcZEKny5 Vw5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=chAJI6Jv+zvPg/bJzqsieWSytSGp/Qxf310ctQsoYBg=; b=YzvRXI+1iGI8rjZtukzCr67cwUoE/9RwhA1tfwk7DVjblM0ckq9HkONjHcsp4thcun r070ALZsTtobpuB8mOiXKC/B+rdg4xs9gGGMzRxuk3Rdzn5aV4SYtX5tEYX3FbQ4F9Ay wFlEQ5VGvsS/VmMBwSoIV5gL3C7OmLE98ARMQF+pFbTFXEYLrO68orDgFIlLSPxAly+I Flj4BVzh4oyOrWZAEILuVDpBRZ/OHQTsKDUDcwATrj4xgjar5j/pNYBmfaFGuPLIMq5F vdGYsvc7Xc68QILyTAmwNSPY+RjnN0bUSUIvPqcWSFwbZjE5L0DID6htk8CMIugkoYBJ /Cng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=gi0XEkl0; 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 l7si1778715plh.546.2022.01.27.01.15.26; Thu, 27 Jan 2022 01:15:39 -0800 (PST) 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=gi0XEkl0; 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 S235089AbiA0C0e (ORCPT + 99 others); Wed, 26 Jan 2022 21:26:34 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:34828 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229518AbiA0C0d (ORCPT ); Wed, 26 Jan 2022 21:26:33 -0500 X-UUID: 2e794b65774f4810aa9a8ff785a389e5-20220127 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:CC:To:Subject; bh=chAJI6Jv+zvPg/bJzqsieWSytSGp/Qxf310ctQsoYBg=; b=gi0XEkl0czxbKTDc4P5/uj1yq3vaDJihFvPOOXOcz7ITQyKNpz1S0wBRBP5gS2G4+HVl5NJQ4gMgqbUkxrsEAYMS2wmRUsbcMwrZj6MQgCZP9V4IH5Xq98lG8Aidric/kglpNGrhy609hYGGk2+exiUpIuKOZ4AnEIO+Jpwlvs0=; X-UUID: 2e794b65774f4810aa9a8ff785a389e5-20220127 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1066795832; Thu, 27 Jan 2022 10:26:30 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.3; Thu, 27 Jan 2022 10:26:30 +0800 Received: from [172.21.84.99] (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 27 Jan 2022 10:26:29 +0800 Subject: Re: [PATCH net-next v2 5/9] net: ethernet: mtk-star-emac: add clock pad selection for RMII To: Biao Huang , David Miller , Rob Herring , Bartosz Golaszewski , "Fabien Parent" CC: Jakub Kicinski , Felix Fietkau , "John Crispin" , Sean Wang , Mark Lee , Matthias Brugger , , , , , , Yinghua Pan , References: <20220127015857.9868-1-biao.huang@mediatek.com> <20220127015857.9868-6-biao.huang@mediatek.com> From: Macpaul Lin Message-ID: <436ff538-0067-30c1-3668-5ab0b840123d@mediatek.com> Date: Thu, 27 Jan 2022 10:26:29 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20220127015857.9868-6-biao.huang@mediatek.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gMS8yNy8yMiA5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