From e61cfc0bb81a3e97a63c0fde6f88f622f53edd65 Mon Sep 17 00:00:00 2001 From: Dhoat Harpal Date: Mon, 3 Apr 2017 17:04:11 +0530 Subject: [PATCH] soc: qcom: glink_smem_native_xport: Check smem item in non cache region Smem item is searched in cached region only, however it depends on remote processor if smem exist in cache region or non cache region of smem memory. Check for smem item in both cached and non cached region. CRs-Fixed: 2031705 Change-Id: Ib11fd15c6c49353950c0892b45d0eec1fbc33f46 Signed-off-by: Dhoat Harpal --- drivers/soc/qcom/glink_smem_native_xprt.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/soc/qcom/glink_smem_native_xprt.c b/drivers/soc/qcom/glink_smem_native_xprt.c index 2dc4208cbc51..85d51807077c 100644 --- a/drivers/soc/qcom/glink_smem_native_xprt.c +++ b/drivers/soc/qcom/glink_smem_native_xprt.c @@ -797,6 +797,12 @@ static bool get_rx_fifo(struct edge_info *einfo) &einfo->rx_fifo_size, einfo->remote_proc_id, SMEM_ITEM_CACHED_FLAG); + if (!einfo->rx_fifo) + einfo->rx_fifo = smem_get_entry( + SMEM_GLINK_NATIVE_XPRT_FIFO_1, + &einfo->rx_fifo_size, + einfo->remote_proc_id, + 0); if (!einfo->rx_fifo) return false; }