31 Jul, 2007

1 commit

  • This removes complaints about the gadget stack which are generated by
    the currrent "sparse": it doesn't like the fact that zero is the null
    pointer. (Last I checked, C guarantees that's correct ...)

    Signed-off-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    David Brownell
     

13 Jul, 2007

1 commit

  • 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: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    David Brownell
     

09 May, 2007

1 commit


15 Feb, 2007

1 commit

  • After Al Viro (finally) succeeded in removing the sched.h #include in module.h
    recently, it makes sense again to remove other superfluous sched.h includes.
    There are quite a lot of files which include it but don't actually need
    anything defined in there. Presumably these includes were once needed for
    macros that used to live in sched.h, but moved to other header files in the
    course of cleaning it up.

    To ease the pain, this time I did not fiddle with any header files and only
    removed #includes from .c-files, which tend to cause less trouble.

    Compile tested against 2.6.20-rc2 and 2.6.20-rc2-mm2 (with offsets) on alpha,
    arm, i386, ia64, mips, powerpc, and x86_64 with allnoconfig, defconfig,
    allmodconfig, and allyesconfig as well as a few randconfigs on x86_64 and all
    configs in arch/arm/configs on arm. I also checked that no new warnings were
    introduced by the patch (actually, some warnings are removed that were emitted
    by unnecessarily included header files).

    Signed-off-by: Tim Schmielau
    Acked-by: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Tim Schmielau
     

08 Feb, 2007

1 commit


08 Dec, 2006

1 commit


02 Oct, 2006

1 commit

  • In some places, particularly drivers and __init code, the init utsns is the
    appropriate one to use. This patch replaces those with a the init_utsname
    helper.

    Changes: Removed several uses of init_utsname(). Hope I picked all the
    right ones in net/ipv4/ipconfig.c. These are now changed to
    utsname() (the per-process namespace utsname) in the previous
    patch (2/7)

    [akpm@osdl.org: CIFS fix]
    Signed-off-by: Serge E. Hallyn
    Cc: Kirill Korotaev
    Cc: "Eric W. Biederman"
    Cc: Herbert Poetzl
    Cc: Andrey Savochkin
    Cc: Serge Hallyn
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Serge E. Hallyn
     

13 Jul, 2006

1 commit

  • Recent section changes broke gadget builds on some platforms. This patch
    is the best fix that's available until better section markings exist:

    - There's a lot of cleanup code that gets used in both init and exit paths;
    stop marking it as "__exit".

    (Best fix for this would be an "__init_or_exit" section marking, putting
    the cleanup in __init when __exit sections get discarded else in __exit.)

    - Stop marking the use-once probe routines as "__init" since references
    to those routines are not allowed from driver structures. They're now
    marked "__devinit", which in practice is a net lose.

    (Best fix for this is likely to separate such use-once probe routines
    from the driver structure ... but in general, all busses that aren't
    hotpluggable will be forced to waste memory for all probe-only code.)

    In general these broken section rules waste an average of two to four kBytes
    per driver of code bloat ... because none of the relevant code can ever be
    reused after module initialization.

    Signed-off-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    David Brownell
     

01 Jul, 2006

1 commit


15 Apr, 2006

1 commit


21 Mar, 2006

3 commits


01 Feb, 2006

1 commit

  • This makes sure that the correct length is reported when freeing
    a dma-coherent buffer; some platforms complain if that's wrong.
    It also makes two parameters readonly in sysfs, as they're not
    safe to change while tests are running.

    Signed-off-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    David Brownell
     

14 Jan, 2006

1 commit


29 Oct, 2005

1 commit


28 Oct, 2005

1 commit


09 Sep, 2005

1 commit

  • This patch centralizes the assignment of bcdDevice numbers for different
    gadget controllers. This won't improve the object code at all, but it
    does save a lot of repetitive and error-prone source code ... and will
    simplify the work of supporting a new controller driver, since most new
    gadget drivers will no longer need patches (unless some hardware quirks
    limit USB protocol messaging).

    Added minor cleanups and identifer hooks for the UDC in the Freescale
    iMX series processors.

    Signed-off-by: Alan Stern
    Signed-off-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    David Brownell
     

13 Jul, 2005

1 commit

  • Greg,

    This patch fixes the kmalloc() flags argument type in USB
    subsystem; hopefully all of its occurences. The patch was
    made against patch-2.6.12-git2 from Jun 20.

    Cleanup of flags for kmalloc() in USB subsystem.

    Signed-off-by: Olav Kongas
    Signed-off-by: Greg Kroah-Hartman

    Olav Kongas
     

28 Jun, 2005

1 commit

  • This updates most of the gadget framework to expect SETUP packets use
    USB byteorder (matching the annotation in and usage
    in the host side stack):

    - definition in
    - gadget drivers: Ethernet/RNDIS, serial/ACM, file_storage, gadgetfs.
    - dummy_hcd

    It also includes some other similar changes as suggested by "sparse",
    which was used to detect byteorder bugs.

    Signed-off-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    David Brownell
     

17 Apr, 2005

1 commit

  • 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!

    Linus Torvalds