• David Brownell's avatar
    USB: net2280: update dma buffer allocation · 901b3d75
    David Brownell authored
    This updates the code handling dma-coherent buffer allocations, basically
    reusing code from the musb_hdrc driver.  Instead of trying to work around two
    significant limitations of the dma framework (memory wastage for buffers
    smaller than a page, and inconsistency between calling context requirements
    for allocation and free) this just works around one of them (the latter).
    
    So count this as two steps forward (bugfixes:  the latter issue could cause
    errors on some platforms, and some MIPS changes broke code for the former), 
    and one step back (increasing cross-platform memory wastage).
    
    Plus linelength and whitespace fixes; and minor data segment shrinkage.
    Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    901b3d75
net2280.c 79.3 KB