commit | 89cc889a4404eea6f11e856f456d6e4f679a0d40 | [log] [tgz] |
---|---|---|
author | Xiaoyu Ye <benyxy@codeaurora.org> | Tue May 29 17:03:55 2018 -0700 |
committer | Meng Wang <mengw@codeaurora.org> | Wed Mar 13 15:22:12 2019 +0800 |
tree | 5f138a0ccb984770a5ec57ff7d7c1572122adb37 | |
parent | 8766446f907299050c09cfef065d2faa41df80e0 [diff] |
asoc: wcd-spi: use CMA memory for TX and RX buffer instead of kzalloc In wcd-spi driver, the kzalloc is used to allocate memory for TX and RX buffer. Those allocations are order4 or order5, which could fail on some kernels. To avoid potential memory allocation failure, the CMA region is used for those allocations by dma_alloc_coherent API. Change-Id: I0a4d6c6b5e0e47f96187563272e63c3a006e469f Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>