1. 26 7月, 2023 1 次提交
  2. 23 5月, 2022 1 次提交
  3. 19 10月, 2021 1 次提交
  4. 06 7月, 2020 1 次提交
  5. 09 1月, 2020 1 次提交
    • F
      net: dsa: Get information about stacked DSA protocol · 4d776482
      Florian Fainelli 提交于
      It is possible to stack multiple DSA switches in a way that they are not
      part of the tree (disjoint) but the DSA master of a switch is a DSA
      slave of another. When that happens switch drivers may have to know this
      is the case so as to determine whether their tagging protocol has a
      remove chance of working.
      
      This is useful for specific switch drivers such as b53 where devices
      have been known to be stacked in the wild without the Broadcom tag
      protocol supporting that feature. This allows b53 to continue supporting
      those devices by forcing the disabling of Broadcom tags on the outermost
      switches if necessary.
      
      The get_tag_protocol() function is therefore updated to gain an
      additional enum dsa_tag_protocol argument which denotes the current
      tagging protocol used by the DSA master we are attached to, else
      DSA_TAG_PROTO_NONE for the top of the dsa_switch_tree.
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4d776482
  6. 23 10月, 2019 1 次提交
  7. 21 8月, 2019 1 次提交
    • V
      net: dsa: do not enable or disable non user ports · 74be4bab
      Vivien Didelot 提交于
      The .port_enable and .port_disable operations are currently only
      called for user ports, hence assuming they have a slave device. In
      preparation for using these operations for other port types as well,
      simply guard all implementations against non user ports and return
      directly in such case.
      
      Note that bcm_sf2_sw_suspend() currently calls bcm_sf2_port_disable()
      (and thus b53_disable_port()) against the user and CPU ports, so do
      not guards those functions. They will be called for unused ports in
      the future, but that was expected by those drivers anyway.
      Signed-off-by: NVivien Didelot <vivien.didelot@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      74be4bab
  8. 31 5月, 2019 1 次提交
  9. 25 2月, 2019 1 次提交
  10. 27 4月, 2018 1 次提交
  11. 05 3月, 2018 1 次提交
  12. 16 1月, 2018 2 次提交
  13. 06 1月, 2018 1 次提交
  14. 05 1月, 2018 2 次提交
  15. 27 12月, 2017 1 次提交
  16. 14 12月, 2017 1 次提交
  17. 09 12月, 2017 1 次提交
  18. 03 12月, 2017 1 次提交
  19. 14 11月, 2017 1 次提交
  20. 13 11月, 2017 2 次提交
  21. 11 11月, 2017 1 次提交
  22. 08 11月, 2017 2 次提交
  23. 01 11月, 2017 1 次提交
  24. 26 10月, 2017 1 次提交
    • E
      net: dsa: lan9303: Do not disable switch fabric port 0 at .probe · 3c91b0c1
      Egil Hjelmeland 提交于
      Make the LAN9303 work when lan9303_probe() is called twice.
      
      For some unknown reason the LAN9303 switch fail to forward data when switch
      fabric port 0 TX is disabled during probe. (Write of LAN9303_MAC_TX_CFG_0
      in lan9303_disable_processing_port().)
      
      In that situation the switch fabric seem to receive frames, because the ALR
      is learning addresses. But no frames are transmitted on any of the ports.
      
      In our system lan9303_probe() is called twice, first time
      dsa_register_switch() return -EPROBE_DEFER. As an experiment, modified the
      code to skip writing LAN9303_MAC_TX_CFG_0, port 0 during the first probe.
      Then the switch works as expected.
      
      Resolve the problem by not calling lan9303_disable_processing_port() on
      port 0 during probe. Ports 1 and 2 are still disabled.
      
      Although unsatisfying that the exact failure mechanism is not known,
      the patch should not cause any harm.
      Signed-off-by: NEgil Hjelmeland <privat@egil-hjelmeland.no>
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3c91b0c1
  25. 22 10月, 2017 2 次提交
  26. 18 10月, 2017 1 次提交
  27. 12 10月, 2017 2 次提交
  28. 21 9月, 2017 1 次提交
  29. 10 8月, 2017 1 次提交
  30. 09 8月, 2017 1 次提交
  31. 08 8月, 2017 4 次提交