Re: [PATCH v2 ] net: phy: corrected the return value for genphy_check_and_restart_aneg and genphy_c45_check_and_restart_aneg

From: David Miller
Date: Wed Feb 26 2020 - 23:42:38 EST


From: Sudheesh Mavila <sudheesh.mavila@xxxxxxx>
Date: Wed, 26 Feb 2020 12:40:45 +0530

> When auto-negotiation is not required, return value should be zero.
>
> Changes v1->v2:
> - improved comments and code as Andrew Lunn and Heiner Kallweit suggestion
> - fixed issue in genphy_c45_check_and_restart_aneg as Russell King
> suggestion.
>
> Fixes: 2a10ab043ac5 ("net: phy: add genphy_check_and_restart_aneg()")
> Fixes: 1af9f16840e9 ("net: phy: add genphy_c45_check_and_restart_aneg()")
> Signed-off-by: Sudheesh Mavila <sudheesh.mavila@xxxxxxx>

Applied and queued up for -stable, thanks.