Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f278750e authored by Rohit Sekhar's avatar Rohit Sekhar
Browse files

hbm_enable: Force to 1 & more logging

parent 2903ea1b
Loading
Loading
Loading
Loading
+11 −3
Original line number Diff line number Diff line
@@ -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);