Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp386685rdd; Tue, 9 Jan 2024 07:14:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IFrwqbry5fsmHcqKniePn39iwPRUWLGMQRI/M9T9nyO1f8ABObur5cCo11k2CLJiYrhodyM X-Received: by 2002:a05:6808:1b12:b0:3bd:42d8:72c5 with SMTP id bx18-20020a0568081b1200b003bd42d872c5mr337652oib.100.1704813264921; Tue, 09 Jan 2024 07:14:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704813264; cv=none; d=google.com; s=arc-20160816; b=CnX42ardjEYt2X2KBgplVHjVxKEyGWrIG+6DZq7ZbRbc0GJ4INoal4bh3y+3FNIk1G 6Gl76yVM6PF/eUcridAvxPdbB6J1ybERTwDqwrdlmmYpQszWJBOm2D6mKDvSyAfytqNN pvxxF9T+nExyNhd+MYbLGCu4qcRI0FZ2ck51aG/gbQTZfO83ZlvckJJL7mfrU9vNaNMt REBy10OA2FmVdvtJU+7yaQZeGSctzQ13sXdx8vBH6B5sst+HYQOqbseP+BjmvvSp9FpW a49A5N3uX/jTJQTP67e8QiPAIGTVNANhbo0NgHzGEwyvhykohN5ygOLMFn3JTJkqm1Jk bAOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=gRiZiJWOoVL6Oa5TlXweb+aZfLgTD3/mvROJ7Dpd6vo=; fh=oUQXlm9N18NE8BciMxTG8yakJePvyLDL7KOQwgHv8WI=; b=eiGQZyJMy1yW/WiUAHDPWOBIoHhSLXvQIEw26hpe1cR38wjcmBE8EJLALcgMJeJCx5 y7aAZR+5fwiFfYxYYaJwEnKgBpup//mFGzMVrrxMKo8wkeuXsDqGnEXgHITiO69FtX9b +WzCSs3UkKitCNCrJuQ+QvtyePBfDZ/e5Hgb1aAVL8/oFezj9nezipzJnRXVsCPrbbH0 t8F4qrb0fq7QkhEU2F41yWK98Uigvba/AwN+BHavHpcpedqWxMUHKRxlyJn8ji6XJ4iH OQJNwJLH/mVyrnHEclFPQtl4dh8RFKH+GtkLNyY4bIBzarFgziIKBheDEcQN+Grk8aeQ PDug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=EhgJ5JBZ; spf=pass (google.com: domain of linux-kernel+bounces-21029-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21029-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v11-20020a056102074b00b00466f77b7ef6si312453vsg.475.2024.01.09.07.14.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 07:14:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21029-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=EhgJ5JBZ; spf=pass (google.com: domain of linux-kernel+bounces-21029-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21029-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9EE1C1C23937 for ; Tue, 9 Jan 2024 15:14:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1057039FE0; Tue, 9 Jan 2024 15:14:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="EhgJ5JBZ" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 D948D39AE8; Tue, 9 Jan 2024 15:14:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=gRiZiJWOoVL6Oa5TlXweb+aZfLgTD3/mvROJ7Dpd6vo=; b=EhgJ5JBZ0knWO1CRq06h9bTbXZ ZF4H3dqITWvmqEbmUSX+49PXuSy0FBPA26c2MLmyPJtmBFYFq3bUYA6VFLywYgnE7ZlX/jh2JCA/X 34HRmL1Sy/FR2AmKPpCon150+fczB7SXbtw4EgxEsc4X31/Dw4HSYckK4+DxBc+dvTEk=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rNDng-004qNW-I3; Tue, 09 Jan 2024 16:13:56 +0100 Date: Tue, 9 Jan 2024 16:13:56 +0100 From: Andrew Lunn To: Sneh Shah Cc: Vinod Koul , Bhupesh Sharma , Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@quicinc.com, Andrew Halaney Subject: Re: [PATCH v2] net: stmmac: dwmac-qcom-ethqos: Add support for 2.5G SGMII Message-ID: References: <20240108121128.30071-1-quic_snehshah@quicinc.com> <4216bcbb-730d-4c51-a9ce-d3f0a0846e31@lunn.ch> <6f97e753-435e-4b86-bd47-290097f6a3f0@quicinc.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=us-ascii Content-Disposition: inline In-Reply-To: <6f97e753-435e-4b86-bd47-290097f6a3f0@quicinc.com> On Tue, Jan 09, 2024 at 08:22:40PM +0530, Sneh Shah wrote: > > > On 1/9/2024 1:00 AM, Andrew Lunn wrote: > > On Mon, Jan 08, 2024 at 05:41:28PM +0530, Sneh Shah wrote: > >> Serdes phy needs to operate at 2500 mode for 2.5G speed and 1000 > >> mode for 1G/100M/10M speed. > >> Added changes to configure serdes phy and mac based on link speed. > > > > Please take a look at: > > > > https://www.kernel.org/doc/html/next/process/maintainer-netdev.html > > > > The Subject is missing which tree this is for. Also, net-next is > > closed at the moment. > > It was supposed to be net-next. Missed updating in subject. > Sorry for that! > If net-next is closed at the moment, how to proceed further? > Should I wait until it gets reopened? Yes, please repost in two weeks time. > >> switch (ethqos->speed) { > >> + case SPEED_2500: > >> + val &= ~ETHQOS_MAC_CTRL_PORT_SEL; > >> + rgmii_updatel(ethqos, RGMII_CONFIG2_RGMII_CLK_SEL_CFG, > >> + RGMII_CONFIG2_RGMII_CLK_SEL_CFG, > >> + RGMII_IO_MACRO_CONFIG2); > >> + if (ethqos->serdes_speed != SPEED_2500) > >> + phy_set_speed(ethqos->serdes_phy, SPEED_2500); > > > > Is calling phy_set_speed() expensive? Why not just unconditionally > > call it? > > > It reconfigures whole serdes phy block, with lots of register read/writes. > So I feel it is better to avoid doing this unconditionally O.K, please add this to the commit message. Part of the purpose of the commit message is to try to answer questions the reviewers are going to ask when they look at the code. Its better to put more in the commit message than less, it helps get your code merged faster, and reduces the load on reviewers. Andrew