From 25ff5f0b648809d18d4be42e881eaa219022371e Mon Sep 17 00:00:00 2001 From: Tharun Kumar Merugu Date: Wed, 2 Aug 2017 11:26:04 +0530 Subject: [PATCH] msm: ADSPRPC: Queue receive intent for adsprpc glink channel Queue receive intent for adsprpc glink channel to avoid remote processor failure to acknowlege first message. Change-Id: I314099acca71683a36661c0ff6c4a0430653d97e Signed-off-by: Tharun Kumar Merugu --- drivers/char/adsprpc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/char/adsprpc.c b/drivers/char/adsprpc.c index 781fa96726e2..8560a2b731b5 100644 --- a/drivers/char/adsprpc.c +++ b/drivers/char/adsprpc.c @@ -2500,6 +2500,9 @@ static int fastrpc_channel_open(struct fastrpc_file *fl) kref_init(&me->channel[cid].kref); pr_info("'opened /dev/%s c %d %d'\n", gcinfo[cid].name, MAJOR(me->dev_no), cid); + err = glink_queue_rx_intent(me->channel[cid].chan, NULL, 64); + if (err) + pr_info("adsprpc: initial intent failed for %d\n", cid); if (cid == 0 && me->channel[cid].ssrcount != me->channel[cid].prevssrcount) { if (fastrpc_mmap_remove_ssr(fl))