Skip to content
Unverified Commit 8430e98f authored by Sanket Parmar's avatar Sanket Parmar Committed by Peter Chen
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 dma_alloc_noncoherent()
to allocate aligned request buffer of dynamic length.

Reported-by: default avatarAswath Govindraju <a-govindraju@ti.com>
Signed-off-by: default avatarSanket Parmar <sparmar@cadence.com>
Signed-off-by: default avatarPeter Chen <peter.chen@kernel.org>
parent b9b1eae7
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