Skip to content

Commit 26ae419

Browse files
Kuogee Hsiehrobclark
authored andcommitted
drm/msm/dp: add drm debug logs to dp_pm_resume/suspend
Changes in V2: -- correct Fixes text -- drop commit text Fixes: 601f047 ("drm/msm/dp: add logs across DP driver for ease of debugging") Signed-off-by: Kuogee Hsieh <[email protected]> Reviewed-by: Stephen Boyd <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Clark <[email protected]>
1 parent 2e0adc7 commit 26ae419

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

drivers/gpu/drm/msm/dp/dp_display.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,6 +1280,9 @@ static int dp_pm_resume(struct device *dev)
12801280

12811281
mutex_lock(&dp->event_mutex);
12821282

1283+
DRM_DEBUG_DP("Before, core_inited=%d power_on=%d\n",
1284+
dp->core_initialized, dp_display->power_on);
1285+
12831286
/* start from disconnected state */
12841287
dp->hpd_state = ST_DISCONNECTED;
12851288

@@ -1311,6 +1314,10 @@ static int dp_pm_resume(struct device *dev)
13111314
else
13121315
dp->dp_display.is_connected = false;
13131316

1317+
DRM_DEBUG_DP("After, sink_count=%d is_connected=%d core_inited=%d power_on=%d\n",
1318+
dp->link->sink_count, dp->dp_display.is_connected,
1319+
dp->core_initialized, dp_display->power_on);
1320+
13141321
mutex_unlock(&dp->event_mutex);
13151322

13161323
return 0;
@@ -1326,6 +1333,9 @@ static int dp_pm_suspend(struct device *dev)
13261333

13271334
mutex_lock(&dp->event_mutex);
13281335

1336+
DRM_DEBUG_DP("Before, core_inited=%d power_on=%d\n",
1337+
dp->core_initialized, dp_display->power_on);
1338+
13291339
if (dp->core_initialized == true) {
13301340
/* mainlink enabled */
13311341
if (dp_power_clk_status(dp->power, DP_CTRL_PM))
@@ -1339,6 +1349,9 @@ static int dp_pm_suspend(struct device *dev)
13391349
/* host_init will be called at pm_resume */
13401350
dp->core_initialized = false;
13411351

1352+
DRM_DEBUG_DP("After, core_inited=%d power_on=%d\n",
1353+
dp->core_initialized, dp_display->power_on);
1354+
13421355
mutex_unlock(&dp->event_mutex);
13431356

13441357
return 0;

0 commit comments

Comments
 (0)