quoted hunk ↗ jump to hunk
+static void unimac_mdio_set_clause(struct unimac_mdio_priv *priv, bool is_c45)
+{
+ u32 cfg = unimac_mdio_readl(priv, MDIO_CFG);
+ u32 new_cfg = cfg;
+
+ if (is_c45)
+ new_cfg &= ~MDIO_C22;
+ else
+ new_cfg |= MDIO_C22;
+
+ if (new_cfg != cfg)
+ unimac_mdio_writel(priv, new_cfg, MDIO_CFG);
Is the write expensive? The bus is not faster, so is this optimisation
even noticeable?
Andrew