Re: [PATCH net-next v2 1/4] net: phy: c45: add genphy_c45_soft_reset()

From: Nicolai Buchwitz

Date: Thu Jun 04 2026 - 04:23:37 EST


Hi Javen

On 4.6.2026 09:42, javen wrote:
From: Javen Xu <javen_xu@xxxxxxxxxxxxxx>

Add a generic Clause 45 software reset helper. The helper sets the reset
bit in the PMA/PMD control register and waits until the bit is cleared by
hardware.

Signed-off-by: Javen Xu <javen_xu@xxxxxxxxxxxxxx>

[...]

+
/**
* genphy_c45_restart_aneg - Enable and restart auto-negotiation
* @phydev: target phy_device struct
diff --git a/include/linux/phy.h b/include/linux/phy.h
index 199a7aaa341b..25a66320df56 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -2309,6 +2309,7 @@ int genphy_c37_read_status(struct phy_device *phydev, bool *changed);
/* Clause 45 PHY */
int genphy_c45_restart_aneg(struct phy_device *phydev);
int genphy_c45_check_and_restart_aneg(struct phy_device *phydev, bool restart);
+int genphy_c45_soft_reset(struct phy_device *phydev);
int genphy_c45_aneg_done(struct phy_device *phydev);
int genphy_c45_read_link(struct phy_device *phydev);
int genphy_c45_read_lpa(struct phy_device *phydev);

nit: Ordering in c and header files mismatches, but this probably my OCD :-)

Reviewed-by: Nicolai Buchwitz <nb@xxxxxxxxxxx>

THanks,
Nicolai