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 0C78836E48D; Thu, 26 Mar 2026 18:04:58 +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=1774548299; cv=none; b=tXus0HfhlbnQ73tYQybfWl5NAs46AF+OyFXkRaApoItL+q+jN3lBhVk4aQXvVTRyWwVgsGr30ewuT5tjT5F9Am8iGzD4hLNIXRVxunS7lspUKFT83oY0QbzdgAEObvhEpjDvYOIlAQoKBQytX5kGDelQYUas04wZjwenYnh458E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774548299; c=relaxed/simple; bh=qpAtIegWs0nrmgQYz8seyUU8RILvB8VXDiR3yGSyW2s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kzfCMlWcnIOl1KIzik86lEY5Ixq0AUhF8f9iBNQ0yLuLcgOabXS09ZrmDWAHsNMsbZVEB87f4gg8TSVrKKXh9r8mY89Zu7gqlbYIPKcKToJZ73swTiYdW3hy/xxiytEX0v1/+ACQkmmqbqdNypv/oTse2j1jdm+wv5FfNf1qmEc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=oYRvSGgs; 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="oYRvSGgs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11FD9C2BCB1; Thu, 26 Mar 2026 18:04:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1774548298; bh=qpAtIegWs0nrmgQYz8seyUU8RILvB8VXDiR3yGSyW2s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oYRvSGgspK+mulzMUQ36UxRvcUstR5rZzn14ac570iMtTy/LIGM/WQmEhR+gRXN8A OyF2HSQocuufy7SRk9CWmxP9fphI0+iEJL9AEV2S91N39YljfkYPAh80tEdxd+kdK1 pSKPPdPmWRXAd/zvgMddZWG4hFtEs4meYtL17T+6LL3p6TsdIRK1ci96GS7/zqrpH1 lBU/4gQHH6CIEQ1FpFAt19qNfM1qE//Co9Av44XginlsW4ygFksy0DMfnXqbjO7siB d70mCpW42qPFJIXAmGeREuclg8pj3VFN9Afkzd9piMbjQbNuuiIvgdCnL45CAVfF/l +cPqdmU3sNN4Q== Date: Thu, 26 Mar 2026 18:04:53 +0000 From: Simon Horman To: "Russell King (Oracle)" Cc: Andrew Lunn , 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, Mohd Ayaan Anwar , netdev@vger.kernel.org, Paolo Abeni Subject: Re: [PATCH net-next 03/15] net: stmmac: qcom-ethqos: eliminate configure_func Message-ID: <20260326180453.GU111839@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 Tue, Mar 24, 2026 at 01:11:44PM +0000, Russell King (Oracle) wrote: > Since ethqos_fix_mac_speed() is called via a function pointer, and only > indirects via the configure_func function pointer, eliminate this > unnecessary indirection. > > Signed-off-by: Russell King (Oracle) ... > @@ -623,14 +627,6 @@ static void ethqos_configure_sgmii(struct qcom_ethqos *ethqos, > ethqos_pcs_set_inband(ethqos, interface == PHY_INTERFACE_MODE_SGMII); > } > > -static void ethqos_fix_mac_speed(void *priv, phy_interface_t interface, > - int speed, unsigned int mode) > -{ > - struct qcom_ethqos *ethqos = priv; > - > - ethqos->configure_func(ethqos, interface, speed); > -} > - > static int qcom_ethqos_serdes_powerup(struct net_device *ndev, void *priv) > { > struct qcom_ethqos *ethqos = priv; Hi Russell, FYI, AI generated review reports that the comment in ethqos_clks_config() that references ethqos_fix_mac_speed() should also be updated. ...