]> www.infradead.org Git - users/willy/pagecache.git/commit
net: phy: dp83tg720: get master/slave configuration in link down state
authorOleksij Rempel <o.rempel@pengutronix.de>
Fri, 14 Jun 2024 09:45:16 +0000 (11:45 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 19 Jun 2024 00:51:45 +0000 (17:51 -0700)
commit40a64cc9679540ff7c46ecc51178b07d42abbb1c
treee3ef27241e91cf26b2b067e8dfea0f9a63161416
parentcd6f12e173df44a20c2ac2ac110007dc14968088
net: phy: dp83tg720: get master/slave configuration in link down state

Get master/slave configuration for initial system start with the link in
down state. This ensures ethtool shows current configuration.  Also
fixes link reconfiguration with ethtool while in down state, preventing
ethtool from displaying outdated configuration.

Even though dp83tg720_config_init() is executed periodically as long as
the link is in admin up state but no carrier is detected, this is not
sufficient for the link in admin down state where
dp83tg720_read_status() is not periodically executed. To cover this
case, we need an extra read role configuration in
dp83tg720_config_aneg().

Fixes: cb80ee2f9bee1 ("net: phy: Add support for the DP83TG720S Ethernet PHY")
Cc: stable@vger.kernel.org
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Link: https://lore.kernel.org/r/20240614094516.1481231-2-o.rempel@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/dp83tg720.c