[PATCH net-next 03/15] net: stmmac: qcom-ethqos: eliminate configure_func
Simon Horman
horms at kernel.org
Thu Mar 26 11:04:53 PDT 2026
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) <rmk+kernel at armlinux.org.uk>
...
> @@ -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.
...
More information about the linux-arm-kernel
mailing list