1. 13 10月, 2007 12 次提交
  2. 11 9月, 2007 1 次提交
  3. 20 7月, 2007 14 次提交
  4. 18 7月, 2007 2 次提交
  5. 16 7月, 2007 1 次提交
  6. 13 7月, 2007 3 次提交
    • J
      USB: Support Blackberry Pearl with berry_charge · 49bb607f
      Jeremy Katz 提交于
      The Blackberry Pearl (8100) needs similar tweaks as older Blackberry models
      to be able to charge when connected via USB.  The Pearl also adds an
      additional need to go into a separate mode for fully accessing the device;
      do that by default as well.
      
      Changes based on the changes from bcharge in the barry project
      (http://barry.sf.net)
      Signed-off-by: NJeremy Katz <katzj@redhat.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      49bb607f
    • O
      USB: autosuspend for usblcd · 7bbe990c
      Oliver Neukum 提交于
      this patch implements autosuspend for the usblcd driver. It uses
      the new usb_anchor infrastructure. Many thanks to Georges for testing.
      Signed-off-by: NOliver Neukum <oneukum@suse.de>
      Cc: Georges Toth <g.toth@e-biz.lu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      7bbe990c
    • A
      USB: prevent char device open/deregister race · d4ead16f
      Alan Stern 提交于
      This patch (as908) adds central protection in usbcore for the
      prototypical race between opening and unregistering a char device.
      The spinlock used to protect the minor-numbers array is replaced with
      an rwsem, which can remain locked across a call to a driver's open()
      method.  This guarantees that open() and deregister() will be mutually
      exclusive.
      
      The private locks currently used in several individual drivers for
      this purpose are no longer necessary, and the patch removes them.  The
      following USB drivers are affected: usblcd, idmouse, auerswald,
      legousbtower, sisusbvga/sisusb, ldusb, adutux, iowarrior, and
      usb-skeleton.
      
      As a side effect of this change, usb_deregister_dev() must not be
      called while holding a lock that is acquired by open().  Unfortunately
      a number of drivers do this, but luckily the solution is simple: call
      usb_deregister_dev() before acquiring the lock.
      
      In addition to these changes (and their consequent code
      simplifications), the patch fixes a use-after-free bug in adutux and a
      race between open() and release() in iowarrior.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      d4ead16f
  7. 07 7月, 2007 1 次提交
    • Y
      potential compiler error, irqfunc caller sites update · 0da2f0f1
      Yoann Padioleau 提交于
      In 7d12e780 David Howells performed
      this evolution:
       "IRQ: Maintain regs pointer globally rather than passing to IRQ handlers"
      
      He correctly updated many of the function definitions that were using this
      extra regs pointer parameter but forgot to update some caller sites of
      those functions.  The reason the modifications was not properly done on all
      drivers is that some drivers were rarely compiled because they are for
      AMIGA, or that some code sites were inside #ifdefs where the option is not
      set or inside #if 0.
      
      Here is the semantic patch that found the occurences
      and fixed the problem.
      
      @ rule1 @
      identifier fn;
      identifier irq, dev_id;
      typedef irqreturn_t;
      @@
      
      static irqreturn_t fn(int irq, void *dev_id)
      {
         ...
      }
      
      @@
      identifier rule1.fn;
      expression E1, E2, E3;
      @@
      
       fn(E1, E2
      -   ,E3
         )
      Signed-off-by: NYoann Padioleau <padator@wanadoo.fr>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Jeff Garzik <jeff@garzik.org>
      Cc: Greg KH <greg@kroah.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      0da2f0f1
  8. 26 6月, 2007 2 次提交
  9. 23 5月, 2007 3 次提交
  10. 09 5月, 2007 1 次提交