1. 24 Jun, 2022 3 commits
    • Jakub Kicinski's avatar
      Merge branch 'net-dsa-mv88e6xxx-get-rid-of-speed_max' · 0aeaaa8d
      Jakub Kicinski authored
      Russell King says:
      
      ====================
      net: dsa: mv88e6xxx: get rid of SPEED_MAX
      
      This series does two things:
      
      1. it gets rid of mv88e6065_port_set_speed_duplex() which is completely
         unused (do we support this device? I couldn't find it in the tables
         in chip.c) This has a max speed of 200Mbps which we don't support.
      
      2. get rid of the SPEED_MAX constant, which is used to configure a DSA
         or CPU port to their maximum speed during initialisation. We no
         longer need this as we can derive the maximum port speed from the
         mac_capabilities instead.
      
      The reason for making this change is in preparation for phylink to be
      used by DSA for CPU ports. This omission has come back to bite us with
      the conversion of DSA drivers to phylink_pcs, since phylink_pcs won't
      get used unless phylink is being used. Particularly with this driver,
      it is very common for DT descriptions to omit the fixed-link details
      which means "use maximum speed".
      
      It will eventually be necessary to hoist the selection of "max speed"
      into the DSA layer (trivial) and also have a way for the DSA driver
      to tell the DSA layer which interface it should be using for these
      ports.
      ====================
      
      Link: https://lore.kernel.org/r/YrGQBssOvQBZiDS4@shell.armlinux.org.ukSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      0aeaaa8d
    • Russell King's avatar
      net: dsa: mv88e6xxx: get rid of SPEED_MAX setting · 3c783b83
      Russell King authored
      Currently, all the device specific speed setting functions convert
      SPEED_MAX to the actual speed of the port. Rather than having each
      of the mv88e6xxx chip specifics handling SPEED_MAX, derive it from
      the mac_capabilities instead.
      
      This is only needed for CPU and DSA ports, so move the logic up into
      mv88e6xxx_setup_port() - which allows us to kill off all users of
      SPEED_MAX throughout the driver.
      Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      3c783b83
    • Russell King (Oracle)'s avatar
      net: dsa: mv88e6xxx: remove mv88e6065 dead code · aa64bc19
      Russell King (Oracle) authored
      Remove mv88e6065_port_set_speed_duplex() - this is never called, and
      thus is completely redundant.
      Signed-off-by: default avatarRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      aa64bc19
  2. 23 Jun, 2022 22 commits
  3. 22 Jun, 2022 15 commits