Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1d2607af authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "soc: qcom: bgcom: adds info log for memory allocation failure"

parents a99038b1 e6b52252
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -565,9 +565,11 @@ int bgcom_ahb_write(void *handle, uint32_t ahb_start_addr,
		memset(fxd_mem_buffer, 0, txn_len);
		memset(fxd_mem_buffer, 0, txn_len);
		tx_buf = fxd_mem_buffer;
		tx_buf = fxd_mem_buffer;
		is_cma_used = true;
		is_cma_used = true;
	} else
	} else {
		pr_info("DMA memory used for size[%d]\n", txn_len);
		tx_buf = dma_zalloc_coherent(&spi->dev, txn_len,
		tx_buf = dma_zalloc_coherent(&spi->dev, txn_len,
						&dma_hndl, GFP_KERNEL);
						&dma_hndl, GFP_KERNEL);
	}


	if (!tx_buf) {
	if (!tx_buf) {
		mutex_unlock(&cma_buffer_lock);
		mutex_unlock(&cma_buffer_lock);