[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Yrgj2WM5/O7YSUeZ@lunn.ch>
Date: Sun, 26 Jun 2022 11:16:09 +0200
From: Andrew Lunn <andrew@...n.ch>
To: alexandru.tachici@...log.com
Cc: netdev@...r.kernel.org, davem@...emloft.net, edumazet@...gle.com,
kuba@...nel.org, devicetree@...r.kernel.org,
krzysztof.kozlowski+dt@...aro.org, gerhard@...leder-embedded.com,
geert+renesas@...der.be, joel@....id.au, stefan.wahren@...e.com,
wellslutw@...il.com, geert@...ux-m68k.org, robh+dt@...nel.org,
d.michailidis@...gible.com, stephen@...workplumber.org,
l.stelmach@...sung.com, linux-kernel@...r.kernel.org
Subject: Re: [net-next 1/2] net: ethernet: adi: Add ADIN1110 support
> +static int adin1110_mdio_read(struct mii_bus *bus, int phy_id, int reg)
> +{
> + struct adin1110_priv *priv = bus->priv;
> + u32 val = 0;
> + int ret;
> +
> + mutex_lock(&priv->lock);
> +
> + val |= FIELD_PREP(ADIN1110_MDIO_OP, ADIN1110_MDIO_OP_RD);
> + val |= FIELD_PREP(ADIN1110_MDIO_ST, 0x1);
> + val |= FIELD_PREP(ADIN1110_MDIO_PRTAD, phy_id);
> + val |= FIELD_PREP(ADIN1110_MDIO_DEVAD, reg);
> +
> + /* write the clause 22 read command to the chip */
Please return -EOPNOTSUPP if asked to do a C45 transfer.
> +static int adin1110_mdio_write(struct mii_bus *bus, int phy_id, int reg, u16 reg_val)
> +{
> + struct adin1110_priv *priv = bus->priv;
> + u32 val = 0;
> + int ret;
same here.
Andrew
Powered by blists - more mailing lists