1. 12 10月, 2018 2 次提交
    • F
      net: dsa: bcm_sf2: Call setup during switch resume · 54baca09
      Florian Fainelli 提交于
      There is no reason to open code what the switch setup function does, in
      fact, because we just issued a switch reset, we would make all the
      register get their default values, including for instance, having unused
      port be enabled again and wasting power and leading to an inappropriate
      switch core clock being selected.
      
      Fixes: 8cfa9498 ("net: dsa: bcm_sf2: add suspend/resume callbacks")
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      54baca09
    • F
      net: dsa: bcm_sf2: Fix unbind ordering · bf3b452b
      Florian Fainelli 提交于
      The order in which we release resources is unfortunately leading to bus
      errors while dismantling the port. This is because we set
      priv->wol_ports_mask to 0 to tell bcm_sf2_sw_suspend() that it is now
      permissible to clock gate the switch. Later on, when dsa_slave_destroy()
      comes in from dsa_unregister_switch() and calls
      dsa_switch_ops::port_disable, we perform the same dismantling again, and
      this time we hit registers that are clock gated.
      
      Make sure that dsa_unregister_switch() is the first thing that happens,
      which takes care of releasing all user visible resources, then proceed
      with clock gating hardware. We still need to set priv->wol_ports_mask to
      0 to make sure that an enabled port properly gets disabled in case it
      was previously used as part of Wake-on-LAN.
      
      Fixes: d9338023 ("net: dsa: bcm_sf2: Make it a real platform device driver")
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      bf3b452b
  2. 04 8月, 2018 1 次提交
  3. 04 7月, 2018 1 次提交
  4. 17 5月, 2018 1 次提交
  5. 12 5月, 2018 2 次提交
  6. 27 4月, 2018 1 次提交
  7. 15 12月, 2017 1 次提交
  8. 07 12月, 2017 1 次提交
  9. 01 12月, 2017 1 次提交
  10. 24 11月, 2017 1 次提交
  11. 13 11月, 2017 1 次提交
  12. 29 10月, 2017 1 次提交
  13. 27 10月, 2017 1 次提交
  14. 23 10月, 2017 1 次提交
  15. 18 10月, 2017 1 次提交
  16. 13 10月, 2017 1 次提交
    • F
      net: dsa: bcm_sf2: Turn on ACB at the switch level · 32e47ff0
      Florian Fainelli 提交于
      Turn on the out of band Advanced Congestion Buffering (ACB) mechanism at
      the switch level now that we have properly established the queue mapping
      between the switch egress queues and the SYSTEMPORT egress queues. This
      allows the switch to correctly backpressure the host system when one of
      its queue drops below the configured thresholds.
      
      This is also helping achieve so called "lossless" behavior by adapting
      the TX interrupt pacing to the actual speed and capacity of the switch
      port.
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      32e47ff0
  17. 01 10月, 2017 1 次提交
  18. 22 9月, 2017 1 次提交
  19. 20 9月, 2017 5 次提交
  20. 06 9月, 2017 2 次提交
  21. 31 8月, 2017 1 次提交
  22. 30 8月, 2017 1 次提交
  23. 08 8月, 2017 2 次提交
  24. 04 8月, 2017 1 次提交
  25. 02 8月, 2017 4 次提交
  26. 24 6月, 2017 1 次提交
  27. 14 6月, 2017 1 次提交
  28. 18 5月, 2017 2 次提交