Skip to content

Commit 7227bc7

Browse files
oleremgregkh
authored andcommitted
net: phy: ax88772a: fix lost pause advertisement configuration
commit fa152f6 upstream. In case of asix_ax88772a_link_change_notify() workaround, we run soft reset which will automatically clear MII_ADVERTISE configuration. The PHYlib framework do not know about changed configuration state of the PHY, so we need use phy_init_hw() to reinit PHY configuration. Fixes: dde2584 ("net: usb/phy: asix: add support for ax88772A/C PHYs") Signed-off-by: Oleksij Rempel <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 0d13914 commit 7227bc7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: drivers/net/phy/ax88796b.c

+4-2
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,10 @@ static void asix_ax88772a_link_change_notify(struct phy_device *phydev)
8888
/* Reset PHY, otherwise MII_LPA will provide outdated information.
8989
* This issue is reproducible only with some link partner PHYs
9090
*/
91-
if (phydev->state == PHY_NOLINK && phydev->drv->soft_reset)
92-
phydev->drv->soft_reset(phydev);
91+
if (phydev->state == PHY_NOLINK) {
92+
phy_init_hw(phydev);
93+
phy_start_aneg(phydev);
94+
}
9395
}
9496

9597
static struct phy_driver asix_driver[] = {

0 commit comments

Comments
 (0)