[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YW3riurwBofqOmUL@lunn.ch>
Date: Mon, 18 Oct 2021 23:47:54 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Luo Jie <luoj@...eaurora.org>
Cc: hkallweit1@...il.com, linux@...linux.org.uk, davem@...emloft.net,
kuba@...nel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, sricharan@...eaurora.org
Subject: Re: [PATCH v3 10/13] net: phy: add qca8081 config_init
> +static int qca808x_phy_fast_retrain_config(struct phy_device *phydev)
> +{
> + int ret;
> +
> + ret = phy_write_mmd(phydev, MDIO_MMD_AN, MDIO_AN_10GBT_CTRL,
> + MDIO_AN_10GBT_CTRL_ADV2_5G |
> + MDIO_AN_10GBT_CTRL_ADVFSRT2_5G |
> + MDIO_AN_10GBT_CTRL_ADVLPTIMING);
> + if (ret)
> + return ret;
> +
> + ret = phy_write_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_PMA_10GBR_FSRT_CSR,
> + MDIO_PMA_10GBR_FSRT_ENABLE);
> + if (ret)
> + return ret;
> +
> + ret = phy_write_mmd(phydev, MDIO_MMD_AN, MDIO_AN_CTRL2, MDIO_AN_THP_BP2_5GT);
> + if (ret)
> + return ret;
Could that be made generic and put into phy-c45.c? Is there anything
specific to your PHY here?
Andrew
Powered by blists - more mailing lists