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/dw-mipi-dsi-rockchip.c | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/kernel/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c b/kernel/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c
index badbdb1..f90b2e5 100644
--- a/kernel/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c
+++ b/kernel/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c
@@ -629,7 +629,7 @@
dsi->format = format;
bpp = mipi_dsi_pixel_format_to_bpp(dsi->format);
- if (bpp < 0) {
+ if (bpp <= 0) {
DRM_DEV_ERROR(dsi->dev,
"failed to get bpp for pixel format %d\n",
dsi->format);
@@ -1101,6 +1101,15 @@
return 0;
}
+static void
+dw_mipi_dsi_rockchip_stream_standby(void *priv_data, bool standby)
+{
+ struct dw_mipi_dsi_rockchip *dsi = priv_data;
+ struct drm_encoder *encoder = &dsi->encoder;
+
+ rockchip_drm_crtc_standby(encoder->crtc, standby);
+}
+
static int dw_mipi_dsi_rockchip_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
@@ -1209,6 +1218,10 @@
dsi->pdata.max_data_lanes = dsi->cdata->max_data_lanes;
dsi->pdata.phy_ops = &dw_mipi_dsi_rockchip_phy_ops;
dsi->pdata.priv_data = dsi;
+
+ if (dsi->cdata->soc_type == RK3568)
+ dsi->pdata.stream_standby = dw_mipi_dsi_rockchip_stream_standby;
+
platform_set_drvdata(pdev, dsi);
dsi->dmd = dw_mipi_dsi_probe(pdev, &dsi->pdata);
--
Gitblit v1.6.2