|
@@ -25,7 +25,6 @@
|
|
|
#include <drm/drm_crtc.h>
|
|
|
#include <drm/drm_probe_helper.h>
|
|
|
#include <drm/drm_flip_work.h>
|
|
|
-#include <linux/clk/qcom.h>
|
|
|
|
|
|
#include "sde_kms.h"
|
|
|
#include "sde_hw_lm.h"
|
|
@@ -3774,7 +3773,6 @@ static void sde_crtc_handle_power_event(u32 event_type, void *arg)
|
|
|
struct sde_crtc_irq_info *node = NULL;
|
|
|
int ret = 0;
|
|
|
struct drm_event event;
|
|
|
- struct msm_drm_private *priv;
|
|
|
|
|
|
if (!crtc) {
|
|
|
SDE_ERROR("invalid crtc\n");
|
|
@@ -3782,7 +3780,6 @@ static void sde_crtc_handle_power_event(u32 event_type, void *arg)
|
|
|
}
|
|
|
sde_crtc = to_sde_crtc(crtc);
|
|
|
cstate = to_sde_crtc_state(crtc->state);
|
|
|
- priv = crtc->dev->dev_private;
|
|
|
|
|
|
mutex_lock(&sde_crtc->crtc_lock);
|
|
|
|
|
@@ -3790,12 +3787,6 @@ static void sde_crtc_handle_power_event(u32 event_type, void *arg)
|
|
|
|
|
|
switch (event_type) {
|
|
|
case SDE_POWER_EVENT_POST_ENABLE:
|
|
|
- /* disable mdp LUT memory retention */
|
|
|
- ret = sde_power_clk_set_flags(&priv->phandle, "lut_clk",
|
|
|
- CLKFLAG_NORETAIN_MEM);
|
|
|
- if (ret)
|
|
|
- SDE_ERROR("disable LUT memory retention err %d\n", ret);
|
|
|
-
|
|
|
/* restore encoder; crtc will be programmed during commit */
|
|
|
drm_for_each_encoder_mask(encoder, crtc->dev,
|
|
|
crtc->state->encoder_mask) {
|
|
@@ -3819,11 +3810,6 @@ static void sde_crtc_handle_power_event(u32 event_type, void *arg)
|
|
|
sde_cp_crtc_post_ipc(crtc);
|
|
|
break;
|
|
|
case SDE_POWER_EVENT_PRE_DISABLE:
|
|
|
- /* enable mdp LUT memory retention */
|
|
|
- ret = sde_power_clk_set_flags(&priv->phandle, "lut_clk",
|
|
|
- CLKFLAG_RETAIN_MEM);
|
|
|
- if (ret)
|
|
|
- SDE_ERROR("enable LUT memory retention err %d\n", ret);
|
|
|
|
|
|
drm_for_each_encoder_mask(encoder, crtc->dev,
|
|
|
crtc->state->encoder_mask) {
|