54 lines
1.5 KiB
Diff
54 lines
1.5 KiB
Diff
From 9ca792e2d1c6d4c08eb292923c234c961684e6c5 Mon Sep 17 00:00:00 2001
|
|
From: Ondrej Jirman <megi@xff.cz>
|
|
Date: Sat, 17 Jun 2023 12:20:13 +0200
|
|
Subject: [PATCH 326/469] drm: panel: hs8394: Instrument the panel driver's
|
|
callbacks
|
|
|
|
---
|
|
drivers/gpu/drm/panel/panel-himax-hx8394.c | 8 ++++++++
|
|
1 file changed, 8 insertions(+)
|
|
|
|
diff --git a/drivers/gpu/drm/panel/panel-himax-hx8394.c b/drivers/gpu/drm/panel/panel-himax-hx8394.c
|
|
index b7422118c791..d68ba6692f8f 100644
|
|
--- a/drivers/gpu/drm/panel/panel-himax-hx8394.c
|
|
+++ b/drivers/gpu/drm/panel/panel-himax-hx8394.c
|
|
@@ -228,6 +228,8 @@ static int hx8394_enable(struct drm_panel *panel)
|
|
struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev);
|
|
int ret;
|
|
|
|
+ dev_info(ctx->dev, "enable\n");
|
|
+
|
|
ret = ctx->desc->init_sequence(ctx);
|
|
if (ret) {
|
|
dev_err(ctx->dev, "Panel init sequence failed: %d\n", ret);
|
|
@@ -266,6 +268,8 @@ static int hx8394_disable(struct drm_panel *panel)
|
|
struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev);
|
|
int ret;
|
|
|
|
+ dev_info(ctx->dev, "disable\n");
|
|
+
|
|
ret = mipi_dsi_dcs_enter_sleep_mode(dsi);
|
|
if (ret) {
|
|
dev_err(ctx->dev, "Failed to enter sleep mode: %d\n", ret);
|
|
@@ -281,6 +285,8 @@ static int hx8394_unprepare(struct drm_panel *panel)
|
|
{
|
|
struct hx8394 *ctx = panel_to_hx8394(panel);
|
|
|
|
+ dev_info(ctx->dev, "unprepare\n");
|
|
+
|
|
if (!ctx->prepared)
|
|
return 0;
|
|
|
|
@@ -299,6 +305,8 @@ static int hx8394_prepare(struct drm_panel *panel)
|
|
struct hx8394 *ctx = panel_to_hx8394(panel);
|
|
int ret;
|
|
|
|
+ dev_info(ctx->dev, "prepare\n");
|
|
+
|
|
if (ctx->prepared)
|
|
return 0;
|
|
|
|
--
|
|
2.34.1
|
|
|