Commit cabfe08c authored by Kuogee Hsieh's avatar Kuogee Hsieh Committed by Dmitry Baryshkov

drm/msm/dpu: remove struct drm_dsc_config from struct msm_display_info

Since struct drm_dsc_config is stored at atomic_enable() instead
of display setup time during boot up, saving struct drm_dsc_config
at struct msm_display_info is not necessary. Lets drop the dsc member
from struct msm_display_info.

Changes in v4:
-- fix "Since" at commit text
Signed-off-by: default avatarKuogee Hsieh <quic_khsieh@quicinc.com>
Reviewed-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/543866/
Link: https://lore.kernel.org/r/1687454686-10340-3-git-send-email-quic_khsieh@quicinc.comSigned-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
parent 9ed6141b
...@@ -2308,8 +2308,6 @@ static int dpu_encoder_setup_display(struct dpu_encoder_virt *dpu_enc, ...@@ -2308,8 +2308,6 @@ static int dpu_encoder_setup_display(struct dpu_encoder_virt *dpu_enc,
dpu_enc->idle_pc_supported = dpu_enc->idle_pc_supported =
dpu_kms->catalog->caps->has_idle_pc; dpu_kms->catalog->caps->has_idle_pc;
dpu_enc->dsc = disp_info->dsc;
mutex_lock(&dpu_enc->enc_lock); mutex_lock(&dpu_enc->enc_lock);
for (i = 0; i < disp_info->num_of_h_tiles && !ret; i++) { for (i = 0; i < disp_info->num_of_h_tiles && !ret; i++) {
/* /*
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
* @is_cmd_mode Boolean to indicate if the CMD mode is requested * @is_cmd_mode Boolean to indicate if the CMD mode is requested
* @is_te_using_watchdog_timer: Boolean to indicate watchdog TE is * @is_te_using_watchdog_timer: Boolean to indicate watchdog TE is
* used instead of panel TE in cmd mode panels * used instead of panel TE in cmd mode panels
* @dsc: DSC configuration data for DSC-enabled displays
*/ */
struct msm_display_info { struct msm_display_info {
enum dpu_intf_type intf_type; enum dpu_intf_type intf_type;
...@@ -36,7 +35,6 @@ struct msm_display_info { ...@@ -36,7 +35,6 @@ struct msm_display_info {
uint32_t h_tile_instance[MAX_H_TILES_PER_DISPLAY]; uint32_t h_tile_instance[MAX_H_TILES_PER_DISPLAY];
bool is_cmd_mode; bool is_cmd_mode;
bool is_te_using_watchdog_timer; bool is_te_using_watchdog_timer;
struct drm_dsc_config *dsc;
}; };
/** /**
......
...@@ -544,8 +544,6 @@ static int _dpu_kms_initialize_dsi(struct drm_device *dev, ...@@ -544,8 +544,6 @@ static int _dpu_kms_initialize_dsi(struct drm_device *dev,
info.is_cmd_mode = msm_dsi_is_cmd_mode(priv->dsi[i]); info.is_cmd_mode = msm_dsi_is_cmd_mode(priv->dsi[i]);
info.dsc = msm_dsi_get_dsc_config(priv->dsi[i]);
encoder = dpu_encoder_init(dev, DRM_MODE_ENCODER_DSI, &info); encoder = dpu_encoder_init(dev, DRM_MODE_ENCODER_DSI, &info);
if (IS_ERR(encoder)) { if (IS_ERR(encoder)) {
DPU_ERROR("encoder init failed for dsi display\n"); DPU_ERROR("encoder init failed for dsi display\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment