[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <AM0PR04MB478842A44CC90EC171E2AC54F22A0@AM0PR04MB4788.eurprd04.prod.outlook.com>
Date: Fri, 27 Jul 2018 13:41:47 +0000
From: Camelia Alexandra Groza <camelia.groza@....com>
To: "andrew@...n.ch" <andrew@...n.ch>,
"f.fainelli@...il.com" <f.fainelli@...il.com>,
"rmk+kernel@...linux.org.uk" <rmk+kernel@...linux.org.uk>,
"davem@...emloft.net" <davem@...emloft.net>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Camelia Alexandra Groza <camelia.groza@....com>
Subject: RE: [PATCH] net: phy: use generic clause 45 autonegotiation done
> -----Original Message-----
> From: Camelia Groza [mailto:camelia.groza@....com]
> Sent: Wednesday, July 18, 2018 16:12
> To: andrew@...n.ch; f.fainelli@...il.com; davem@...emloft.net
> Cc: netdev@...r.kernel.org; linux-kernel@...r.kernel.org; Camelia
> Alexandra Groza <camelia.groza@....com>
> Subject: [PATCH] net: phy: use generic clause 45 autonegotiation done
>
> Only Clause 22 PHYs can use genphy_aneg_done(). Use
> genphy_c45_aneg_done() for PHYs that implement Clause 45 without the
> Clause 22 register set.
>
> This change follows the model of phy_restart_aneg() which differentiates
> between the two implementations in a similar way.
>
> Fixes: 41408ad519f7 ("net: phy: avoid genphy_aneg_done() for PHYs without
> clause 22 support")
> Signed-off-by: Camelia Groza <camelia.groza@....com>
> ---
> drivers/net/phy/phy.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index
> 537297d..4fcc703 100644
> --- a/drivers/net/phy/phy.c
> +++ b/drivers/net/phy/phy.c
> @@ -151,7 +151,7 @@ int phy_aneg_done(struct phy_device *phydev)
> * implement Clause 22 registers
> */
> if (phydev->is_c45 && !(phydev->c45_ids.devices_in_package &
> BIT(0)))
> - return -EINVAL;
> + return genphy_c45_aneg_done(phydev);
>
> return genphy_aneg_done(phydev);
> }
> --
> 1.9.1
Hi
A reminder for the original patch above. Since I sent the second patch for phy_config_aneg() against a different tree [1], I didn't see the need to resubmit this patch. If you need me to resubmit it, please let me know.
[1] https://patchwork.ozlabs.org/patch/947831/
Thank you,
Camelia
Powered by blists - more mailing lists