On Fri, 23 Aug 2024 10:11:15 -0400 Detlev Casanova wrote: > +static void rk3576_set_to_rgmii(struct rk_priv_data *bsp_priv, > + int tx_delay, int rx_delay) > +{ > + struct device *dev = &bsp_priv->pdev->dev; > + unsigned int offset_con; > + > + if (IS_ERR(bsp_priv->grf) || IS_ERR(bsp_priv->php_grf)) { > + dev_err(dev, "Missing rockchip,grf or rockchip,php-grf property\n"); > + return; > + } Seems like there's plenty of precedent in this file, but seems a little strange that we just print a message and carry on, without returning an error. Would be better to return an error or add some info to the ops struct, so that the caller can check if the correct (of the two) regmaps are set