1. 05 1月, 2006 2 次提交
  2. 29 10月, 2005 5 次提交
    • A
      [PATCH] PATCH: usb-storage: use kthread API · 3f13e66e
      Alan Stern 提交于
      This patch is originally from Alan Stern (as569).  It has been rediffed
      against a current tree.
      
      This patch converts usb-storage to use the kthread API for creating its
      control and scanning threads.  The new code doesn't use kthread_stop
      because the threads need (or will need in the future) to exit
      asynchronously.
      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>
      3f13e66e
    • A
      [PATCH] PATCH: usb-storage: implement minimal PM · ce2596df
      Alan Stern 提交于
      This patch from Alan Stern started as as568.  It has been rediffed against
      a current tree.
      
      This patch adds minimal suspend/resume support to usb-storage.  Just enough
      for it to qualify as PM-aware.
      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>
      ce2596df
    • A
      [PATCH] PATCH: usb-storage: allocate separate sense buffer · bbafa466
      Alan Stern 提交于
      This patch is from Alan Stern (as560).  It has been rediffed against a
      current tree.
      
      This patch allocates a separate buffer for usb-storage to use when
      auto-sensing.  Up to now we have been using the sense buffer embedded in a
      scsi_cmnd struct, which is dangerous on hosts that (a) don't do
      cache-coherent DMA or (b) have DMA alignment restrictions.
      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>
      bbafa466
    • A
      [PATCH] PATCH: usb-storage: move GetMaxLUN later in time · b876aef7
      Alan Stern 提交于
      This patch is originally from Alan Stern (as557).  It has been re-diffed
      against a current tree, and I also corrected a minor merging error.
      
      Some time ago we introduced a delay before device scanning, because many
      devices do not like to receive SCSI commands right after enumeration.
      Now it turns out there's a device that doesn't like to receive
      Get-Max-LUN right after enumeration either.  Accordingly this patch
      delays the Get-Max-LUN request until the beginning of the scanning
      procedure.  This fixes Bugzilla entry #5010.
      
      Three things are worth noting.  First, I removed the locking code from
      usb_stor_acquire_resources.  It's not needed, because the locking is to
      protect against disconnect events and acquire_resources is only called
      during probe (so the disconnect routine can't be called).  Second, I
      initialized to 0 the buffer used for the Get-Max-LUN response.  It's not
      really necessary, but it will prevent random values from showing up in
      the debugging log when the request fails.  Third, I added a test against
      the SINGLE_LUN flag.  This will allow us to use the flag to indicate
      Bulk-only devices that can't handle Get-Max-LUN.
      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>
      b876aef7
    • D
      [PATCH] usb-storage: Some minor shuttle_usbat cleanups · b7b1e655
      Daniel Drake 提交于
      A while ago, Matthew Dharm wrote:
      > Looks good.  Tho, I would like to see a future patch to do two things:
      > 	1) Change comments from C++ style to C-style
      > 	2) Make sure we're naming consistently everywhere SCM, USBAT,
      > 	USBAT-02 (most noticably needing fixing is the string used at
      > 	transport-selection time, but a sweep of all uses to be consistent
      > 	would be in order).
      
      Sorry for the long delay, here is a patch to address this. I also clarified
      some ATA/ATAPI wording + function names.
      Signed-off-by: NDaniel Drake <dsd@gentoo.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      
       drivers/usb/storage/shuttle_usbat.c |  306 ++++++++++++++++++++----------------
       drivers/usb/storage/shuttle_usbat.h |   66 +++----
       drivers/usb/storage/transport.h     |    2
       drivers/usb/storage/unusual_devs.h  |   10 -
       drivers/usb/storage/usb.c           |    4
       5 files changed, 213 insertions(+), 175 deletions(-)
      b7b1e655
  3. 13 9月, 2005 1 次提交
    • M
      [PATCH] USB: storage: Fix messed-up locking · 226173ed
      Matthew Dharm 提交于
      This is patch as550 from Alan Stern.
      
      Apparently someone changed the SCSI core so that it no longer holds the
      host lock when doing a device or bus reset.  usb-storage was updated at
      the time, but the change was done carelessly.  Some of the code depends
      on that lock being held.
      
      This patch reintroduces the host lock where needed and tries to clarify
      the comments explaining why the lock is necessary.  It also moves the
      code that clears the TIMED_OUT and ABORTING bitflags so that it executes
      as soon as the timed-out command has completed (and while the host lock
      is held).
      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>
      226173ed
  4. 09 9月, 2005 3 次提交
  5. 26 6月, 2005 1 次提交
    • C
      [PATCH] Cleanup patch for process freezing · 3e1d1d28
      Christoph Lameter 提交于
      1. Establish a simple API for process freezing defined in linux/include/sched.h:
      
         frozen(process)		Check for frozen process
         freezing(process)		Check if a process is being frozen
         freeze(process)		Tell a process to freeze (go to refrigerator)
         thaw_process(process)	Restart process
         frozen_process(process)	Process is frozen now
      
      2. Remove all references to PF_FREEZE and PF_FROZEN from all
         kernel sources except sched.h
      
      3. Fix numerous locations where try_to_freeze is manually done by a driver
      
      4. Remove the argument that is no longer necessary from two function calls.
      
      5. Some whitespace cleanup
      
      6. Clear potential race in refrigerator (provides an open window of PF_FREEZE
         cleared before setting PF_FROZEN, recalc_sigpending does not check
         PF_FROZEN).
      
      This patch does not address the problem of freeze_processes() violating the rule
      that a task may only modify its own flags by setting PF_FREEZE. This is not clean
      in an SMP environment. freeze(process) is therefore not SMP safe!
      Signed-off-by: NChristoph Lameter <christoph@lameter.com>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      3e1d1d28
  6. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4