From mboxrd@z Thu Jan 1 00:00:00 1970 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 73C29BA49; Sat, 14 Jun 2025 15:35:18 +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=1749915319; cv=none; b=FcXTIKmctXOAPtOXUSWedj1I8IIvSNJnYZOI1a8eEjrpgXvhXla5d80z9h21INVh5WhsupgZ9W5pxx3/1EG4WtyrDDIf/4gdWcRzxtn3uOFDEDYK1pA7wXN06NGXs4Yn4Fh/y+hv+alfltR2sXYf+hADzH+9IiNbIPW1qksm1wA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749915319; c=relaxed/simple; bh=d/EY3r7M0Oqj/yKEoNpBZWTyk+esJAhtZ5aqvrMM2to=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ly2Qx8goXyTW4n9Jg5w+MnUYOkG9ZfUsmD7gJV7RCXPKCCL7iWJYz79V25R9Ph2F3Wv+1ae3G05y3DWtFEwQ86Y4zKYJL1IjBPn+2BxlsnWIh4o4XgqWJzrWhG7JkDFRdmw2h7kDTLw4+FLrRfGtM8S/oHVeS9uVuQxkheuTsRw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=TBrYjt+T; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="TBrYjt+T" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28FDEC4CEEB; Sat, 14 Jun 2025 15:35:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1749915317; bh=d/EY3r7M0Oqj/yKEoNpBZWTyk+esJAhtZ5aqvrMM2to=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TBrYjt+TsccDL8IyUV+0MyZuV+x2m0KQPMmUzqif+KvB70rMn7led0twGlZSOv+t0 wqPvrCyT+uA9Z5XOlOIdI5pcbu5oVCQgUJvstu7ldKG+0EPa0GDztZqOzyorcowOzw 4EBw4ObYoPcpy1d2xDYeU7Pz3mRHeHV+//E0H3qunHYBQ0UEorJrMi9euNHELcqIze eBLmuhZ4cmO+hJHlfjLgsN+nBTr783gvtcdcrg6DfSc9sgF8dL8wyoqJdlweEZA1MQ WIpCt2olStUt4E/jeV80IUcYJLSSgGemvn2xJ95HMx53m0jOpHWiESG443k3f+VgZ+ KRQOty20KW+zg== Date: Sat, 14 Jun 2025 16:35:12 +0100 From: Simon Horman To: "Russell King (Oracle)" Cc: Andrew Lunn , Heiner Kallweit , Alexandre Torgue , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, Maxime Coquelin , netdev@vger.kernel.org, Paolo Abeni , Vinod Koul Subject: Re: [PATCH net-next] net: stmmac: qcom-ethqos: add ethqos_pcs_set_inband() Message-ID: <20250614153512.GQ414686@horms.kernel.org> References: Precedence: bulk X-Mailing-List: netdev@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: On Thu, Jun 12, 2025 at 05:16:30PM +0100, Russell King (Oracle) wrote: > Add ethqos_pcs_set_inband() to improve readability, and to allow future > changes when phylink PCS support is properly merged. > > Reviewed-by: Andrew Halaney > Tested-by: Bartosz Golaszewski # sa8775p-ride-r3 > Signed-off-by: Russell King (Oracle) Thanks Russell, The nit below notwithstanding this looks good to me. Reviewed-by: Simon Horman > --- > .../net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c | 13 +++++++++---- > 1 file changed, 9 insertions(+), 4 deletions(-) > > diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c > index e30bdf72331a..2e398574c7a7 100644 > --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c > +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c > @@ -622,6 +622,11 @@ static void ethqos_set_serdes_speed(struct qcom_ethqos *ethqos, int speed) > } > } > > +static void ethqos_pcs_set_inband(struct stmmac_priv *priv, bool enable) > +{ > + stmmac_pcs_ctrl_ane(priv, priv->ioaddr, enable, 0, 0); FWIIW, I would have gone for the following, as all the type of three of the trailing parameters is bool. stmmac_pcs_ctrl_ane(priv, priv->ioaddr, enable, false, false); > +} > + > /* On interface toggle MAC registers gets reset. > * Configure MAC block for SGMII on ethernet phy link up > */ ...