|
@@ -2124,6 +2124,7 @@ static void _sde_encoder_phys_wb_reset_state(struct sde_encoder_phys *phys_enc)
|
|
|
{
|
|
|
struct sde_encoder_phys_wb *wb_enc = to_sde_encoder_phys_wb(phys_enc);
|
|
|
struct sde_encoder_virt *sde_enc = to_sde_encoder_virt(phys_enc->parent);
|
|
|
+ struct sde_wb_device *wb_dev = wb_enc->wb_dev;
|
|
|
struct sde_crtc *sde_crtc;
|
|
|
|
|
|
phys_enc->enable_state = SDE_ENC_DISABLED;
|
|
@@ -2144,6 +2145,9 @@ static void _sde_encoder_phys_wb_reset_state(struct sde_encoder_phys *phys_enc)
|
|
|
phys_enc->hw_cdm = NULL;
|
|
|
phys_enc->hw_ctl = NULL;
|
|
|
phys_enc->in_clone_mode = false;
|
|
|
+ kfree(wb_dev->modes);
|
|
|
+ wb_dev->modes = NULL;
|
|
|
+ wb_dev->count_modes = 0;
|
|
|
atomic_set(&phys_enc->pending_kickoff_cnt, 0);
|
|
|
atomic_set(&phys_enc->pending_retire_fence_cnt, 0);
|
|
|
atomic_set(&phys_enc->pending_ctl_start_cnt, 0);
|