]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: phy: realtek: change order of calls in C22 read_status()
authorDaniel Golle <daniel@makrotopia.org>
Thu, 10 Oct 2024 13:07:26 +0000 (14:07 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 17 Oct 2024 07:28:10 +0000 (09:28 +0200)
commit68d5cd09e8919679ce13b85950debea4b2e98e04
tree4a32300cc1290da662ecca0a90b66dbee9a17db6
parent081c9c0265c91b8333165aa6230c20bcbc6f7cbf
net: phy: realtek: change order of calls in C22 read_status()

Always call rtlgen_read_status() first, so genphy_read_status() which
is called by it clears bits in case auto-negotiation has not completed.
Also clear 10GBT link-partner advertisement bits in case auto-negotiation
is disabled or has not completed.

Suggested-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Link: https://patch.msgid.link/b15929a41621d215c6b2b57393368086589569ec.1728565530.git.daniel@makrotopia.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/phy/realtek.c