1. 02 12月, 2015 2 次提交
    • L
      usb: core: lpm: add sysfs node for usb3 lpm permit · 513072d9
      Lu Baolu 提交于
      USB3 LPM is default on in Linux kernel if both xHCI host controller
      and the USB devices declare to be LPM-capable. Unfortunately, some
      devices are known to work well with LPM disabled, but to be broken
      if LPM is enabled, although it declares the LPM capability.  Users
      won't be able to use this kind of devices, until someone puts them
      in the kernel blacklist and gets the kernel upgraded.
      
      This patch adds a sysfs node to permit or forbit USB3 LPM U1 or U2
      entry for a port. The settings apply to both before and after device
      enumeration. Supported values are "0" - neither u1 nor u2 permitted,
      "u1" - only u1 is permitted, "u2" - only u2 is permitted, "u1_u2" -
      both u1 and u2 are permitted. With this interface, users can use an
      LPM-unfriendly USB device on a released Linux kernel.
      Signed-off-by: NLu Baolu <baolu.lu@linux.intel.com>
      Signed-off-by: NZhuang Jin Can <jin.can.zhuang@intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      513072d9
    • L
      usb: core: lpm: fix usb3_hardware_lpm sysfs node · bf5ce5bf
      Lu Baolu 提交于
      Commit 655fe4ef ("usbcore: add sysfs support to xHCI usb3
      hardware LPM") introduced usb3_hardware_lpm sysfs node. This
      doesn't show the correct status of USB3 U1 and U2 LPM status.
      
      This patch fixes this by replacing usb3_hardware_lpm with two
      nodes, usb3_hardware_lpm_u1 (for U1) and usb3_hardware_lpm_u2
      (for U2), and recording the U1/U2 LPM status in right places.
      
      This patch should be back-ported to kernels as old as 4.3,
      that contains Commit 655fe4ef ("usbcore: add sysfs support
      to xHCI usb3 hardware LPM").
      
      Cc: stable@vger.kernel.org
      Signed-off-by: NLu Baolu <baolu.lu@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      bf5ce5bf
  2. 23 9月, 2015 1 次提交
  3. 19 8月, 2015 1 次提交
  4. 15 8月, 2015 1 次提交
  5. 04 8月, 2015 1 次提交
  6. 23 7月, 2015 1 次提交
  7. 04 12月, 2014 1 次提交
  8. 11 1月, 2014 1 次提交
  9. 31 8月, 2013 1 次提交
  10. 15 8月, 2013 1 次提交
  11. 13 8月, 2013 1 次提交
  12. 06 6月, 2013 1 次提交
  13. 29 3月, 2013 1 次提交
  14. 21 1月, 2013 1 次提交
  15. 25 9月, 2012 1 次提交
  16. 11 9月, 2012 2 次提交
  17. 11 7月, 2012 1 次提交
  18. 15 5月, 2012 1 次提交
  19. 16 4月, 2012 1 次提交
  20. 10 2月, 2012 1 次提交
  21. 16 11月, 2011 1 次提交
  22. 27 9月, 2011 1 次提交
  23. 21 5月, 2010 1 次提交
  24. 19 3月, 2010 1 次提交
  25. 03 3月, 2010 1 次提交
  26. 24 12月, 2009 1 次提交
  27. 12 12月, 2009 1 次提交
  28. 18 10月, 2008 1 次提交
  29. 17 9月, 2008 1 次提交
  30. 02 2月, 2008 1 次提交
  31. 13 7月, 2007 1 次提交
    • A
      USB: add power/persist device attribute · b41a60ec
      Alan Stern 提交于
      This patch (as920) adds an extra level of protection to the
      USB-Persist facility.  Now it will apply by default only to hubs; for
      all other devices the user must enable it explicitly by setting the
      power/persist device attribute.
      
      The disconnect_all_children() routine in hub.c has been removed and
      its code placed inline.  This is the way it was originally as part of
      hub_pre_reset(); the revised usage in hub_reset_resume() is
      sufficiently different that the code can no longer be shared.
      Likewise, mark_children_for_reset() is now inline as part of
      hub_reset_resume().  The end result looks much cleaner than before.
      
      The sysfs interface is updated to add the new attribute file, and
      there are corresponding documentation updates.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      b41a60ec
  32. 28 4月, 2007 2 次提交