Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5878979pxb; Thu, 27 Jan 2022 01:14:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJw5qvh52UX3GjRvF5s+BqeE9BEJGxsrQwyF67GFYOl5KQvOYIH3tGyC5QLQsqLHBIim2LTU X-Received: by 2002:a05:6a00:2181:: with SMTP id h1mr2220209pfi.50.1643274893046; Thu, 27 Jan 2022 01:14:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643274893; cv=none; d=google.com; s=arc-20160816; b=LHJ0Lw9Sn6XFpPNZnXTJu/B8R/pny3UDxXt2fvcdKe6siB1+iR9DHvLLzRWcLQIu0L nNsOH3o8ybVI9lGd3Sx1FCGOteqCYU+ai4rvXYDOdI9zWXuHcBdjUp7zdNicAXgMK99U bSdnSC6W97nUqK646zuXK2+/o1scCc2Dr1ZD99j9MCgh8FZ6Oz2nQxk/HCyP4SLl16Hv R/9lLgvxh/tiPPy0hYW+COunNOFk95UYY6/7rhUZ/WEl5BnRLmAVlyXUsdOGa8V79N5z wSz787SjP9srprpCa5cIEftvE0yeK1NWxhlvXFErxOyXYKQwiG+LhlhIyg7QRrJR8tie JFcQ== 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=MyLvxbLANqPP5k13DRBYkTe5b3b9ieS/h8DsHY1Vcr0=; b=hKGB43lQQax1D0I3SGGjQd9/1q4Q2ZAfWvjjDzP7IsxamfQxBsQkQLLaeMv0fS3YpD oN1i17OALGH4A7ld0P1KvbJtndx5Ifsq7C0mOIHOPD6UbTVIC5MaqjyWW+oamkB/eM7j s7y0s9UZPu27RUk1cj4IlpMWQKpz6rw9tqD74D76oXkVTEDlfQ+mBqv4k57nXkaugf0c www2Hh60TXSAaHwe8/zDC7vqk0KL5uyJhufTb6pqTTqc7jxorRcx2j1ibPAo+f60T0h7 af3BhjLKy+47VtKcpojlv7lIsRBf4UQE0QWJcFWaEsQG90KSJLXAb/4ESaCKKI71evYY 5slw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=YxNYLiic; 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 k189si983129pgd.631.2022.01.27.01.14.41; Thu, 27 Jan 2022 01:14:53 -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=YxNYLiic; 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 S232378AbiA0CWe (ORCPT + 99 others); Wed, 26 Jan 2022 21:22:34 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:56922 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S230126AbiA0CWd (ORCPT ); Wed, 26 Jan 2022 21:22:33 -0500 X-UUID: 588100a05518408f9afb97117967cfe6-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=MyLvxbLANqPP5k13DRBYkTe5b3b9ieS/h8DsHY1Vcr0=; b=YxNYLiicckVfj1iOhlDtqezC9Rzwu9/q9xDQdSHMckpRuWJOotmUcBXhofzc+nJcyAfFxJujFT6O4jyAW92g/Xv9K1MmeXb3JarBh0Wg8Y72g2FyfUyr+vj7WcX6KQWfRtWj+AvMLWbWZOy+Tx/PkBEld1o29+9RMAvA/hgVO5k=; X-UUID: 588100a05518408f9afb97117967cfe6-20220127 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 959124286; Thu, 27 Jan 2022 10:22:30 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Thu, 27 Jan 2022 10:22:28 +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:22:28 +0800 Subject: Re: [PATCH net-next v2 3/9] net: ethernet: mtk-star-emac: add support for MT8365 SoC 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-4-biao.huang@mediatek.com> From: Macpaul Lin Message-ID: <129fa3fc-12bc-3af6-5259-88dcddb2fd28@mediatek.com> Date: Thu, 27 Jan 2022 10:22:28 +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-4-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 T24gMS8yNy8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