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 CA40A3DA7F6; Fri, 27 Mar 2026 09:23:32 +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=1774603412; cv=none; b=r1u1esGyZbsa/gqIgvVYy3LkCSmLs1UWzXwpcgqgXbwhoFgro828vH32Anh7AzWnKr706BjoxF3xcrEtPOZY1K8IqxPgFEzQ7+Bbeo4IQR4N/An6Jst64TtVk7olkLZg6CTa/fBUhwhz3xVR23mnxDvakT7r442FPHia9mkO1OU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774603412; c=relaxed/simple; bh=UUG2DpyL+eUgewSKD3Yd9/PcZ1TPr1oUxFvTW/dSkKQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Yu9dhBeplIs5A4b6H6uvPCDMiRcvn6ZI5Pi6qOktANOSp6v3DhXsirHwZeWE7cTT/fZt1sqqi6W0yAw+3wzfTTYS1kfBtSWrTQJKkQGBQTP8AWYMs/Erh5lB29OJrW+8l7Lb2/nBioreChJ5jEs3v8t1hnwZhHDDReDErxmRQts= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZkxF6S0B; 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="ZkxF6S0B" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B1C0EC19423; Fri, 27 Mar 2026 09:23:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1774603412; bh=UUG2DpyL+eUgewSKD3Yd9/PcZ1TPr1oUxFvTW/dSkKQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZkxF6S0BiL0pUMCoaFi5uLzUqKys1/B/6mt3ukZHPLBa5qEd7hdlLFCxl+Gl75d4a Q6SmC/Vi4JBGKgSYfu/rgGMW0d+oawHZ0jiCn1gdZ1F365s5z4nko5D6qYe4S3Iwcd IQxsqx4hhrYj/h/eYjDeRpi4tWnh01zkzqLoOfbJm3xT0hgNoY/ld1VKopZv9ZdgSz f0ieMUCtFrO2RgZ7tA2E+VSm16BxnaOdxlHNuyR4YWVKbr9pxd6bHP8fNq0b24No7N siyHOR6Zpd82Q1sWqO6bVxxMganoTMAAzr0OA75MU3GkWqiZ2lSeUxD5XnXAj4W8W8 sEdoTraxOBzKg== Date: Fri, 27 Mar 2026 09:23:27 +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: <20260327092327.GA111839@horms.kernel.org> References: <20260326180453.GU111839@horms.kernel.org> 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, Mar 26, 2026 at 06:12:06PM +0000, Russell King (Oracle) wrote: > On Thu, Mar 26, 2026 at 06:04:53PM +0000, Simon Horman wrote: > > 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. > > Also already noted (yesterday). > > I do keep an eye on patchwork for my own patches - I have a firefox tab > permanently open for my patches in patchwork: > > https://patchwork.kernel.org/project/netdevbpf/list/?submitter=165511 > > Thanks anyway. Thanks, and sorry if you told me this before. I'll try to remember and not spam you with these things going forward.