1. 02 Oct, 2020 1 commit
    • Alan Stern's avatar
      USB: hub: Clean up use of port initialization schemes and retries · 19502e69
      Alan Stern authored
      The SET_CONFIG_TRIES macro in hub.c is badly named; it controls the
      number of port-initialization retry attempts rather than the number of
      Set-Configuration attempts.  Furthermore, the USE_NEW_SCHEME macro and
      use_new_scheme() function are written in a very confusing manner,
      making it almost impossible to figure out exactly what they do or
      check that they are correct.
      
      This patch renames SET_CONFIG_TRIES to PORT_INIT_TRIES, removes
      USE_NEW_SCHEME entirely, and rewrites use_new_scheme() to be much more
      transparent, with added comments explaining how it works.  The patch
      also pulls the single call site of use_new_scheme() out from the
      Get-Descriptor retry loop (where it returns the same value each time)
      and renames the local variable used to store the result.
      
      The overall effect is a minor cleanup.  However, there is one
      functional change: If the "use_both_schemes" module parameter isn't
      set (by default it is set), the existing code does only two retry
      iterations.  After this patch it will always perform four, regardless
      of the parameter's value.
      Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
      Link: https://lore.kernel.org/r/20200928152050.GA134701@rowland.harvard.eduSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      19502e69
  2. 30 Sep, 2020 1 commit
    • Greg Kroah-Hartman's avatar
      Merge tag 'thunderbolt-for-v5.10-rc1' of... · 59ee364b
      Greg Kroah-Hartman authored
      Merge tag 'thunderbolt-for-v5.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/westeri/thunderbolt into usb-next
      
      Mika writes:
      
      thunderbolt: Changes for v5.10 merge window
      
      This includes following Thunderbolt/USB4 changes for v5.10 merge window:
      
        * A couple of optimizations around Tiger Lake force power logic and
          NHI (Native Host Interface) LC (Link Controller) mailbox command
          processing
      
        * Power management improvements for Software Connection Manager
      
        * Debugfs support
      
        * Allow KUnit tests to be enabled also when Thunderbolt driver is
          configured as module.
      
        * Few minor cleanups and fixes
      
      All these have been in linux-next with no reported issues.
      
      * tag 'thunderbolt-for-v5.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/westeri/thunderbolt: (37 commits)
        thunderbolt: Capitalize comment on top of QUIRK_FORCE_POWER_LINK_CONTROLLER
        thunderbolt: Correct tb_check_quirks() kernel-doc
        thunderbolt: Log correct zeroX entries in decode_error()
        thunderbolt: Handle ERR_LOCK notification
        thunderbolt: Use "if USB4" instead of "depends on" in Kconfig
        thunderbolt: Allow KUnit tests to be built also when CONFIG_USB4=m
        thunderbolt: Only stop control channel when entering freeze
        thunderbolt: debugfs: Fix uninitialized return in counters_write()
        thunderbolt: Add debugfs interface
        thunderbolt: No need to warn in TB_CFG_ERROR_INVALID_CONFIG_SPACE
        thunderbolt: Introduce tb_switch_is_tiger_lake()
        thunderbolt: Introduce tb_switch_is_ice_lake()
        thunderbolt: Check for Intel vendor ID when identifying controller
        thunderbolt: Introduce tb_port_is_nhi()
        thunderbolt: Introduce tb_switch_next_cap()
        thunderbolt: Introduce tb_port_next_cap()
        thunderbolt: Move struct tb_cap_any to tb_regs.h
        thunderbolt: Add runtime PM for Software CM
        thunderbolt: Create device links from ACPI description
        ACPI: Export acpi_get_first_physical_node() to modules
        ...
      59ee364b
  3. 25 Sep, 2020 29 commits
  4. 22 Sep, 2020 5 commits
  5. 21 Sep, 2020 4 commits