From bb502bebcbd0efaea95fa6edaaacc0271e0e3d3c Mon Sep 17 00:00:00 2001 From: Ondrej Jirman Date: Sat, 17 Jun 2023 16:27:23 +0200 Subject: [PATCH 312/464] drm: bridge: dw-mipi-dsi: Tracing Add tracing. Signed-off-by: Ondrej Jirman --- drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c index 4291798bd70f..f633d9cf4fdc 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c @@ -853,6 +853,8 @@ static void dw_mipi_dsi_bridge_post_atomic_disable(struct drm_bridge *bridge, struct dw_mipi_dsi *dsi = bridge_to_dsi(bridge); const struct dw_mipi_dsi_phy_ops *phy_ops = dsi->plat_data->phy_ops; + dev_info(dsi->dev, "post_disable\n"); + /* * Switch to command mode before panel-bridge post_disable & * panel unprepare. @@ -940,6 +942,8 @@ static void dw_mipi_dsi_bridge_atomic_pre_enable(struct drm_bridge *bridge, { struct dw_mipi_dsi *dsi = bridge_to_dsi(bridge); + dev_info(dsi->dev, "pre_enable\n"); + /* Power up the dsi ctl into a command mode */ dw_mipi_dsi_mode_set(dsi, &dsi->mode); if (dsi->slave) @@ -952,6 +956,8 @@ static void dw_mipi_dsi_bridge_mode_set(struct drm_bridge *bridge, { struct dw_mipi_dsi *dsi = bridge_to_dsi(bridge); + dev_info(dsi->dev, "mode_set\n"); + /* Store the display mode for later use in pre_enable callback */ drm_mode_copy(&dsi->mode, adjusted_mode); } @@ -961,6 +967,8 @@ static void dw_mipi_dsi_bridge_atomic_enable(struct drm_bridge *bridge, { struct dw_mipi_dsi *dsi = bridge_to_dsi(bridge); + dev_info(dsi->dev, "enable\n"); + /* Switch to video mode for panel-bridge enable & panel enable */ dw_mipi_dsi_set_mode(dsi, MIPI_DSI_MODE_VIDEO); if (dsi->slave) -- 2.34.1