summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2022-06-10 15:13:48 +0100
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2022-06-21 10:57:42 +0100
commit4fa36737ddc2813db7f7869cefa42c703e8176ca (patch)
treeab9b04463eff1918f4c7e9e3b6767b34939ea147 /include/linux
parenta050f1590764d0423b1198ff46bfc4217aae1725 (diff)
net: phylink: provide phylink_validate_mask_caps() helper
Provide a helper that restricts the link modes according to the phylink capabilities. Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/phylink.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/phylink.h b/include/linux/phylink.h
index 8f5482e6e7b3..9d4a57529d9d 100644
--- a/include/linux/phylink.h
+++ b/include/linux/phylink.h
@@ -549,6 +549,9 @@ void pcs_link_up(struct phylink_pcs *pcs, unsigned int mode,
void phylink_get_linkmodes(unsigned long *linkmodes, phy_interface_t interface,
unsigned long mac_capabilities);
+void phylink_validate_mask_caps(unsigned long *supported,
+ struct phylink_link_state *state,
+ unsigned long caps);
void phylink_generic_validate(struct phylink_config *config,
unsigned long *supported,
struct phylink_link_state *state);