1. 31 8月, 2017 1 次提交
  2. 30 8月, 2017 1 次提交
  3. 08 8月, 2017 2 次提交
  4. 04 8月, 2017 1 次提交
  5. 02 8月, 2017 4 次提交
  6. 24 6月, 2017 1 次提交
  7. 14 6月, 2017 1 次提交
  8. 18 5月, 2017 2 次提交
  9. 31 1月, 2017 3 次提交
  10. 23 1月, 2017 4 次提交
  11. 10 1月, 2017 2 次提交
  12. 09 1月, 2017 2 次提交
  13. 25 11月, 2016 2 次提交
  14. 23 10月, 2016 1 次提交
  15. 21 10月, 2016 1 次提交
  16. 18 10月, 2016 1 次提交
  17. 16 9月, 2016 1 次提交
  18. 12 9月, 2016 1 次提交
  19. 27 8月, 2016 3 次提交
    • F
      net: dsa: bcm_sf2: Utilize mask clear/set helpers in bcm_sf2_intr_disable · f01d5988
      Florian Fainelli 提交于
      And while at it, remove the unecessary writing of zeroes to the CPU_MASK_CLEAR
      register since it has no functional use.
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f01d5988
    • F
      net: dsa: bcm_sf2: Remove duplicate code · de0b9d3b
      Florian Fainelli 提交于
      Now that we are using b53_common for most VLAN, FDB and bridge
      operations, delete all the redundant code that we had in bcm_sf2.c to
      keep only the integration specific logic that we have to deal with:
      power management, link management and the external interfaces (RGMII,
      MDIO).
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      de0b9d3b
    • F
      net: dsa: bcm_sf2: Utilize core B53 driver when possible · f458995b
      Florian Fainelli 提交于
      The Broadcom Starfighter2 is almost entirely register compatible with
      B53, yet for historical reasons came up first in the tree and is now
      being updated to utilize b53_common.c to the fullest extent possible. A
      few things need to be adjusted to allow that:
      
      - the switch "core" registers currently operate on a 32-bit address,
        whereas b53 passes a page + reg pair to offset from, so we need to
        convert that, thankfully there is a generic formula to do that
      
      - the link managemenent is not self contained with the B53/CORE register
        set, but instead is in the SWITCH_REG block which is part of the
        integration glue logic, so we keep that entirely custom here because
        this really is part of the existing bcm_sf2 implementation
      
      - there are additional power management constraints on the port's
        memories that make us keep the port_enable/disable callbacks custom
        for now, also, we support tagging whereas b53_common does not support
        that yet
      
      All the VLAN and bridge code is entirely identical though so, avoid
      duplicating it. Other things will be migrated in the future like EEE and
      possibly Wake-on-LAN.
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f458995b
  20. 25 8月, 2016 1 次提交
    • V
      net: dsa: rename switch operations structure · 9d490b4e
      Vivien Didelot 提交于
      Now that the dsa_switch_driver structure contains only function pointers
      as it is supposed to, rename it to the more appropriate dsa_switch_ops,
      uniformly to any other operations structure in the kernel.
      
      No functional changes here, basically just the result of something like:
      s/dsa_switch_driver *drv/dsa_switch_ops *ops/g
      
      However keep the {un,}register_switch_driver functions and their
      dsa_switch_drivers list as is, since they represent the -- likely to be
      deprecated soon -- legacy DSA registration framework.
      
      In the meantime, also fix the following checks from checkpatch.pl to
      make it happy with this patch:
      
          CHECK: Comparison to NULL could be written "!ops"
          #403: FILE: net/dsa/dsa.c:470:
          +	if (ops == NULL) {
      
          CHECK: Comparison to NULL could be written "ds->ops->get_strings"
          #773: FILE: net/dsa/slave.c:697:
          +		if (ds->ops->get_strings != NULL)
      
          CHECK: Comparison to NULL could be written "ds->ops->get_ethtool_stats"
          #824: FILE: net/dsa/slave.c:785:
          +	if (ds->ops->get_ethtool_stats != NULL)
      
          CHECK: Comparison to NULL could be written "ds->ops->get_sset_count"
          #835: FILE: net/dsa/slave.c:798:
          +		if (ds->ops->get_sset_count != NULL)
      
          total: 0 errors, 0 warnings, 4 checks, 784 lines checked
      Signed-off-by: NVivien Didelot <vivien.didelot@savoirfairelinux.com>
      Acked-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9d490b4e
  21. 23 8月, 2016 1 次提交
  22. 20 8月, 2016 3 次提交
  23. 31 7月, 2016 1 次提交