1. 21 5月, 2010 1 次提交
  2. 03 3月, 2010 3 次提交
    • A
      USB: change handling of negative autosuspend delays · 5899f1e0
      Alan Stern 提交于
      This patch (as1327) changes the way negative autosuspend delays
      prevent device from autosuspending.  The current code checks for
      negative values explicitly in the autosuspend_check() routine.  The
      updated code keeps things from getting that far by using
      usb_autoresume_device() to increment the usage counter when a negative
      delay is set, and by using usb_autosuspend_device() to decrement the
      usage counter when a non-negative delay is set.
      
      This complicates the set_autosuspend() attribute method code slightly,
      but it will reduce the overall power management overhead.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      5899f1e0
    • A
      USB: implement usb_enable_autosuspend · 088f7fec
      Alan Stern 提交于
      This patch (as1326) adds usb_enable_autosuspend() and
      usb_disable_autosuspend() routines for use by drivers.  If a driver
      knows that its device can handle suspends and resumes correctly, it
      can enable autosuspend all by itself.  This is equivalent to the user
      writing "auto" to the device's power/level attribute.
      
      The implementation differs slightly from what it used to be.  Now
      autosuspend is disabled simply by doing usb_autoresume_device() (to
      increment the usage counter) and enabled by doing
      usb_autosuspend_device() (to decrement the usage counter).
      
      The set_level() attribute method is updated to use the new routines,
      and the USB Power-Management documentation is updated.
      
      The patch adds a usb_enable_autosuspend() call to the hub driver's
      probe routine, allowing the special-case code for hubs in quirks.c to
      be removed.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      088f7fec
    • O
      USB: storage: Never reset devices that will morph to an old mode · 5d398779
      Oliver Neukum 提交于
      Some devices must be switched to a new mode to fully use them.
      A reset would make them revert to the old mode. Therefore a reset
      must not be used for error handling with such devices.
      Signed-off-by: NOliver Neukum <oliver@neukum.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      5d398779
  3. 25 3月, 2009 1 次提交
  4. 17 6月, 2008 1 次提交
  5. 30 5月, 2008 1 次提交
  6. 25 4月, 2008 2 次提交
    • A
      USB: enable USB-PERSIST by default · 9214d1d8
      Alan Stern 提交于
      This patch (as1052) enables USB-PERSIST for all devices by default.
      The user won't have to remember to enable it explicitly for devices
      containing mounted filesystems.
      
      Eventually userspace tools like hal may be able to set the persist
      attribute automatically when a filesystem is mounted on a USB device.
      When that time comes this patch can be reverted, if people think it
      matters.
      
      This approach has the advantage of giving the user the ability to turn
      off USB-PERSIST for devices with mounted filesystems, rather than
      making the kernel always assume it should be on.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      9214d1d8
    • A
      USB: remove CONFIG_USB_PERSIST setting · feccc30d
      Alan Stern 提交于
      This patch (as1047) removes the USB_PERSIST Kconfig option, enabling
      it permanently.  It also prevents the power/persist attribute from
      being created for hub devices; there's no point in having it since
      USB-PERSIST is always turned on for hubs.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      feccc30d
  7. 25 3月, 2008 1 次提交
  8. 05 3月, 2008 1 次提交
  9. 22 2月, 2008 2 次提交
  10. 13 10月, 2007 1 次提交
    • A
      USB: remove USB_QUIRK_NO_AUTOSUSPEND · a691efa9
      Alan Stern 提交于
      This patch (as995) cleans up the remains of the former NO_AUTOSUSPEND
      quirk.  Since autosuspend is disabled by default, we will let
      userspace worry about which devices can safely be suspended.  Thus the
      lengthy series of quirk entries is no longer needed, and neither is
      the quirk ID.  I suppose someone might eventually run across a hub
      that can't be suspended; let's ignore the possibility for now.
      
      The patch also cleans up the hasty way in which autosuspend gets
      disabled.  Setting udev->autosuspend_delay to -1 wasn't quite right,
      because the value is always supposed to be a multiple of HZ.  It's
      better to leave the delay value alone and set autosuspend_disabled,
      which is what the quirk routine used to do.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Cc: stable <stable@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      a691efa9
  11. 13 9月, 2007 1 次提交
  12. 11 9月, 2007 6 次提交
  13. 23 8月, 2007 5 次提交
  14. 31 7月, 2007 4 次提交
  15. 13 7月, 2007 4 次提交
  16. 28 4月, 2007 1 次提交
  17. 27 3月, 2007 1 次提交
  18. 24 2月, 2007 2 次提交