1. 19 10月, 2021 1 次提交
    • R
      net: phylink: rejig SFP interface selection in ksettings_set() · dc90604b
      Russell King (Oracle) 提交于
      Commit ea269a6f ("net: phylink: Update SFP selected interface on
      advertising changes") added a better solution to selecting the
      interface mode for SFPs using the advertisement mask. This method will
      work for mvneta and mvpp2 when selecting between 2500base-X and
      1000base-X without needing to use the basex helper, or indicate that
      we support both 1000base-X and 2500base-X when in either of these two
      interface modes.
      
      Hence, we need to eliminate the validation prior to selecting the
      interface, otherwise when we clean up mvneta's validation function, we
      will end up locking to 2500base-X as we validate with an interface mode
      of PHY_INERFACE_MODE_2500BASEX.
      
      The supported mask will already have been reduced down to the union of
      support for the SFP and MAC already, so we can be confident that the
      advertisement mask is already appropriately restricted. We only need to
      select the appropriate interface, and then revalidate with the new
      interface mode.
      
      We get rid of the check for pl->sfp_port too, this is meaningless here
      as it doesn't get cleared when a module is removed, so it doesn't
      indicate if a module is present. Just rely on pl->sfp_bus.
      Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      dc90604b
  2. 07 10月, 2021 1 次提交
  3. 04 10月, 2021 1 次提交
  4. 19 9月, 2021 1 次提交
  5. 08 9月, 2021 1 次提交
    • N
      net: phylink: Update SFP selected interface on advertising changes · ea269a6f
      Nathan Rossi 提交于
      Currently changes to the advertising state via ethtool do not cause any
      reselection of the configured interface mode after the SFP is already
      inserted and initially configured.
      
      While it is not typical to change the advertised link modes for an
      interface using an SFP in certain use cases it is desirable. In the case
      of a SFP port that is capable of handling both SFP and SFP+ modules it
      will automatically select between 1G and 10G modes depending on the
      supported mode of the SFP. However if the SFP module is capable of
      working in multiple modes (e.g. a SFP+ DAC that can operate at 1G or
      10G), one end of the cable may be attached to a SFP 1000base-x port thus
      the SFP+ end must be manually configured to the 1000base-x mode in order
      for the link to be established.
      
      This change causes the ethtool setting of advertised mode changes to
      reselect the interface mode so that the link can be established.
      Additionally when a module is inserted the advertising mode is reset to
      match the supported modes of the module.
      Signed-off-by: NNathan Rossi <nathan.rossi@digi.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ea269a6f
  6. 07 9月, 2021 1 次提交
  7. 21 7月, 2021 1 次提交
  8. 20 7月, 2021 1 次提交
  9. 17 6月, 2021 2 次提交
  10. 13 6月, 2021 1 次提交
  11. 12 6月, 2021 2 次提交
  12. 16 3月, 2021 2 次提交
  13. 17 2月, 2021 1 次提交
  14. 18 11月, 2020 1 次提交
  15. 28 10月, 2020 1 次提交
  16. 01 9月, 2020 3 次提交
  17. 24 8月, 2020 1 次提交
  18. 22 7月, 2020 14 次提交
  19. 26 6月, 2020 2 次提交
  20. 24 6月, 2020 2 次提交