]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: phy: realtek: read duplex and gbit master from PHYSR register
authorDaniel Golle <daniel@makrotopia.org>
Thu, 10 Oct 2024 13:07:16 +0000 (14:07 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 17 Oct 2024 07:28:10 +0000 (09:28 +0200)
commit081c9c0265c91b8333165aa6230c20bcbc6f7cbf
treee0224c97d3dcd681980c3687bbfff748b808af61
parent53bac8330865417332d4cf80cb671b15956b049d
net: phy: realtek: read duplex and gbit master from PHYSR register

The PHYSR MMD register is present and defined equally for all RTL82xx
Ethernet PHYs.
Read duplex and Gbit master bits from rtlgen_decode_speed() and rename
it to rtlgen_decode_physr().

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Link: https://patch.msgid.link/b9a76341da851a18c985bc4774fa295babec79bb.1728565530.git.daniel@makrotopia.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/phy/realtek.c