Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 88833d0d authored by Sanket Parmar's avatar Sanket Parmar Committed by Vignesh Raghavendra
Browse files

usb: cdns3: Optimize DMA request buffer allocation

dma_alloc_coherent() might fail on the platform with a small DMA region.

To avoid such failure in cdns3_prepare_aligned_request_buf(),
dma_alloc_coherent() is replaced with kmalloc and dma_map API to
allocate aligned request buffer of dynamic length.

Fixes: 7733f6c3

 ("usb: cdns3: Add Cadence USB3 DRD Driver")
Signed-off-by: default avatarSanket Parmar <sparmar@cadence.com>
Signed-off-by: default avatarAswath Govindraju <a-govindraju@ti.com>
Signed-off-by: default avatarVignesh Raghavendra <vigneshr@ti.com>
parent 9295bc9d
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment