1. 10 9月, 2012 11 次提交
  2. 01 11月, 2011 1 次提交
  3. 14 10月, 2011 2 次提交
    • D
      USB: gadget: f_midi: allow a dynamic number of input and output ports · c8933c3f
      Daniel Mack 提交于
      The code in the MIDI gadget was already sort of prepared for multi-port
      configuration, so the streaming logic itself didn't need much tweaking.
      However, the descriptors change when the number of ports do, and so some
      rework of the the preparation algorithms were necessary.
      
      Successfully tested on Linux and Max OS X hosts for both input and
      output streams.
      Signed-off-by: NDaniel Mack <zonque@gmail.com>
      Cc: Greg Kroah-Hartman <gregkh@suse.de>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      c8933c3f
    • D
      USB: gadget: midi: refactor the device code · 2672eea5
      Daniel Mack 提交于
      Make use of the newly added MIDI function in f_midi.c and strip down
      the MIDI gadget code radically. Also use the generic framework function
      to avoid code duplication and rename some symbols to bring them in sync
      with other code in the gadget framework.
      
      [ balbi@ti.com : fix Section mismatch warnings.
      	rebased on top of usb_speed_string() patch to
      	avoid conflicts. ]
      Signed-off-by: NDaniel Mack <zonque@gmail.com>
      Cc: Greg Kroah-Hartman <gregkh@suse.de>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      2672eea5
  4. 18 9月, 2011 1 次提交
    • M
      usb: Provide usb_speed_string() function · e538dfda
      Michal Nazarewicz 提交于
      In a few places in the kernel, the code prints
      a human-readable USB device speed (eg. "high speed").
      This involves a switch statement sometimes wrapped
      around in ({ ... }) block leading to code repetition.
      
      To mitigate this issue, this commit introduces
      usb_speed_string() function, which returns
      a human-readable name of provided speed.
      
      It also changes a few places switch was used to use
      this new function.  This changes a bit the way the
      speed is printed in few instances at the same time
      standardising it.
      Signed-off-by: NMichal Nazarewicz <mina86@mina86.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      e538dfda
  5. 02 7月, 2011 1 次提交
  6. 29 6月, 2011 1 次提交
  7. 31 3月, 2011 1 次提交
  8. 23 10月, 2010 2 次提交
  9. 11 8月, 2010 1 次提交
  10. 23 6月, 2010 1 次提交
  11. 30 3月, 2010 1 次提交
    • T
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking... · 5a0e3ad6
      Tejun Heo 提交于
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
      
      percpu.h is included by sched.h and module.h and thus ends up being
      included when building most .c files.  percpu.h includes slab.h which
      in turn includes gfp.h making everything defined by the two files
      universally available and complicating inclusion dependencies.
      
      percpu.h -> slab.h dependency is about to be removed.  Prepare for
      this change by updating users of gfp and slab facilities include those
      headers directly instead of assuming availability.  As this conversion
      needs to touch large number of source files, the following script is
      used as the basis of conversion.
      
        http://userweb.kernel.org/~tj/misc/slabh-sweep.py
      
      The script does the followings.
      
      * Scan files for gfp and slab usages and update includes such that
        only the necessary includes are there.  ie. if only gfp is used,
        gfp.h, if slab is used, slab.h.
      
      * When the script inserts a new include, it looks at the include
        blocks and try to put the new include such that its order conforms
        to its surrounding.  It's put in the include block which contains
        core kernel includes, in the same order that the rest are ordered -
        alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
        doesn't seem to be any matching order.
      
      * If the script can't find a place to put a new include (mostly
        because the file doesn't have fitting include block), it prints out
        an error message indicating which .h file needs to be added to the
        file.
      
      The conversion was done in the following steps.
      
      1. The initial automatic conversion of all .c files updated slightly
         over 4000 files, deleting around 700 includes and adding ~480 gfp.h
         and ~3000 slab.h inclusions.  The script emitted errors for ~400
         files.
      
      2. Each error was manually checked.  Some didn't need the inclusion,
         some needed manual addition while adding it to implementation .h or
         embedding .c file was more appropriate for others.  This step added
         inclusions to around 150 files.
      
      3. The script was run again and the output was compared to the edits
         from #2 to make sure no file was left behind.
      
      4. Several build tests were done and a couple of problems were fixed.
         e.g. lib/decompress_*.c used malloc/free() wrappers around slab
         APIs requiring slab.h to be added manually.
      
      5. The script was run on all .h files but without automatically
         editing them as sprinkling gfp.h and slab.h inclusions around .h
         files could easily lead to inclusion dependency hell.  Most gfp.h
         inclusion directives were ignored as stuff from gfp.h was usually
         wildly available and often used in preprocessor macros.  Each
         slab.h inclusion directive was examined and added manually as
         necessary.
      
      6. percpu.h was updated not to include slab.h.
      
      7. Build test were done on the following configurations and failures
         were fixed.  CONFIG_GCOV_KERNEL was turned off for all tests (as my
         distributed build env didn't work with gcov compiles) and a few
         more options had to be turned off depending on archs to make things
         build (like ipr on powerpc/64 which failed due to missing writeq).
      
         * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
         * powerpc and powerpc64 SMP allmodconfig
         * sparc and sparc64 SMP allmodconfig
         * ia64 SMP allmodconfig
         * s390 SMP allmodconfig
         * alpha SMP allmodconfig
         * um on x86_64 SMP allmodconfig
      
      8. percpu.h modifications were reverted so that it could be applied as
         a separate patch and serve as bisection point.
      
      Given the fact that I had only a couple of failures from tests on step
      6, I'm fairly confident about the coverage of this conversion patch.
      If there is a breakage, it's likely to be something in one of the arch
      headers which should be easily discoverable easily on most builds of
      the specific arch.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Guess-its-ok-by: NChristoph Lameter <cl@linux-foundation.org>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
      5a0e3ad6
  12. 03 3月, 2010 1 次提交
  13. 23 2月, 2010 1 次提交
  14. 23 9月, 2009 1 次提交
  15. 25 3月, 2009 1 次提交
  16. 12 1月, 2009 1 次提交
  17. 18 10月, 2008 1 次提交
  18. 17 10月, 2008 1 次提交
  19. 26 7月, 2008 1 次提交
  20. 29 4月, 2008 1 次提交
  21. 25 4月, 2008 1 次提交
  22. 02 2月, 2008 1 次提交
  23. 01 2月, 2008 1 次提交
    • T
      [ALSA] Remove sound/driver.h · 9004acc7
      Takashi Iwai 提交于
      This header file exists only for some hacks to adapt alsa-driver
      tree.  It's useless for building in the kernel.  Let's move a few
      lines in it to sound/core.h and remove it.
      With this patch, sound/driver.h isn't removed but has just a single
      compile warning to include it.  This should be really killed in
      future.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      Signed-off-by: NJaroslav Kysela <perex@perex.cz>
      9004acc7
  24. 13 10月, 2007 2 次提交
  25. 13 7月, 2007 1 次提交
    • D
      usb gadget stack: remove usb_ep_*_buffer(), part 1 · 9d8bab58
      David Brownell 提交于
      Remove usb_ep_{alloc,free}_buffer() calls, for small dma-coherent buffers.
      This patch just removes the interface and its users; later patches will
      remove controller driver support.
      
        - This interface is invariably not implemented correctly in the
          controller drivers (e.g. using dma pools, a mechanism which
          post-dates the interface by several years).
      
        - At this point no gadget driver really *needs* to use it.  In
          current kernels, any driver that needs such a mechanism could
          allocate a dma pool themselves.
      
      Removing this interface is thus a simplification and improvement.
      
      Note that the gmidi.c driver had a bug in this area; fixed.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      9d8bab58
  26. 08 2月, 2007 1 次提交
  27. 21 12月, 2006 1 次提交
    • D
      USB: gadget driver unbind() is optional; section fixes; misc · 6bea476c
      David Brownell 提交于
      Allow gadget drivers to omit the unbind() method.  When they're
      statically linked, that's an appropriate memory saving tweak.
      
      Similarly, provide consistent/simpler handling for a should-not-happen
      error case:  removing a peripheral controller driver when a gadget
      driver is still loaded.  Such code dates back to early versions of the
      first implementation of the gadget API, and has never been triggered.
      
      Includes relevant section annotation fixs for gmidi.c, file_storage.c,
      and serial.c; we don't yet have an "init or exit" annotation.  Also
      some whitespace fixes in gmidi.c (space at EOL, before tabs, etc).
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      6bea476c