diff options
| author | 2021-03-09 06:19:39 +0100 | |
|---|---|---|
| committer | 2021-04-12 20:19:22 +0800 | |
| commit | b9b1eae761eeae665824ca6ef7f91da4fc798ebb (patch) | |
| tree | e234444962cfcefdaabd241bc44ee682e45c00a3 /drivers/usb/cdns3/cdnsp-mem.c | |
| parent | usb: cdns3: fix static checker warning. (diff) | |
| download | linux-dev-b9b1eae761eeae665824ca6ef7f91da4fc798ebb.tar.xz linux-dev-b9b1eae761eeae665824ca6ef7f91da4fc798ebb.zip | |
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
