1. 16 May, 2018 36 commits
  2. 15 May, 2018 4 commits
    • David S. Miller's avatar
      Merge branch 'Microsemi-Ocelot-Ethernet-switch-support' · 0b7d9978
      David S. Miller authored
      Alexandre Belloni says:
      
      ====================
      Microsemi Ocelot Ethernet switch support
      
      This series adds initial support for the Microsemi Ethernet switch
      present on Ocelot SoCs.
      
      This only has bridging (and STP) support for now and it uses the
      switchdev framework.
      Coming features are VLAN filtering, link aggregation, IGMP snooping.
      
      The switch can also be connected to an external CPU using PCIe.
      
      Also, support for integration on other SoCs will be submitted.
      
      The ocelot dts changes are here for reference and should probably go
      through the MIPS tree once the bindings are accepted.
      
      Changes in v3:
       - Collected Reviewed-by
       * Switchdev driver:
         - Fixed two issues reported by kbuild
         - Modified ethtool statistics to support different layoiut on different chips and take care of counter overflow
      
      Changes in v2:
       - Dropped Microsemi Ocelot PHY support
       * MIIM driver:
         - Documented interrupts bindings
         - Moved the driver to drivers/net/phy/
         - Removed unused mutex
         - Removed MDIO bus scanning
       * Switchdev driver:
         - Changed compatible to mscc,vsc7514-switch
         - Removed unused header inclusion
         - Factorized MAC table selection in ocelot_mact_select()
         - Disable the port in ocelot_port_stop()
         - Fixed the smatch endianness warnings
         - int to unsinged int where necessary
         - Removed VID handling for the FDB it has been reworked anyway and will be
           submitted with VLAN support
         - Fixed up unused cases in ocelot_port_attr_set()
         - Added a loop to register all the IO register spaces
         - the ports are now in an ethernet-ports node
      
      I've tried switching to NAPI but this is not working well, mainly because the
      only way to disable interrupts is to actually mask them in the interrupt
      controller (it is not possible to tell the switch to stop generating
      interrupts).
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      0b7d9978
    • Alexandre Belloni's avatar
      MAINTAINERS: Add entry for Microsemi Ethernet switches · 0ce60edd
      Alexandre Belloni authored
      Add myself as a maintainer for the Microsemi Ethernet switches.
      Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
      Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      0ce60edd
    • Alexandre Belloni's avatar
      net: mscc: Add initial Ocelot switch support · a556c76a
      Alexandre Belloni authored
      Add a driver for Microsemi Ocelot Ethernet switch support.
      
      This makes two modules:
      mscc_ocelot_common handles all the common features that doesn't depend on
      how the switch is integrated in the SoC. Currently, it handles offloading
      bridging to the hardware. ocelot_io.c handles register accesses. This is
      unfortunately needed because the register layout is packed and then depends
      on the number of ports available on the switch. The register definition
      files are automatically generated.
      
      ocelot_board handles the switch integration on the SoC and on the board.
      
      Frame injection and extraction to/from the CPU port is currently done using
      register accesses which is quite slow. DMA is possible but the port is not
      able to absorb the whole switch bandwidth.
      Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
      Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a556c76a
    • Alexandre Belloni's avatar
      dt-bindings: net: add DT bindings for Microsemi Ocelot Switch · 44b801e0
      Alexandre Belloni authored
      DT bindings for the Ethernet switch found on Microsemi Ocelot platforms.
      Reviewed-by: default avatarRob Herring <robh@kernel.org>
      Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
      Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      44b801e0