Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4A0BCC678DB for ; Sat, 4 Mar 2023 13:04:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229581AbjCDNEf (ORCPT ); Sat, 4 Mar 2023 08:04:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbjCDNEd (ORCPT ); Sat, 4 Mar 2023 08:04:33 -0500 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F03AF777; Sat, 4 Mar 2023 05:04:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=o1V4bPDp9RjOX5IVjz87L3/JjhTGESn2h01X3jbS3fc=; b=lhkvKBDDL7Mdqv+FXEr7lOJzuV zycE44M2CTYcUo4mJzXyTs+7itC5K0PO5qD9qsvFm2QUngqIQmOaJIvHUE0mZ1RKQAyIcaRXtB3au Q3O5/oSzR7MjMlHHwoe2wEu555n7kX7uw0Sm7T9N0ns/bNrbR1NnGyzpn4grw++WQ8jIVDjkeBHpv yT1RCd5rneafkVz/vUrxAszHCbD8wDawbGGOtEZOax+fHgvXJJHTN34kj63tYWpigrMtM7jfI2VgP 596gGVaxH6OwRU6jpxD0N2q9DT7EPsi4HULAi8MFG1ony9OINusemamaHrQG6ryiC90ENyLkPQIx8 3Vx05wdw==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:53642) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pYRYW-0002cK-A5; Sat, 04 Mar 2023 13:04:08 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1pYRYP-0006uV-Dy; Sat, 04 Mar 2023 13:04:01 +0000 Date: Sat, 4 Mar 2023 13:04:01 +0000 From: "Russell King (Oracle)" To: arinc9.unal@gmail.com Cc: Sean Wang , Landen Chao , DENG Qingfang , Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= , =?iso-8859-1?Q?Ren=E9?= van Dorst , Alexander Couzens , Ilya Lipnitskiy , Richard van Schagen , Frank Wunderlich , erkin.bozoglu@xeront.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [RFC PATCH net] net: dsa: mt7530: move PLL setup out of port 6 pad configuration Message-ID: References: <20230304125453.53476-1-arinc.unal@arinc9.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230304125453.53476-1-arinc.unal@arinc9.com> Sender: Russell King (Oracle) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 04, 2023 at 03:54:54PM +0300, arinc9.unal@gmail.com wrote: > From: Arınç ÜNAL > > Move the PLL setup of the MT7530 switch out of the pad configuration of > port 6 to mt7530_setup, after reset. > > This fixes the improper initialisation of the switch when only port 5 is > used as a CPU port. > > Add supported phy modes of port 5 on the PLL setup. > > Remove now incorrect comment regarding P5 as GMAC5. If this is what is necessary, you're taking some of the configuration out of phylink's control, effectively making port 6 a fixed-interface mode port. In that case, there should only ever be one interface mode set in port 6's supported_interface mask, so that phylink knows that no other interface modes can be selected for that port. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!