Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp820628rdb; Fri, 2 Feb 2024 05:14:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IERuaabPLTT1X0zTCttl7o3+654Ue2srPkqD0qS0l8CypGJBBIv/m0dJkIc/BjEer4yh2pV X-Received: by 2002:a05:6a21:3405:b0:19e:41a2:340c with SMTP id yn5-20020a056a21340500b0019e41a2340cmr5343678pzb.14.1706879697282; Fri, 02 Feb 2024 05:14:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706879697; cv=pass; d=google.com; s=arc-20160816; b=N4SY6SV98NJg+TWQ5dyGNfgjnhX68RkuXhL3p5D8TTAhsaD13sbV01fmfoI6UcjJ+8 9OO9YNU5hwEB9QEDsYfQ0dPziOrvd44tgh7fTAzYW+oavX/RDiO/AOTKoQGJaBEeFJHc vO+tdfUBo85a8Usub5K8VrxFNzyrYXl9SVqKJhMij4TUbw/gUNJBUnQCduC1+KeDNkhW I5AM2Bx2DoeaqEsYJ9AZ/e4S7JyRkvcXDomxZnEfhJAgNOG5voRPtXNQnmtJ1RzSuT29 X3h89It47DxHkCirJLZIfzkEE7hySz/z+jcXW8lFFmVwHXC4cQHNHSDQ3gWTQc9FP/s4 Ph/Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=NMzyKXLvD5bCWLAnSG7LQUc76KmbvEK7xMGWqLkAp84=; fh=+jKdMtXVFcEdiDaqsDK42vOQPgilxPxHTuZgGHCjeq8=; b=IhJqpYZWE02k8i22udRLOVECHpmMGcYJIOxQj35c9BoGDjFnGY3tzxSjowryFidrMX FdVUhwrV2N+gISZC6LbNNzCpJlB2ZpWJXld5FacxZpSTCSskGFOwElkuPCnuCEEJQf2I HnG4iew9dTzHqbBYueMJrSpUEp+j64dLYy9pDEG/hA8LdSQ9FZo3aTeF7fUEw4AJltRY n33BQpqOfr1t+K7GzzpZBCUzeza1pEn1W1fuJQgVdauRFrXRgcXHVnPt9/YJArk84iYN oomgDiDASbM+trHTNM3TG4THnEhqZa0pLMwzr7NW/ARdUdIY9M8grzK8OsTIIgDKIJqy lC5Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=pnwl8EWW; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-49782-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49782-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk X-Forwarded-Encrypted: i=1; AJvYcCUPl5gqb/nJWA7s+sySscumaOq8mDFSvLT0mc89R0Gcxqyp2CpqEZeUAZ2+6J2bD1qZsck/JsBlBReCFq+DzQ2PBGFg7a9uXdD0HH8bMg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j1-20020aa78001000000b006d60c30ba57si1506724pfi.2.2024.02.02.05.14.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 05:14:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49782-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=pnwl8EWW; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-49782-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49782-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id CD1A1297B14 for ; Fri, 2 Feb 2024 11:46:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0753213E207; Fri, 2 Feb 2024 11:45:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="pnwl8EWW" Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 19F5C168AB; Fri, 2 Feb 2024 11:45:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.32.30.218 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706874357; cv=none; b=X0TQlqCAwlY2DyjGa1PLFVThuf1VwF4ZS51KQ0RY8UoYzcuyyNnVwcIIMTmINqZbBs0YLyGK7zBKG6J8bFxORp6DgMkbsY6AjfI++T7bTLi1WJuwhqWTdCQP9U2iyznb4Gay1er7MVK/ItyShqaBiMZM69oHZrilI6h36T9nWco= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706874357; c=relaxed/simple; bh=g2szF7J/Fir+UwcF5d5yrjX6PLRvsscIcyAHZXVyz3Y=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ObXkPjtDUhx+rlHxOusvQmon9aEE/Z3GwWdr0F2gHudhVvOksT8UOUo/kdh4x7e9pa/e4E97G7Flrk0fB5oGYIWaPyr+cwMpINjCn9slHNZzZ7SYWYrDTuEkpHcFA/zAhekdJyXBMhHWc9t8rawnW7VzWFJpIGRxxYN0v6JNYVA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk; spf=none smtp.mailfrom=armlinux.org.uk; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b=pnwl8EWW; arc=none smtp.client-ip=78.32.30.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk 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=NMzyKXLvD5bCWLAnSG7LQUc76KmbvEK7xMGWqLkAp84=; b=pnwl8EWWJP/EPh7oo8FzwwNZnV eNLhuPMQ8WmVsruBxONkcOgm51ooQq6kt45NBEt6yUTqPxMTsq6L6uzcYrnmK8VejdcyK9Q455ojJ 0uKdTi5/RuNOyShPkwARm1u5fz8kEQH+LOXXz8XM5Z6+BIDiI3dRE/vwpe8sQgC3tuRCGmvDn4oJG LKjp4GbvbwHqhCSV2iYUiUxg7A7zexwby7NHHdYu1wnOkn1nOj+pzsYuoR/PDLk++f/YXo8g6ae6I 24CTDvu62YfX7ZS5loprhXgCANYrEItsU9ghPg5YMxjdgVCGtfxsMaoyNuJZ8QOdSh5exi/vcOqFd kisPK1Mg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:46388) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rVrzM-0005tt-0k; Fri, 02 Feb 2024 11:45:44 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1rVrzJ-0008Hw-2O; Fri, 02 Feb 2024 11:45:41 +0000 Date: Fri, 2 Feb 2024 11:45:40 +0000 From: "Russell King (Oracle)" To: arinc.unal@arinc9.com Cc: Daniel Golle , DENG Qingfang , Sean Wang , Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , mithat.guner@xeront.com, erkin.bozoglu@xeront.com, Bartel Eerdekens , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH net-next v3 2/7] net: dsa: mt7530: call port 6 setup from mt7530_mac_config() Message-ID: References: <20240202-for-netnext-mt7530-improvements-2-v3-0-63d5adae99ca@arinc9.com> <20240202-for-netnext-mt7530-improvements-2-v3-2-63d5adae99ca@arinc9.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240202-for-netnext-mt7530-improvements-2-v3-2-63d5adae99ca@arinc9.com> Sender: Russell King (Oracle) On Fri, Feb 02, 2024 at 12:19:08PM +0300, Arınç ÜNAL via B4 Relay wrote: > From: Arınç ÜNAL > > mt7530_pad_clk_setup() is called if port 6 is enabled. It used to do more > things than setting up port 6. That part was moved to more appropriate > locations, mt7530_setup() and mt7530_pll_setup(). > > Now that all it does is set up port 6, rename it to mt7530_setup_port6(), > and move it to a more appropriate location, under mt7530_mac_config(). > > Leave an empty mt7530_pad_clk_setup() to satisfy the pad_setup function > pointer. > > This is the code path for setting up the ports before: > > mt753x_phylink_mac_config() > -> mt753x_mac_config() > -> mt7530_mac_config() > -> mt7530_setup_port5() > -> mt753x_pad_setup() > -> mt7530_pad_clk_setup() > > This is after: > > mt753x_phylink_mac_config() > -> mt753x_mac_config() > -> mt7530_mac_config() > -> mt7530_setup_port5() > -> mt7530_setup_port6() > > Signed-off-by: Arınç ÜNAL > Reviewed-by: Vladimir Oltean I hope that the "default" case in mt7530_setup_port6() is effectively unreachable - as long as mt7530_mac_port_get_caps() is paired with this and only sets the interface modes in supported_interfaces that mt7530_setup_port6() handles, then that will be fine. Reviewed-by: Russell King (Oracle) Thanks! -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!