]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: ax88772a: fix lost pause advertisement configuration
authorOleksij Rempel <o.rempel@pengutronix.de>
Tue, 28 Jun 2022 11:43:49 +0000 (13:43 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 30 Jun 2022 03:39:05 +0000 (20:39 -0700)
commited77cdb242f1f9d14b6f9a61e7e72cd2d63fddc4
treea104aebad45e482f8f3762982a4d91d21f4d38a2
parent7686285659db8155e967670c3171f394c14cd520
net: phy: ax88772a: fix lost pause advertisement configuration

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: 877cfd219ba7 ("net: usb/phy: asix: add support for ax88772A/C PHYs")
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20220628114349.3929928-1-o.rempel@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/ax88796b.c