Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2793587rdb; Mon, 12 Feb 2024 17:49:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IGb0ZxGAcX0PMZdddPJjtKLivkwOccXeO3vjiUqlgK0i7d0NLtbNhgLB2KOSZIXXXF+Tl7Z X-Received: by 2002:a05:622a:58e:b0:42a:4b83:392b with SMTP id c14-20020a05622a058e00b0042a4b83392bmr12087432qtb.60.1707788979763; Mon, 12 Feb 2024 17:49:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707788979; cv=pass; d=google.com; s=arc-20160816; b=pqr+aCIgacWehhgquzlS1jTHJzL0T32J70yoi/mXAvCk0UKSyfBAI6GnFTVyNcP8kE wzzI/73W0N6+mlUQrGc6BlTa7RRhnU21vRTR5ytwUK+H93fbmuKKWhVIx3dze//K9wMw hFZQih40mz14zRVz4p4UW3qkPSacojeNKpQLF2VU9yEhW608vKlavQV5BujDnGARFfS9 T4QLgQyvld2m7JcmryaOwo7MrFzirX/2HILDrpGzrOFN95/1ZWB1q6OfoDoG7juilATp rJdarJch3pKTxY09EsMAIXLUmagrj0ROO6mRsaI4M5mshb4AF2fI3+BXgmUHIH8AVPrC rLCA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=pXf6bDieLRoD/SQpzhXc83PSnzYniruUcl0eCjP4SFE=; fh=cl+kK3UKt2kPRPhSJ3nqqubFSu0WRaL8cluDNROeEMA=; b=aq+6ZvpQQ8BnGRGbUV4LWSgYLU8E495duJLT9vi5Sa/RxKRgMs4v3NuRWtQCTrv5Ed AJbHXm7zQ6pK2Fe+ZCoiPbJAV7IoLPSWckCSDkj+QljA9y8CIUkYQFES4B3WXdvsKt6f /qwmF3Ou6P0TJADFey/mzRa8FY7rZc6X23szBXb9SSWW25oIOrc14XQX/BUE+vMloDpG 9jEtYg45yUCZ5T3QSht9nT75Z+2dNXDjPtAYiPlbG8xLWyiM6gValAhdXZQBSKs8GIdk zn+937Zf7d0AlXwGcjt4iAh/Cz4n16odh9AM96z+MlXbN2S9c/pdybQX9t8Zcs+Ct2K0 YTTQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=f7FzUXFT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-62863-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62863-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCVXTEZlekV66XQ0PuDv7puNovOruDEHab+vhvOsS1p3l1gAwSGb1jxXAuDBaOf1bLSdKPu2m7HU73Z0TQEBKQDCWH+0Qybum77N0emv/A== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id f9-20020ac859c9000000b0042c7c277572si2015377qtf.517.2024.02.12.17.49.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 17:49:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62863-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=@kernel.org header.s=k20201202 header.b=f7FzUXFT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-62863-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62863-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 72DDF1C2586A for ; Tue, 13 Feb 2024 01:49:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8A8F41757B; Tue, 13 Feb 2024 01:30:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="f7FzUXFT" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 A40E014010; Tue, 13 Feb 2024 01:30:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707787817; cv=none; b=MPObzTuhoMHBSSEMdXxBB5fKVwe+kZePFaJSyWRk2K55qD/PAJfgxqjZhtVC1gyNGIm2A7U0KLGThf4sQxBZQgVSaO/lSM0TdtdAzlykAyaLFJEY5m8ydT9wLgVmr2S3LXAgkGatBfgzuMY7HXvEnI2QQef9B2Uo85sUN71R4JA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707787817; c=relaxed/simple; bh=JdTHedcxVO15s3B4sRid8zTpEzYkN8lo7pBe02dMOIA=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=VN1gjarGfMZqMce9JUlciDxNyAJewLnhGbDmzinEDUkLgNiyz+jYEXekILmAYlbFnJV+fxdwBGVbcupAs4SqPN4/FG5oSj5/mOSVlgpGAjpiVzdWkKoxFVEt4dhBBJe84UC+l8PolTvbcYuduiltjO+wz8Ic30w51xnGOSmJDB4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=f7FzUXFT; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 808CDC433C7; Tue, 13 Feb 2024 01:30:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707787817; bh=JdTHedcxVO15s3B4sRid8zTpEzYkN8lo7pBe02dMOIA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=f7FzUXFTQaQH8sST/82MCPpBjozyaFswVdXgob1DuM96d49GvcQ8wdCMwWZLzkxgb UJgmMIkE6HmuBTiwWJJ6jbHzUIBgH/uaV2/oVNOH4xgI1gpyjHC1FKtodkkM88NPb5 LyLBx4QyM/e4GbXQ9l/97+7UnUSKW79+3X60suDirIZ49zHBqCVf9kc5JZJbMEEuBU lj1FTyIPXxlSxynmRWq9W8yZkHNr8N0DDAMX7DKO/qDNJnO27yCwoSnhWfXInum8fD dpSzPJHVFS8eWxVFGFi/KxHI9rP3OGCCxyjAQig1Jl5af3KmOGPZSpKo/QKejms+s5 N9fniz4acy2nQ== Date: Mon, 12 Feb 2024 17:30:15 -0800 From: Jakub Kicinski To: Sneh Shah Cc: Vinod Koul , Bhupesh Sharma , Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , 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 net-next v4] net: stmmac: dwmac-qcom-ethqos: Add support for 2.5G SGMII Message-ID: <20240212173015.0341f0ee@kernel.org> In-Reply-To: <20240208111714.11456-1-quic_snehshah@quicinc.com> References: <20240208111714.11456-1-quic_snehshah@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-Transfer-Encoding: 7bit On Thu, 8 Feb 2024 16:47:14 +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. > Changing serdes phy speed involves multiple register writes for > serdes block. To avoid redundant write operations only update serdes > phy when new speed is different. Sounds like 2 separate changes in one patch, please split the optimization of not writing the registers multiple times and the 2.5G support. > diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c > index 31631e3f89d0..6bbdbb7bef44 100644 > --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c > +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c > @@ -106,6 +106,7 @@ struct qcom_ethqos { > struct clk *link_clk; > struct phy *serdes_phy; > unsigned int speed; > + int serdes_speed; Why signed if speed itself is unsigned? > /* Enable and restart the Auto-Negotiation */ > if (ane) > value |= GMAC_AN_CTRL_ANE | GMAC_AN_CTRL_RAN; > + else > + value &= ~GMAC_AN_CTRL_ANE; That looks unrelated. Either a separate patch or please explain in the commit msg why. -- pw-bot: cr