>From cccf07f4d7335cbc36f3856da6d368cb01570760 Mon Sep 17 00:00:00 2001 Message-Id: In-Reply-To: References: From: Jose Abreu Date: Thu, 18 Oct 2018 17:36:21 +0200 Subject: [PATCH 5/8] net: phy: Use C45 Helpers when forcing PHY If PHY is in force state and we have a C45 phy we need to use the standard C45 helpers and not the C22 ones. Signed-off-by: Jose Abreu --- drivers/net/phy/phy.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index 1ee25877c4d1..28ed957bc0f6 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -1007,7 +1007,11 @@ void phy_state_machine(struct work_struct *work) } break; case PHY_FORCING: - err = genphy_update_link(phydev); + if (phydev->is_c45) + err = gen10g_read_status(phydev); + else + err = genphy_update_link(phydev); + if (err) break; -- 2.7.4