1. 18 1月, 2019 1 次提交
  2. 17 1月, 2019 1 次提交
  3. 17 12月, 2018 1 次提交
  4. 07 12月, 2018 1 次提交
  5. 13 9月, 2018 1 次提交
  6. 19 7月, 2018 1 次提交
  7. 12 5月, 2018 2 次提交
    • F
      net: dsa: Plug in PHYLINK support · aab9c406
      Florian Fainelli 提交于
      Add support for PHYLINK within the DSA subsystem in order to support more
      complex devices such as pluggable (SFP) and non-pluggable (SFF) modules, 10G
      PHYs, and traditional PHYs. Using PHYLINK allows us to drop some amount of
      complexity we had while probing fixed and non-fixed PHYs using Device Tree.
      
      Because PHYLINK separates the Ethernet MAC/port configuration into different
      stages, we let switch drivers implement those, and for now, we maintain
      functionality by calling dsa_slave_adjust_link() during
      phylink_mac_link_{up,down} which provides semantically equivalent steps.
      
      Drivers willing to take advantage of PHYLINK should implement the phylink_mac_*
      operations that DSA wraps.
      
      We cannot quite remove the adjust_link() callback just yet, because a number of
      drivers rely on that for configuring their "CPU" and "DSA" ports, this is done
      dsa_port_setup_phy_of() and dsa_port_fixed_link_register_of() still.
      
      Drivers that utilize fixed links for user-facing ports (e.g: bcm_sf2) will need
      to implement phylink_mac_ops from now on to preserve functionality, since PHYLINK
      *does not* create a phy_device instance for fixed links.
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      aab9c406
    • F
      net: dsa: Add PHYLINK switch operations · 11d8f3dd
      Florian Fainelli 提交于
      In preparation for adding support for PHYLINK within DSA, define a number of
      operations that we will need and that switch drivers can start implementing.
      Proper integration with PHYLINK will follow in subsequent patches.
      
      We start selecting PHYLINK (which implies PHYLIB) in net/dsa/Kconfig
      such that drivers can be guaranteed that this dependency is properly
      taken care of and can start referencing PHYLINK helper functions without
      requiring stubs or anything.
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      11d8f3dd
  8. 27 4月, 2018 2 次提交
  9. 05 3月, 2018 1 次提交
  10. 15 2月, 2018 2 次提交
  11. 08 12月, 2017 1 次提交
  12. 06 12月, 2017 1 次提交
    • V
      net: dsa: return per-port upstream port · 07073c79
      Vivien Didelot 提交于
      The current dsa_upstream_port() helper still assumes a unique CPU port
      in the whole switch fabric. This is becoming wrong, as every port in the
      fabric has its dedicated CPU port, thus every port has an upstream port.
      
      Add a port argument to the dsa_upstream_port() helper and fetch its CPU
      port instead of the deprecated unique fabric CPU port. A CPU or unused
      port has no dedicated CPU port, so return itself in this case.
      
      At the same time, change the return value from u8 to unsigned int since
      there is no need to limit the size here.
      Signed-off-by: NVivien Didelot <vivien.didelot@savoirfairelinux.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      07073c79
  13. 03 12月, 2017 3 次提交
  14. 13 11月, 2017 2 次提交
  15. 09 11月, 2017 2 次提交
  16. 05 11月, 2017 2 次提交
  17. 27 10月, 2017 7 次提交
  18. 18 10月, 2017 2 次提交
  19. 15 10月, 2017 1 次提交
  20. 13 10月, 2017 2 次提交
  21. 01 10月, 2017 3 次提交
  22. 20 9月, 2017 1 次提交