Loading drivers/gpu/drm/mediatek/mediatek_v2/mtk_drm_crtc.c +11 −3 Original line number Diff line number Diff line Loading @@ -2231,17 +2231,25 @@ int mtk_drm_crtc_hbm_wait(struct drm_crtc *crtc, bool en) bool wait = false; unsigned int wait_count = 0; DDPINFO("FUCK: mtk_drm_crtc_hbm_wait initialize"); if (!(comp && comp->funcs && comp->funcs->io_cmd)) return -EINVAL; DDPINFO("FUCK: mtk_drm_crtc_hbm_wait io_cmd exists"); comp->funcs->io_cmd(comp, NULL, DSI_HBM_GET_WAIT_STATE, &wait); if (wait != true) if (wait != true) { DDPINFO("FUCK: mtk_drm_crtc_hbm_wait DSI_HBM_GET_WAIT_STATE is false, returning 0"); return 0; } if (!panel_ext) if (!panel_ext){ DDPINFO("FUCK: mtk_drm_crtc_hbm_wait panel_ext is null, returning EINVAL"); return -EINVAL; } wait_count = en ? panel_ext->hbm_en_time : panel_ext->hbm_dis_time; wait_count = en ? 1 : 0; DDPINFO("LCM hbm %s wait %u-TE\n", en ? "enable" : "disable", wait_count); Loading Loading
drivers/gpu/drm/mediatek/mediatek_v2/mtk_drm_crtc.c +11 −3 Original line number Diff line number Diff line Loading @@ -2231,17 +2231,25 @@ int mtk_drm_crtc_hbm_wait(struct drm_crtc *crtc, bool en) bool wait = false; unsigned int wait_count = 0; DDPINFO("FUCK: mtk_drm_crtc_hbm_wait initialize"); if (!(comp && comp->funcs && comp->funcs->io_cmd)) return -EINVAL; DDPINFO("FUCK: mtk_drm_crtc_hbm_wait io_cmd exists"); comp->funcs->io_cmd(comp, NULL, DSI_HBM_GET_WAIT_STATE, &wait); if (wait != true) if (wait != true) { DDPINFO("FUCK: mtk_drm_crtc_hbm_wait DSI_HBM_GET_WAIT_STATE is false, returning 0"); return 0; } if (!panel_ext) if (!panel_ext){ DDPINFO("FUCK: mtk_drm_crtc_hbm_wait panel_ext is null, returning EINVAL"); return -EINVAL; } wait_count = en ? panel_ext->hbm_en_time : panel_ext->hbm_dis_time; wait_count = en ? 1 : 0; DDPINFO("LCM hbm %s wait %u-TE\n", en ? "enable" : "disable", wait_count); Loading