1. 28 Feb, 2024 12 commits
  2. 27 Feb, 2024 26 commits
  3. 26 Feb, 2024 2 commits
    • David S. Miller's avatar
      Merge branch 'pcs-xpcs-cleanups' · 25d43425
      David S. Miller authored
      Serge Semin says:
      
      ====================
      net: pcs: xpcs: Cleanups before adding MMIO dev support
      
      As stated in the subject this series is a short prequel before submitting
      the main patches adding the memory-mapped DW XPCS support to the DW XPCS
      and DW *MAC (STMMAC) drivers. Originally it was a part of the bigger
      patchset (see the changelog v2 link below) but was detached to a
      preparation set to shrink down the main series thus simplifying it'
      review.
      
      The patchset' content is straightforward: drop the redundant sentinel
      entry and the header files; return EINVAL errno from the soft-reset method
      and make sure that the interface validation method return EINVAL straight
      away if the requested interface isn't supported by the XPCS device
      instance. All of these changes are required to simplify the changes being
      introduced a bit later in the framework of the memory-mapped DW XPCS
      support patches.
      
      Link: https://lore.kernel.org/netdev/20231205103559.9605-1-fancer.lancer@gmail.com
      Changelog v2:
      - Move the preparation patches to a separate series.
      - Simplify the commit messages (@Russell, @Vladimir).
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      25d43425
    • Serge Semin's avatar
      net: pcs: xpcs: Explicitly return error on caps validation · 361dd531
      Serge Semin authored
      If an unsupported interface is passed to the PCS validation callback there
      is no need in further link-modes calculations since the resultant array
      will be initialized with zeros which will be perceived by the phylink
      subsystem as error anyway (see phylink_validate_mac_and_pcs()). Instead
      let's explicitly return the -EINVAL error to inform the caller about the
      unsupported interface as it's done in the rest of the pcs_validate
      callbacks.
      Signed-off-by: default avatarSerge Semin <fancer.lancer@gmail.com>
      Reviewed-by: default avatarMaxime Chevallier <maxime.chevallier@bootlin.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      361dd531