]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: phylink: move test for ovr_an_inband
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 29 May 2024 13:29:24 +0000 (14:29 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 31 May 2024 01:32:15 +0000 (18:32 -0700)
commitfea49f065c1cff71a86e7629094f912531edf035
tree5b1482ab9e69585d7016eebdb388851495c58f60
parent75518b0dc9d602bdd0e0ee4e04806dff53cb761a
net: phylink: move test for ovr_an_inband

Of the two users of phylink_config->ovr_an_inband, both manually check
for a fixed link before setting this flag (or clearing it if they find
a fixed link.) This is unnecessary complication.

Test ovr_an_inband before checking for the fixed-link properties, which
will allow ovr_an_inband to be overriden by a fixed link specification.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Halaney <ahalaney@redhat.com>
Link: https://lore.kernel.org/r/E1sCJMq-00Ecqv-P8@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/phylink.c