Browse Source

Merge "gsi: Init rp_update_vaddr at event ring init"

qctecmdr 4 years ago
parent
commit
a62933e710
1 changed files with 3 additions and 0 deletions
  1. 3 0
      drivers/platform/msm/gsi/gsi.c

+ 3 - 0
drivers/platform/msm/gsi/gsi.c

@@ -1543,6 +1543,9 @@ static void gsi_init_evt_ring(struct gsi_evt_ring_props *props,
 	ctx->elem_sz = props->re_size;
 	ctx->max_num_elem = ctx->len / ctx->elem_sz - 1;
 	ctx->end = ctx->base + (ctx->max_num_elem + 1) * ctx->elem_sz;
+
+	if (props->rp_update_vaddr)
+		*(uint64_t *)(props->rp_update_vaddr) = ctx->rp_local;
 }
 
 static void gsi_prime_evt_ring(struct gsi_evt_ctx *ctx)