]> git.baikalelectronics.ru Git - kernel.git/commit
net: phylink: add legacy_pre_march2020 indicator
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thu, 9 Dec 2021 13:11:32 +0000 (13:11 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 9 Dec 2021 19:21:03 +0000 (11:21 -0800)
commit7c3b94565057ecba1f6e2e1897f1a8fd6c78532d
tree133e1394f814fdca92a558394821d0152bd4ec95
parent954181fcf871f3982d2cc30507ef76b16a02de0a
net: phylink: add legacy_pre_march2020 indicator

Add a boolean to phylink_config to indicate whether a driver has not
been updated for the changes in commit d0d758358977 ("net: phylink:
avoid mac_config calls"), and thus are reliant on the old behaviour.

We were currently keying the phylink behaviour on the presence of a
PCS, but this is sub-optimal for modern drivers that may not have a
PCS.

This commit merely introduces the new flag, but does not add any use,
since we need all legacy drivers to set this flag before it can be
used. Once these legacy drivers have been updated, we can remove this
flag.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/phylink.h