703-01-v5.16-net-phylink-add-MAC-phy_interface_t-bitmap.patch 782 B

123456789101112131415161718192021222324
  1. From 38c310eb46f5f80213a92093af11af270c209a76 Mon Sep 17 00:00:00 2001
  2. From: Russell King <[email protected]>
  3. Date: Tue, 26 Oct 2021 11:06:06 +0100
  4. Subject: [PATCH] net: phylink: add MAC phy_interface_t bitmap
  5. Add a phy_interface_t bitmap so the MAC driver can specifiy which PHY
  6. interface modes it supports.
  7. Signed-off-by: Russell King <[email protected]>
  8. Signed-off-by: David S. Miller <[email protected]>
  9. ---
  10. include/linux/phylink.h | 1 +
  11. 1 file changed, 1 insertion(+)
  12. --- a/include/linux/phylink.h
  13. +++ b/include/linux/phylink.h
  14. @@ -76,6 +76,7 @@ struct phylink_config {
  15. bool ovr_an_inband;
  16. void (*get_fixed_state)(struct phylink_config *config,
  17. struct phylink_link_state *state);
  18. + DECLARE_PHY_INTERFACE_MASK(supported_interfaces);
  19. };
  20. /**