[PATCH net-next 08/11] net: stmmac: Add EMAC3 variant of dwmac4
Andrew Lunn
andrew at lunn.ch
Mon Mar 13 17:59:39 PDT 2023
> diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
> index 21aaa2730ac8..9e3d8e1202bd 100644
> --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
> +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
> @@ -281,9 +281,8 @@ static int stmmac_mdio_read_c22(struct mii_bus *bus, int phyaddr, int phyreg)
> value |= (phyreg << priv->hw->mii.reg_shift) & priv->hw->mii.reg_mask;
> value |= (priv->clk_csr << priv->hw->mii.clk_csr_shift)
> & priv->hw->mii.clk_csr_mask;
> - if (priv->plat->has_gmac4) {
> + if (priv->plat->has_gmac4 || priv->plat->has_emac3)
> value |= MII_GMAC4_READ;
> - }
Removing the {} is correct in terms of the coding style, but it should
be done as part of a separate patch.
Andrew
More information about the linux-arm-kernel
mailing list