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

Commit e6b52252 authored by Arjun Singh's avatar Arjun Singh Committed by Gerrit - the friendly Code Review server
Browse files

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



Adds debug logs to get memory uses information.

Change-Id: I816a8bb5ac01f372c916099805493014994e9cfd
Signed-off-by: default avatarArjun Singh <arsingh@codeaurora.org>
parent 98a4afd6
Loading
Loading
Loading
Loading
+3 −1
Original line number 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);
		tx_buf = fxd_mem_buffer;
		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,
						&dma_hndl, GFP_KERNEL);
	}

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