1. 11 8月, 2010 1 次提交
    • A
      USB: convert usb_hcd bitfields into atomic flags · 541c7d43
      Alan Stern 提交于
      This patch (as1393) converts several of the single-bit fields in
      struct usb_hcd to atomic flags.  This is for safety's sake; not all
      CPUs can update bitfield values atomically, and these flags are used
      in multiple contexts.
      
      The flag fields that are set only during registration or removal can
      remain as they are, since non-atomic accesses at those times will not
      cause any problems.
      
      (Strictly speaking, the authorized_default flag should become atomic
      as well.  I didn't bother with it because it gets changed only via
      sysfs.  It can be done later, if anyone wants.)
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      541c7d43
  2. 21 5月, 2010 4 次提交
  3. 03 3月, 2010 1 次提交
    • C
      USB: isp1760: Flush the D-cache for the pipe-in transfer buffers · db8516f6
      Catalin Marinas 提交于
      When the HDC driver writes the data to the transfer buffers it pollutes
      the D-cache (unlike DMA drivers where the device writes the data). If
      the corresponding pages get mapped into user space, there are no
      additional cache flushing operations performed and this causes random
      user space faults on architectures with separate I and D caches
      (Harvard) or those with aliasing D-cache.
      Signed-off-by: NCatalin Marinas <catalin.marinas@arm.com>
      Cc: Matthew Dharm <mdharm-kernel@one-eyed-alien.net>
      Cc: Greg KH <greg@kroah.com>
      Cc: Sebastian Siewior <bigeasy@linutronix.de>
      Cc: Oliver Neukum <oliver@neukum.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      db8516f6
  4. 21 1月, 2010 1 次提交
  5. 23 9月, 2009 1 次提交
  6. 29 5月, 2009 1 次提交
    • W
      USB: isp1760: urb_dequeue doesn't always find the urbs · 0afb20e0
      Warren Free 提交于
      The option driver (and presumably others) allocates several URBs when it
      opens and tries to free them when it closes. The isp1760_urb_dequeue
      function gets called, but the packet being dequeued is not necessarily at
      the
      front of one of the 32 queues. If not, the isp1760_urb_done function doesn't
      get called for the URB and the process trying to free it hangs forever on a
      wait_queue. This patch does two things. If the URB being dequeued has others
      queued behind it, it re-queues them. And it searches the queues looking for
      the URB being dequeued rather than just looking at the one at the front of
      the queue.
      
      [bigeasy@linutronix] whitespace fixes, reformating
      
      Cc: stable <stable@kernel.org>
      Signed-off-by: NWarren Free <wfree@ipmn.com>
      Signed-off-by: NSebastian Andrzej Siewior <bigeasy@linutronix.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      0afb20e0
  7. 25 3月, 2009 3 次提交
  8. 08 1月, 2009 1 次提交
  9. 22 8月, 2008 1 次提交
  10. 14 8月, 2008 3 次提交
  11. 22 7月, 2008 4 次提交
  12. 12 6月, 2008 1 次提交
  13. 15 5月, 2008 1 次提交
  14. 03 5月, 2008 1 次提交