1. 03 May, 2016 3 commits
    • Sudip Mukherjee's avatar
      usb: renesas_usbhs: fix signed-unsigned return · 72f595f3
      Sudip Mukherjee authored
      The return type of usbhsp_setup_pipecfg() was u16 but it was returning
      a negative value (-EINVAL). Lets have an additional argument which will
      have pipecfg and just return the status (success or error) as the return
      from the function.
      Signed-off-by: default avatarSudip Mukherjee <sudip.mukherjee@codethink.co.uk>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      72f595f3
    • Alan Stern's avatar
      USB: leave LPM alone if possible when binding/unbinding interface drivers · 6fb650d4
      Alan Stern authored
      When a USB driver is bound to an interface (either through probing or
      by claiming it) or is unbound from an interface, the USB core always
      disables Link Power Management during the transition and then
      re-enables it afterward.  The reason is because the driver might want
      to prevent hub-initiated link power transitions, in which case the HCD
      would have to recalculate the various LPM parameters.  This
      recalculation takes place when LPM is re-enabled and the new
      parameters are sent to the device and its parent hub.
      
      However, if the driver does not want to prevent hub-initiated link
      power transitions then none of this work is necessary.  The parameters
      don't need to be recalculated, and LPM doesn't need to be disabled and
      re-enabled.
      
      It turns out that disabling and enabling LPM can be time-consuming,
      enough so that it interferes with user programs that want to claim and
      release interfaces rapidly via usbfs.  Since the usbfs kernel driver
      doesn't set the disable_hub_initiated_lpm flag, we can speed things up
      and get the user programs to work by leaving LPM alone whenever the
      flag isn't set.
      
      And while we're improving the way disable_hub_initiated_lpm gets used,
      let's also fix its kerneldoc.
      Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
      Tested-by: default avatarMatthew Giassa <matthew@giassa.net>
      CC: Mathias Nyman <mathias.nyman@intel.com>
      CC: <stable@vger.kernel.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      6fb650d4
    • Nobuo Iwata's avatar
      usbip: adding names db to port operation · e66fa8b0
      Nobuo Iwata authored
      Adding names database to port command.
      
      BEFORE) 'unknown' for vendor and product string.
      
      Imported USB devices
      ====================
      Port 00: <Port in Use> at Low Speed(1.5Mbps)
             unknown vendor : unknown product (03f0:0224)
             3-1 -> usbip://10.0.2.15:3240/5-1
                 -> remote bus/dev 005/002
      
      AFTER) Most vendor string will be converted.
      
      Imported USB devices
      ====================
      Port 00: <Port in Use> at Low Speed(1.5Mbps)
             Hewlett-Packard : unknown product (03f0:0224)
             3-1 -> usbip://10.0.2.15:3240/5-1
                 -> remote bus/dev 005/002
      Signed-off-by: default avatarNobuo Iwata <nobuo.iwata@fujixerox.co.jp>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      e66fa8b0
  2. 29 Apr, 2016 4 commits
  3. 28 Apr, 2016 27 commits
  4. 26 Apr, 2016 6 commits