Browse Source

adsprpc: tvm: Forcing compatibility flag to true for TVM

Setting flag to true in TVM to force TVM driver to use APIs
adsp_process_group_mmap64 and adsp_process_group_munmap64 instead
of adsp_process_group_mmap and adsp_process_group_munmap.

Change-Id: Ibbeb7f4177f11e75b1150e011090347219f04806
Edgar Flores 1 năm trước cách đây
mục cha
commit
b0308ca14e
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      dsp/adsprpc.c

+ 5 - 0
dsp/adsprpc.c

@@ -8834,7 +8834,12 @@ static int __init fastrpc_device_init(void)
 	VERIFY(err, !IS_ERR(me->class));
 	if (err)
 		goto class_create_bail;
+
+#if IS_ENABLED(CONFIG_MSM_ADSPRPC_TRUSTED)
+	me->compat = 1;
+#else
 	me->compat = (fops.compat_ioctl == NULL) ? 0 : 1;
+#endif
 
 	/*
 	 * Create devices and register with sysfs