OSDN Git Service

msm: ADSPRPC: Set the device node in the session context
authorSathish Ambley <sathishambley@codeaurora.org>
Sat, 11 Feb 2017 02:55:18 +0000 (18:55 -0800)
committerSathish Ambley <sathishambley@codeaurora.org>
Sat, 11 Feb 2017 02:55:18 +0000 (18:55 -0800)
Set the device node associated with the session while creating
the context to allow for dma operations.

Change-Id: I7937a7bd533a9be09453144e20f7ecca3f3cc0ef
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
drivers/char/adsprpc.c

index 0345e97..88bd6af 100644 (file)
@@ -1981,6 +1981,7 @@ static int fastrpc_session_alloc_locked(struct fastrpc_channel_ctx *chan,
                if (err)
                        goto bail;
                chan->session[0].dev = me->dev;
+               chan->session[0].smmu.dev = me->dev;
        }
 
        *session = &chan->session[idx];