kernel: backport ethtool_puts
[openwrt/openwrt.git] / target / linux / generic / backport-5.15 / 703-01-v5.16-net-phylink-add-MAC-phy_interface_t-bitmap.patch
1 From 38c310eb46f5f80213a92093af11af270c209a76 Mon Sep 17 00:00:00 2001
2 From: Russell King <rmk+kernel@armlinux.org.uk>
3 Date: Tue, 26 Oct 2021 11:06:06 +0100
4 Subject: [PATCH] net: phylink: add MAC phy_interface_t bitmap
5
6 Add a phy_interface_t bitmap so the MAC driver can specifiy which PHY
7 interface modes it supports.
8
9 Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
10 Signed-off-by: David S. Miller <davem@davemloft.net>
11 ---
12 include/linux/phylink.h | 1 +
13 1 file changed, 1 insertion(+)
14
15 --- a/include/linux/phylink.h
16 +++ b/include/linux/phylink.h
17 @@ -78,6 +78,7 @@ struct phylink_config {
18 bool ovr_an_inband;
19 void (*get_fixed_state)(struct phylink_config *config,
20 struct phylink_link_state *state);
21 + DECLARE_PHY_INTERFACE_MASK(supported_interfaces);
22 };
23
24 /**