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_hdmirx.c |   16 +++++++---------
 1 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/kernel/drivers/gpu/drm/rockchip/rk628/rk628_hdmirx.c b/kernel/drivers/gpu/drm/rockchip/rk628/rk628_hdmirx.c
index 87467ed..7ff3cc0 100755
--- a/kernel/drivers/gpu/drm/rockchip/rk628/rk628_hdmirx.c
+++ b/kernel/drivers/gpu/drm/rockchip/rk628/rk628_hdmirx.c
@@ -18,10 +18,9 @@
 #include <linux/mfd/rk628.h>
 #include <linux/phy/phy.h>
 
-#include <drm/drmP.h>
 #include <drm/drm_atomic.h>
 #include <drm/drm_atomic_helper.h>
-#include <drm/drm_crtc_helper.h>
+#include <drm/drm_print.h>
 #include <drm/drm_dp_helper.h>
 #include <drm/drm_of.h>
 
@@ -817,7 +816,8 @@
 	phy_power_off(hdmirx->phy);
 }
 
-static int rk628_hdmirx_bridge_attach(struct drm_bridge *bridge)
+static int rk628_hdmirx_bridge_attach(struct drm_bridge *bridge,
+				      enum drm_bridge_attach_flags flags)
 {
 	struct rk628_hdmirx *hdmirx = bridge_to_hdmirx(bridge);
 	struct device *dev = hdmirx->dev;
@@ -830,24 +830,22 @@
 		return ret;
 	}
 
-	ret = drm_bridge_attach(bridge->encoder, hdmirx->bridge, bridge);
+	ret = drm_bridge_attach(bridge->encoder, hdmirx->bridge, bridge, flags);
 	if (ret) {
 		dev_err(dev, "failed to attach bridge\n");
 		return ret;
 	}
 
-	bridge->next = hdmirx->bridge;
-
 	return 0;
 }
 
 static void rk628_hdmirx_bridge_mode_set(struct drm_bridge *bridge,
-				    struct drm_display_mode *orig_mode,
-				    struct drm_display_mode *mode)
+					 const struct drm_display_mode *mode,
+					 const struct drm_display_mode *adj)
 {
 	struct rk628_hdmirx *hdmirx = bridge_to_hdmirx(bridge);
 
-	memcpy(&hdmirx->mode, mode, sizeof(hdmirx->mode));
+	memcpy(&hdmirx->mode, adj, sizeof(hdmirx->mode));
 }
 
 static const struct drm_bridge_funcs rk628_hdmirx_bridge_funcs = {

--
Gitblit v1.6.2