]> 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)
commit2ce780569bdffcad1a17c9bb707349a177de16f8
treea104aebad45e482f8f3762982a4d91d21f4d38a2
parentc28e49d884de23d2a0925748c1ef0a1826d13848
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: d7f0cae76027 ("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