1. 25 4月, 2008 4 次提交
    • 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
    • A
      USB: make USB-PERSIST work after every system sleep · 5e6effae
      Alan Stern 提交于
      This patch (as1046) makes USB-PERSIST work more in accordance with
      the documentation.  Currently it takes effect only in cases where the
      root hub has lost power or been reset, but it is supposed to operate
      whenever a power session was dropped during a system sleep.
      
      A new hub_restart() routine carries out the duties required during a
      reset or a reset-resume.  It checks to see whether occupied ports are
      still enabled, and if they aren't then it clears the enable-change and
      connect-change features (to prevent interference by khubd) and sets
      the child device's reset_resume flag.  It also checks ports that are
      supposed to be unoccupied to verify that the firmware hasn't left the
      port in an enabled state.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      5e6effae
    • A
      USB: reorganize code in hub.c · 3eb14915
      Alan Stern 提交于
      This patch (as1045) reorganizes some code in the hub driver.
      hub_port_status() is moved earlier in the file, and a new hub_stop()
      routine is created to do the work currently in hub_preset() (i.e.,
      disconnect all child devices and quiesce the hub).
      
      There are no functional changes.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      3eb14915
    • A
      USB: EHCI: carry out port handover during each root-hub resume · 3bb1af52
      Alan Stern 提交于
      This patch (as1044) causes EHCI port handover for non-high-speed
      devices to occur during every root-hub resume, not just in cases where
      the controller lost power or was reset.  This is necessary because:
      
      	When some machines go into suspend, they remove power from
      	on-board USB devices while retaining suspend current for USB
      	controllers.
      
      	The user might well unplug a USB device while the system is
      	suspended and then plug it back in before resuming.
      
      A corresponding change is made to the core resume routine; now
      high-speed root hubs will always be resumed when the system wakes up,
      even if they were suspended before the system went to sleep.  If this
      weren't done then EHCI port handover wouldn't work, since it is called
      when the EHCI root hub is resumed.
      
      Finally, a comment is added to the hub driver explaining the khubd has
      to be freezable; if it weren't frozen then it could interfere with
      port handover.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      3bb1af52
  2. 19 4月, 2008 1 次提交
  3. 25 3月, 2008 1 次提交
  4. 05 3月, 2008 3 次提交
  5. 04 3月, 2008 1 次提交
  6. 22 2月, 2008 2 次提交
  7. 02 2月, 2008 23 次提交
  8. 25 1月, 2008 1 次提交
  9. 18 12月, 2007 2 次提交
  10. 29 11月, 2007 2 次提交
    • A
      USB: uevent environment key fix · 4a9bee82
      Alan Stern 提交于
      This patch (as1010) was written by both Kay Sievers and me.  It solves
      the problem of duplicated keys in USB uevent structures by refactoring
      the uevent subroutines, taking advantage of the way the hotplug core
      calls uevent handlers for the device's bus and for the device's type.
      Keys needed for both USB-device and USB-interface events are added in
      usb_uevent(), which is the bus handler.  Keys appropriate only for
      USB-device or USB-interface events are added in usb_dev_uevent() or
      usb_if_uevent() respectively, the type handlers.
      
      In addition, unnecessary tests for NULL pointers are removed as are
      duplicated debugging log statements.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Cc: Kay Sievers <kay.sievers@vrfy.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      4a9bee82
    • A
      USB: keep track of whether interface sysfs files exist · 7e61559f
      Alan Stern 提交于
      This patch (as1009) solves the problem of multiple registrations for
      USB sysfs files in a more satisfying way than the existing code.  It
      simply adds a flag to keep track of whether or not the files have been
      created; that way the files can be created or removed as needed.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      7e61559f