From 1543e317f1da31b75942316931e8f491a8920811 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Thu, 04 Jan 2024 10:08:02 +0000
Subject: [PATCH] disable FB

---
 kernel/drivers/gpu/drm/rockchip/rk628/rk628_dsi.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/kernel/drivers/gpu/drm/rockchip/rk628/rk628_dsi.c b/kernel/drivers/gpu/drm/rockchip/rk628/rk628_dsi.c
index 2ada423..fc7da77 100644
--- a/kernel/drivers/gpu/drm/rockchip/rk628/rk628_dsi.c
+++ b/kernel/drivers/gpu/drm/rockchip/rk628/rk628_dsi.c
@@ -637,6 +637,9 @@
 	u32 val;
 	int ret;
 
+	if (!vrefresh)
+		return -EINVAL;
+
 	ret = regmap_read_poll_timeout(dsi->regmap,
 				       dsi->reg_base + DSI_CMD_PKT_STATUS,
 				       val, !(val & GEN_RD_CMD_BUSY),

--
Gitblit v1.6.2