1. 08 1月, 2009 3 次提交
  2. 24 9月, 2008 1 次提交
  3. 14 8月, 2008 1 次提交
    • K
      USB Storage Sierra: TRU-Install feature update · 32fe5e39
      Kevin Lloyd 提交于
      This patch upgrades the support for the Sierra Wireless TRU-Install
      feature (i.e. zeroCD) to allow for future support of Linux enabled
      TRU-Install devices.
      
      By default all devices that do not have a Linux enabled TRU-Install
      device (i.e. the device does not have a Linux package on the virtual CD
      partition) will be switched into "modem mode." Devices that do contain a
      Linux package in the TRU-Install virtual CD will be allowed to enumerate
      as a CD-Rom so that either (a) a user can install the packaged software
      or (b) a user-space application (e.g. udev) can switch it to modem mode.
      
      This patch does allow for manual override by adding a usb-storage module
      parameter 'swi_tru_install' which can force the modem into either mode
      regardless of what packages it contains.
      Signed-off-by: NKevin Lloyd <klloyd@sierrawireless.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      32fe5e39
  4. 22 7月, 2008 4 次提交
    • A
      USB: remove CVS keywords · ea05af61
      Adrian Bunk 提交于
      This patch removes CVS keywords that weren't updated for a long time
      from comments.
      Signed-off-by: NAdrian Bunk <bunk@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      ea05af61
    • A
      usb-storage: implement "soft" unbinding · 543f7810
      Alan Stern 提交于
      This patch (as1092) implements "soft" unbinding for usb-storage.  When
      the disconnect routine is called, all commands and reset delays are
      allowed to complete normally until after scsi_remove_host() returns.
      This means that the commands needed for an orderly shutdown will be
      sent through to the device.
      
      Unlike before, the driver will now execute every command that it
      accepts.  Hence there's no need for special code to catch unexecuted
      commands and fail them.
      
      The new sequence of events when disconnect runs goes as follows:
      
      	If the device is truly unplugged, set the DISCONNECTING
      	flag so we won't try to access it any more.
      
      	If the SCSI-scanning thread hasn't started up yet, prevent
      	it from doing anything by setting the new DONT_SCAN flag.
      	Then wake it up and wait for it to terminate.
      
      	Remove the SCSI host.  This unbinds the upper-level drivers,
      	doing an orderly shutdown.  Commands sent to quiesce the
      	device will be transmitted normally, unless the device is
      	unplugged.
      
      	Set the DISCONNECTING flag so that we won't accept any new
      	commands that might get submitted (there aren't supposed to be
      	any) and we won't try to access the device for resets.
      
      	Tell the control thread to exit by waking it up with no
      	pending command, and wait for it to terminate.
      
      	Go on to do all the other normal stuff: releasing resources,
      	freeing memory, and so on.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      543f7810
    • A
      usb-storage: change remaining semaphore to completion · 7119e3c3
      Alan Stern 提交于
      This patch (as1090) converts the one remaining semaphore in
      usb-storage into a completion.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Cc: Matthew Dharm <mdharm-usb@one-eyed-alien.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      7119e3c3
    • A
      usb-storage: separate dynamic flags from fixed flags · 7e4d6c38
      Alan Stern 提交于
      This patch (as1089) separates out the dynamic atomic bitflags and the
      static bitfields in usb-storage.  Until now the two sorts of flags
      have been sharing the same word; this has always been awkward.
      
      To help prevent possible confusion, the two new fields each have a
      different name from the original.  us->fflags contains the fixed
      bitfields (mostly taken from the USB ID table in unusual_devs.h), and
      us->dflags contains the dynamic atomic bitflags (used with set_bit,
      test_bit, and so on).
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Cc: Matthew Dharm <mdharm-usb@one-eyed-alien.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      7e4d6c38
  5. 03 5月, 2008 1 次提交
  6. 25 4月, 2008 2 次提交
  7. 19 10月, 2007 1 次提交
  8. 13 10月, 2007 1 次提交
  9. 13 9月, 2007 1 次提交
  10. 23 8月, 2007 1 次提交
    • A
      usb-storage: fix bugs in the disconnect pathway · 2f67cd5b
      Alan Stern 提交于
      This patch (as961) fixes a couple of bugs in the disconnect pathway of
      usb-storage.
      
      The first problem, which apparently has been around for a while
      although nobody noticed it, shows up when an aborted command is still
      pending when a disconnect occurs.  The SCSI error-handler will
      continue to wait in command_abort() until the us->notify completion is
      signalled.  Thus quiesce_and_remove_host() needs to signal it.
      
      The second problem was introduced recently along with autosuspend
      support.  Since usb_stor_scan_thread() now calls
      usb_autopm_put_interface() before exiting, we can't simply leave the
      scanning thread running after a disconnect; we must wait until the
      thread exits.  This is solved by adding a new struct completion to the
      private data structure.  Fortuitously, it allows the removal of the
      rather clunky mechanism used in the past to insure that all threads
      have finished before the module is unloaded.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      CC: Matthew Dharm <mdharm-usb@one-eyed-alien.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      2f67cd5b
  11. 18 7月, 2007 1 次提交
    • R
      Freezer: make kernel threads nonfreezable by default · 83144186
      Rafael J. Wysocki 提交于
      Currently, the freezer treats all tasks as freezable, except for the kernel
      threads that explicitly set the PF_NOFREEZE flag for themselves.  This
      approach is problematic, since it requires every kernel thread to either
      set PF_NOFREEZE explicitly, or call try_to_freeze(), even if it doesn't
      care for the freezing of tasks at all.
      
      It seems better to only require the kernel threads that want to or need to
      be frozen to use some freezer-related code and to remove any
      freezer-related code from the other (nonfreezable) kernel threads, which is
      done in this patch.
      
      The patch causes all kernel threads to be nonfreezable by default (ie.  to
      have PF_NOFREEZE set by default) and introduces the set_freezable()
      function that should be called by the freezable kernel threads in order to
      unset PF_NOFREEZE.  It also makes all of the currently freezable kernel
      threads call set_freezable(), so it shouldn't cause any (intentional)
      change of behaviour to appear.  Additionally, it updates documentation to
      describe the freezing of tasks more accurately.
      
      [akpm@linux-foundation.org: build fixes]
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      Acked-by: NNigel Cunningham <nigel@nigel.suspend2.net>
      Cc: Pavel Machek <pavel@ucw.cz>
      Cc: Oleg Nesterov <oleg@tv-sign.ru>
      Cc: Gautham R Shenoy <ego@in.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      83144186
  12. 13 7月, 2007 5 次提交
    • A
      usb-storage: implement autosuspend · 8dfe4b14
      Alan Stern 提交于
      This patch (as930) implements autosuspend for usb-storage.  It is
      adapted from a patch by Oliver Neukum.  Autosuspend is allowed except
      during LUN scanning, resets, and command execution.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      8dfe4b14
    • A
      USB: usb-storage: use kthread_stop() for the control thread · ed76cacb
      Alan Stern 提交于
      This patch (as923) makes usb-storage's control thread use
      kthread_should_stop()/kthread_stop().  The scanning thread can't be
      similarly converted until the core kthread implementation allows
      threads to call do_exit().
      
      The advantage of this change is that we can now be certain the control
      thread has terminated before storage_disconnect() returns.  This will
      simplify the locking requirements when autosuspend support is added.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NMatthew Dharm <mdharm-usb@one-eyed-alien.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      ed76cacb
    • A
      USB: add reset_resume method · f07600cf
      Alan Stern 提交于
      This patch (as918) introduces a new USB driver method: reset_resume.
      It is called when a device needs to be reset as part of a resume
      procedure (whether because of a device quirk or because of the
      USB-Persist facility), thereby taking over a role formerly assigned to
      the post_reset method.  As a consequence, post_reset no longer needs
      an argument indicating whether it is being called as part of a
      reset-resume.  This separation of functions makes the code clearer.
      
      In addition, the pre_reset and post_reset method return types are
      changed; they now must return an error code.  The return value is
      unused at present, but at some later time we may unbind drivers and
      re-probe if they encounter an error during reset handling.
      
      The existing pre_reset and post_reset methods in the usbhid,
      usb-storage, and hub drivers are updated to match the new
      requirements.  For usbhid the post_reset routine is also used for
      reset_resume (duplicate method pointers); for the other drivers a new
      reset_resume routine is added.  The change to hub.c looks bigger than
      it really is, because mark_children_for_reset_resume() gets moved down
      next to the new hub_reset_resume() routine.
      
      A minor change to usb-storage makes the usb_stor_report_bus_reset()
      routine acquire the host lock instead of requiring the caller to hold
      it already.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      CC: Matthew Dharm <mdharm-usb@one-eyed-alien.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      
      f07600cf
    • A
      USB: add USB-Persist facility · 0458d5b4
      Alan Stern 提交于
      This patch (as886) adds the controversial USB-persist facility,
      allowing USB devices to persist across a power loss during system
      suspend.
      
      The facility is controlled by a new Kconfig option (with appropriate
      warnings about the potential dangers); when the option is off the
      behavior will remain the same as it is now.  But when the option is
      on, people will be able to use suspend-to-disk and keep their USB
      filesystems intact -- something particularly valuable for small
      machines where the root filesystem is on a USB device!
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      0458d5b4
    • A
      USB: remove references to dev.power.power_state · f3fd77cd
      Alan Stern 提交于
      This revised patch (as891b) removes two unnecessary references to
      intf->dev.power.power_state from usb-storage, and replaces a reference
      to root_hub->dev.power.power_state with a check of hcd->state.  This
      is in preparation for the removal of dev.power.power_state, which is
      already deprecated.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      f3fd77cd
  13. 05 3月, 2007 1 次提交
  14. 08 2月, 2007 1 次提交
  15. 08 12月, 2006 1 次提交
  16. 02 12月, 2006 1 次提交
  17. 28 9月, 2006 1 次提交
  18. 03 8月, 2006 1 次提交
  19. 13 7月, 2006 2 次提交
  20. 01 7月, 2006 1 次提交
  21. 22 6月, 2006 2 次提交
  22. 21 3月, 2006 1 次提交
  23. 05 1月, 2006 6 次提交