msm: ADSPRPC: Handle SMD event signal
Handle multiple sessions properly for given channel. Change-Id: I3061fd883794da0465bfdae2b1c19d425ede7470 Acked-by: Krishnaiah Tadakamalla <ktadakam@qti.qualcomm.com> Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
This commit is contained in:
parent
7aa065cbc4
commit
bcd8434f47
1 changed files with 2 additions and 2 deletions
|
@ -1455,7 +1455,7 @@ static void smd_event_handler(void *priv, unsigned event)
|
|||
|
||||
switch (event) {
|
||||
case SMD_EVENT_OPEN:
|
||||
complete(&me->channel[cid].work);
|
||||
complete(&me->channel[cid].workport);
|
||||
break;
|
||||
case SMD_EVENT_CLOSE:
|
||||
fastrpc_notify_drivers(me, cid);
|
||||
|
@ -1476,7 +1476,7 @@ static void fastrpc_init(struct fastrpc_apps *me)
|
|||
me->channel = &gcinfo[0];
|
||||
for (i = 0; i < NUM_CHANNELS; i++) {
|
||||
init_completion(&me->channel[i].work);
|
||||
init_completion(&me->channel[i].workport);
|
||||
init_completion(&me->channel[i].workport);
|
||||
me->channel[i].sesscount = 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue