Bangkk push for Android 15

* tag 'MMI-V1TC35H.88-16' of https://github.com/MotorolaMobilityLLC/kernel-msm-5.4-techpack-display:
  disp: msm: dsi: add null pointer check in dsi_display_dev_remove
  msm/dsi_display: resend new roi to panel, fix pu dup issue
  disp: msm: sde: clear cached rectangles when PU ROI is set

Change-Id: I2eed4c78f491b527ed088576e799dfb4488e5e97
This commit is contained in:
Michael Bestas 2025-09-05 16:38:14 +03:00
commit aae02053fd
No known key found for this signature in database
2 changed files with 7 additions and 0 deletions

View file

@ -8854,6 +8854,12 @@ static int dsi_display_set_roi(struct dsi_display *display,
return rc;
}
rc = dsi_panel_send_roi_dcs(display->panel, i, &ctrl_roi);
if (rc) {
DSI_ERR("dsi_panel_set_roi twice failed rc %d\n", rc);
return rc;
}
/* re-program the ctrl with the timing based on the new roi */
rc = dsi_ctrl_timing_setup(ctrl->ctrl);
if (rc) {

View file

@ -657,6 +657,7 @@ static int _sde_crtc_set_roi_v1(struct drm_crtc_state *state,
crtc = cstate->base.crtc;
memset(&cstate->user_roi_list, 0, sizeof(cstate->user_roi_list));
memset(&cstate->cached_user_roi_list, 0, sizeof(cstate->cached_user_roi_list));
if (!usr_ptr) {
SDE_DEBUG("crtc%d: rois cleared\n", DRMID(crtc));