• R
    usb: musb: implement (un)map_urb_for_dma hooks · 8408fd1d
    Ruslan Bilovol 提交于
    MUSB controller cannot work in DMA mode with misaligned buffers,
    switching in PIO mode.
    
    HCD core has hooks that allow to override the default DMA
    mapping and unmapping routines for host controllers that have
    special DMA requirements, such as alignment constraints.
    
    It is observed that work in PIO mode is slow and it's better
    to align buffers properly before passing them to MUSB
    
    This increased throughput 80->120 MBits/s over musb@omap4 with
    USB Gigabit Ethernet adapter attached.
    
    Some ideas are taken from ehci-tegra.c
    Signed-off-by: NRuslan Bilovol <ruslan.bilovol@ti.com>
    Signed-off-by: NFelipe Balbi <balbi@ti.com>
    8408fd1d
musb_host.c 71.0 KB