Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5878702pxb; Thu, 27 Jan 2022 01:14:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJwV+yfbYhYMvbviusomFxk4fXhS4iyuGTVKnYoKVn19svaJ77S1xXa3SU6GuFpIOELGLI4O X-Received: by 2002:a05:6a00:2402:: with SMTP id z2mr213733pfh.42.1643274858660; Thu, 27 Jan 2022 01:14:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643274858; cv=none; d=google.com; s=arc-20160816; b=ErA/17PST+lBXku/OsM0cIHTrwy979MlUpWqAZOWPoov0VV3hcsyUKrgKn8MpQyGpo mxHeFUYX2fCEqYypxG6Fdq4hX5BQII242q29QUa8XpKlXQGcn+au5nXta3X4ubLlsTk0 sUafj7JUVDQKMD1sEmth7kTHzwCE9cEthpacV3OocH7FUbfTvZZ6VU0j6Bc1gTcN5S4M o/ek+SEK5xCDU4KGkhmxP2MuZFcjRT+t2prr3Aua0wsBWqLeS5s/XNdPFMKTLVYGihZb wp8Fi+GNSeJ636ZpFlX26JlrGQbsNTdrdXlN0EWpFr9ViRu7LqS6hHiGLivBENRBMR/a eueQ== 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=QjvSFqDgio4ij1FhYl91UUt34DnWgW/KwRx42nXvVy8=; b=qpM5re8lnPMsoXf9OogUnpjjmfoZeN2pOYa2Eg6lYNh/TzVXKnNghQZ3dSzgYe7cAc HKmAsHCYsMHLirNgqc+Kzoe6OT6rEGteIPWfwYi+wuvHgRtpIs4htKefdniaHOqjfzw+ 5Lw1qMeaSItNwO7my3KGkIGd/tdmNAxWEkqRcWACJPzNcqR71aR2RcvOaC56j4bZpso7 Xcz/G6mXWWhndQz3MGa78LRahWLQMhHILOnS/zXlpZ4bw0cfJiafwuOIJtct7zaNeupe sTw1OAHHteZ81tinMaknMhMoKYzfAAFTV1JJKvzhIjv/EDuL3ucZO+3PCNe1oglHTYJK nOIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=WHJIHTNB; 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 a4si1604332pgi.154.2022.01.27.01.14.06; Thu, 27 Jan 2022 01:14:18 -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=WHJIHTNB; 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 S234882AbiA0CRZ (ORCPT + 99 others); Wed, 26 Jan 2022 21:17:25 -0500 Received: from mailgw01.mediatek.com ([60.244.123.138]:45100 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229836AbiA0CRX (ORCPT ); Wed, 26 Jan 2022 21:17:23 -0500 X-UUID: b4077e3a397e40c093f18109fffaeb80-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=QjvSFqDgio4ij1FhYl91UUt34DnWgW/KwRx42nXvVy8=; b=WHJIHTNBFTm/cbh99hv7Zxiyl+/7Apx8dggYr4Sr+VhmzU6KQnVnBb3yx3eWLa55quiDhHLiEGmOr0JtBfZB1i7SDLpMeceSb3MVNC6XvPGSwJM/zXFQb67/0H7IFdAsSOUIkvtc+5CDUr9joYcmHOCrdRnoFpnZjGuync2cFFI=; X-UUID: b4077e3a397e40c093f18109fffaeb80-20220127 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1616764511; Thu, 27 Jan 2022 10:17:20 +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:17:18 +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:17:18 +0800 Subject: Re: [PATCH net-next v2 8/9] net: ethernet: mtk-star-emac: add support for MII interface 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-9-biao.huang@mediatek.com> From: Macpaul Lin Message-ID: Date: Thu, 27 Jan 2022 10:17:18 +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-9-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 T24gMS8yNy8yMiA5OjU4IEFNLCBCaWFvIEh1YW5nIHdyb3RlOg0KPiBB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