summaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdnsp-mem.c
diff options
context:
space:
mode:
authorSanket Parmar <sparmar@cadence.com>2021-03-09 06:19:39 +0100
committerPeter Chen <peter.chen@kernel.org>2021-04-12 20:19:22 +0800
commitb9b1eae761eeae665824ca6ef7f91da4fc798ebb (patch)
treee234444962cfcefdaabd241bc44ee682e45c00a3 /drivers/usb/cdns3/cdnsp-mem.c
parent575dd7ece61fa93270cb5749708b140a9c9cf947 (diff)
usb: cdns3: Use dma_pool_* api to alloc trb pool
Allocation of DMA coherent memory in atomic context using dma_alloc_coherent() might fail on platforms with smaller DMA region. To fix it, dma_alloc_coherent() is replaced with dma_pool API to allocate a smaller chunk of DMA coherent memory for TRB rings. Reported-by: Aswath Govindraju <a-govindraju@ti.com> Signed-off-by: Sanket Parmar <sparmar@cadence.com> Signed-off-by: Peter Chen <peter.chen@kernel.org>
Diffstat (limited to 'drivers/usb/cdns3/cdnsp-mem.c')
0 files changed, 0 insertions, 0 deletions