From: Jakub Kicinski Subject: Re: [PATCH net,v3 1/2] net: ethernet: mediatek: Fix MT7629 missing GMII mode support Date: Tue, 15 Oct 2019 12:28:36 -0700 Message-ID: <20191015122836.78bff48f@cakuba.netronome.com> References: <20191014071518.11923-1-Mark-MC.Lee@mediatek.com> <20191014071518.11923-2-Mark-MC.Lee@mediatek.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20191014071518.11923-2-Mark-MC.Lee@mediatek.com> Sender: netdev-owner@vger.kernel.org To: MarkLee Cc: "David S. Miller" , Sean Wang , John Crispin , Nelson Chang , Matthias Brugger , Andrew Lunn , Rob Herring , Mark Rutland , Rene van Dorst , devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org List-Id: linux-mediatek@lists.infradead.org On Mon, 14 Oct 2019 15:15:17 +0800, MarkLee wrote: > In the original design, mtk_phy_connect function will set ge_mode=1 > if phy-mode is GMII(PHY_INTERFACE_MODE_GMII) and then set the correct > ge_mode to ETHSYS_SYSCFG0 register. This logic was broken after apply > mediatek PHYLINK patch(Fixes tag), the new mtk_mac_config function will > not set ge_mode=1 for GMII mode hence the final ETHSYS_SYSCFG0 setting > will be incorrect for mt7629 GMII mode. This patch add the missing logic > back to fix it. > > Fixes: b8fc9f30821e ("net: ethernet: mediatek: Add basic PHYLINK support") > Signed-off-by: MarkLee LGTM, thanks