msm: sde: Avoid VBIF programming when SDE rotator is still busy
Whenever the rotation commit parameters have format or fps change, it is
required to program the OT in the VBIF, but only safe to do so when the
rotator is in IDLE state. The change is to make sure the correct fps is
used to lookup the OT, and issue panic when trying to program VBIF when
rotator is no in IDLE state.
CRs-Fixed: 1109943
Change-Id: I592df0f65b4c80fe8bf8eeb5cafffd369c41fcc2
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
diff --git a/drivers/media/platform/msm/sde/rotator/sde_rotator_r1_wb.c b/drivers/media/platform/msm/sde/rotator/sde_rotator_r1_wb.c
index f9dc341..863dfb0 100644
--- a/drivers/media/platform/msm/sde/rotator/sde_rotator_r1_wb.c
+++ b/drivers/media/platform/msm/sde/rotator/sde_rotator_r1_wb.c
@@ -402,7 +402,7 @@
static void sde_mdp_set_ot_limit_wb(struct sde_mdp_writeback_ctx *ctx)
{
- struct sde_mdp_set_ot_params ot_params;
+ struct sde_mdp_set_ot_params ot_params = {0,};
ot_params.xin_id = ctx->xin_id;
ot_params.num = ctx->wb_num;