]> git.baikalelectronics.ru Git - kernel.git/commit
usb gadget stack: remove usb_ep_*_buffer(), part 1
authorDavid Brownell <david-b@pacbell.net>
Sun, 1 Jul 2007 18:04:54 +0000 (11:04 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 12 Jul 2007 23:34:42 +0000 (16:34 -0700)
commita3262322007dc94fdaa7b1a197d81501dc4423fa
tree710695adf1e50f2e4680c130d548ccd3e6251630
parent9c237478488539bcc6376f0132267df143ec1011
usb gadget stack: remove usb_ep_*_buffer(), part 1

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 <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/file_storage.c
drivers/usb/gadget/gmidi.c
drivers/usb/gadget/inode.c
drivers/usb/gadget/zero.c
include/linux/usb_gadget.h