1. 25 3月, 2009 1 次提交
  2. 14 11月, 2008 1 次提交
    • D
      USB: gadget: cdc-acm deadlock fix · e50ae572
      David Brownell 提交于
      This fixes a deadlock appearing with some USB peripheral drivers
      when running CDC ACM gadget code.
      
      The newish (2.6.27) CDC ACM event notification mechanism sends
      messages (IN to the host) which are short enough to fit in most
      FIFOs.  That means that with some peripheral controller drivers
      (evidently not the ones used to verify the notification code!!)
      the completion callback can be issued before queue() returns.
      
      The deadlock would come because the completion callback and the
      event-issuing code shared a spinlock.  Fix is trivial:  drop
      that lock while queueing the message.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Cc: stable <stable@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      e50ae572
  3. 14 8月, 2008 2 次提交
  4. 22 7月, 2008 1 次提交
    • D
      usb gadget serial: split out CDC ACM function · 4d5a73dc
      David Brownell 提交于
      Split out CDC ACM parts of "gadget serial" to a "function driver".
      Some key structural differences from the previous ACM support, shared
      with with the generic serial function (next patch):
      
       - As a function driver, it can be combined with other functions.
         One gadget configuration could offer both serial and network
         links, as an example.
      
       - One serial port can be exposed in multiple configurations;
         the /dev/ttyGS0 node could be exposed regardless of which
         config the host selected.
      
       - One configuration can expose multiple serial ports, such as
         ttyGS0, ttyGS1, ttyGS2, and ttyGS3.
      
      This code should be a lot easier to understand than the previous
      all-in-one-big-file version of the driver.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      4d5a73dc