• David Brownell's avatar
    usb gadget stack: remove usb_ep_*_buffer(), part 2 · c67ab134
    David Brownell authored
    This patch removes controller driver infrastructure which supported
    the now-removed usb_ep_{alloc,free}_buffer() calls.
    
    As can be seen, many of the implementations of this were broken to
    various degrees.  Many didn't properly return dma-coherent mappings;
    those which did so were necessarily ugly because of bogosity in the
    underlying dma_free_coherent() calls ... which on many platforms
    can't be called from the same contexts (notably in_irq) from which
    their dma_alloc_coherent() sibling can be called.
    
    The main potential downside of removing this is that gadget drivers
    wouldn't have specific knowledge that the controller drivers have:
    endpoints that aren't dma-capable don't need any dma mappings at all.
    Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    c67ab134
fsl_usb2_udc.c 64.9 KB