[PATCH 3/4] net: phy: marvell: Remove PHY_INTERFACE_MODE_SGMII_2500

Ramon Fried rfried.dev at gmail.com
Thu Apr 29 22:17:56 CEST 2021


On Tue, Apr 27, 2021 at 12:49 PM Stefan Roese <sr at denx.de> wrote:
>
> As was discussed on the list, PHY_INTERFACE_MODE_SGMII_2500 is used
> incorrectly in the Marvell mvpp2 network driver and the Marvell PHY
> code. This patch removes the references to this macro in the Marvell
> PHY driver for now.
>
> The correct support shall be implemented at a later time.
>
> Signed-off-by: Stefan Roese <sr at denx.de>
> Cc: Konstantin Porotchkin <kostap at marvell.com>
> Cc: Stefan Chulski <stefanc at marvell.com>
> Cc: Nadav Haklai <nadavh at marvell.com>
> Cc: Marek Behun <marek.behun at nic.cz>
> ---
> This patch is targeted on-top of the latest Marvell SERDES, mvpp2 and
> PHY patches to resolve the ongoing discussion of the incorrect usage of
> SGMII_2500 for now.
>
>  drivers/net/phy/marvell.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c
> index 3bcb0033b391..8850b604ef47 100644
> --- a/drivers/net/phy/marvell.c
> +++ b/drivers/net/phy/marvell.c
> @@ -634,8 +634,7 @@ static int m88e2110_config(struct phy_device *phydev)
>                 /* Disabled 10G advertisement */
>                 phy_write(phydev, 7, 0x20, 0x1e1);
>         } else {
> -               if (phydev->interface == PHY_INTERFACE_MODE_SGMII_2500 ||
> -                   phydev->interface == PHY_INTERFACE_MODE_2500BASEX) {
> +               if (phydev->interface == PHY_INTERFACE_MODE_2500BASEX) {
>                         /* Disabled 10G/5G advertisements */
>                         phy_write(phydev, 7, 0x20, 0xa1);
>                 } else {
> --
> 2.31.1
>
Reviewed-by: Ramon Fried <rfried.dev at gmail.com>


More information about the U-Boot mailing list