703-net-dpaa2-mac-add-support-for-more-10G-modes.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. From c314138bd045e050432158ab021160de3ba51c5e Mon Sep 17 00:00:00 2001
  2. From: Russell King <[email protected]>
  3. Date: Thu, 30 Jan 2020 22:42:38 +0000
  4. Subject: [PATCH 2/4] net: dpaa2-mac: add support for more 10G modes
  5. Phylink documentation says:
  6. * Note that the PHY may be able to transform from one connection
  7. * technology to another, so, eg, don't clear 1000BaseX just
  8. * because the MAC is unable to BaseX mode. This is more about
  9. * clearing unsupported speeds and duplex settings. The port modes
  10. * should not be cleared; phylink_set_port_modes() will help with this.
  11. So add the missing 10G modes.
  12. Signed-off-by: Russell King <[email protected]>
  13. ---
  14. drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c | 6 ++++++
  15. 1 file changed, 6 insertions(+)
  16. --- a/drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c
  17. +++ b/drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c
  18. @@ -140,6 +140,12 @@ static void dpaa2_mac_validate(struct ph
  19. case PHY_INTERFACE_MODE_10GBASER:
  20. case PHY_INTERFACE_MODE_USXGMII:
  21. phylink_set(mask, 10000baseT_Full);
  22. + phylink_set(mask, 10000baseKR_Full);
  23. + phylink_set(mask, 10000baseCR_Full);
  24. + phylink_set(mask, 10000baseSR_Full);
  25. + phylink_set(mask, 10000baseLR_Full);
  26. + phylink_set(mask, 10000baseLRM_Full);
  27. + phylink_set(mask, 10000baseER_Full);
  28. if (state->interface == PHY_INTERFACE_MODE_10GBASER)
  29. break;
  30. phylink_set(mask, 5000baseT_Full);