1. 01 May, 2019 8 commits
  2. 30 Apr, 2019 2 commits
  3. 28 Apr, 2019 26 commits
  4. 27 Apr, 2019 4 commits
    • David S. Miller's avatar
      Merge branch 'net-ethernet-ti-clean-up-and-optimizations' · 7cb523d4
      David S. Miller authored
      Grygorii Strashko says:
      
      ====================
      net: ethernet: ti: clean up and optimizations
      
      This is a preparation series for introducing new switchbase TI CPSW driver which
      was originally introduced [1][2] by Ilias Apalodimas <ilias.apalodimas@linaro.org>
      and also discussed in private mails and at Netdev x13 confernce.
      
      Following discussions and suggestions (mostly by Andrew and Ivan) we going
      to introduce the new driver which is operating in dual-emac mode
      by default, thus working as 2 individual network interfaces.
      When both interfaces joined the bridge - CPSW driver will enter a switch
      mode and discard dual_mac configuration. The CPSW will be switched back
      to dual_mac mode if any port leaves the bridge. All configuration is going to be
      implemented via switchdev API.
      
      Hence overall change is already very big I'm sending prerequisite patches which
      are mostly minor fixes/clean ups and code refactoring to separate common parts
      to be reused by both drivers.
      Probably the most serious change from functional point of view is Patch 11.
      
      These patches were NFS boot tetested on TI AM335x/AM437x/AM5xx boards.
      
      These patches can be found at:
       git@git.ti.com:~gragst/ti-linux-kernel/gragsts-ti-linux-kernel.git
       branch: lkml-5.1-cpsw-clean-up-v2
      
      changes in v2:
      - added new patch 16 to get rid of force type conversation
      - other chages metioned in patches
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      7cb523d4
    • Grygorii Strashko's avatar
      net: ethernet: ti: cpsw: move ethtool func in separate file · c24eef28
      Grygorii Strashko authored
      As a preparatory patch to add support for a switchdev based cpsw driver,
      move common ethtool functions to separate cpsw-ethtool.c file so that they
      can be used across both drivers. It will simplify CPSW driver code
      maintenance also.
      Signed-off-by: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
      Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c24eef28
    • Grygorii Strashko's avatar
      net: ethernet: ti: cpsw: switch to use mac sl api · cfc08345
      Grygorii Strashko authored
      Switch CPSW driver to use the new MAC SL API.
      Signed-off-by: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      cfc08345
    • Grygorii Strashko's avatar
      net: ethernet: ti: cpsw: introduce mac sl module api · a71a18f2
      Grygorii Strashko authored
      The MAC SL submodule has a lot of common functions between many of TI SoCs
      AM335x/AM437x/DRA7(AM57xx), Keystone 2 66AK2HK/E/L/G and K3 AM654, but
      there are also differences especially in registers offsets and sets of
      supported functions.
      
      This patch introduces the MAC SL submodule API which is intended to provide
      a common way to access the MAC SL submodule and hide HW integrations
      details.
      Signed-off-by: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
      Signed-off-by: default avatarSekhar Nori <nsekhar@ti.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a71a18f2