]> www.infradead.org Git - users/hch/misc.git/commit
net: pcs: xpcs: combine xpcs_link_up_{1000basex,sgmii}()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thu, 17 Oct 2024 11:52:59 +0000 (12:52 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Wed, 23 Oct 2024 14:10:16 +0000 (16:10 +0200)
commit4145921c305545cf86d49c0dd665084fb7245225
tree9dc0fbf1aaca46fc633bf9d0e4d9a7d36b64efd1
parent1c17f9d3fe17d296ff2d93740ee96a52a2343628
net: pcs: xpcs: combine xpcs_link_up_{1000basex,sgmii}()

xpcs_link_up_sgmii() and xpcs_link_up_1000basex() are almost identical
with the exception of checking the speed and duplex for 1000BASE-X.
Combine the two functions.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tested-by: Serge Semin <fancer.lancer@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/pcs/pcs-xpcs.c