diff options
author | Sanket Parmar <sparmar@cadence.com> | 2021-03-09 06:19:39 +0100 |
---|---|---|
committer | Peter Chen <peter.chen@kernel.org> | 2021-04-12 20:19:22 +0800 |
commit | b9b1eae761eeae665824ca6ef7f91da4fc798ebb (patch) | |
tree | e234444962cfcefdaabd241bc44ee682e45c00a3 /drivers/usb/cdns3/cdnsp-mem.c | |
parent | 575dd7ece61fa93270cb5749708b140a9c9cf947 (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