disp: msm: dsi: improve logs for dual display case

Improve logs for dual display case to differentiate between
primary and secondary display.

Change-Id: I8947ddcdce3f75095f4d74143ef8256ed5dd5b7d
Signed-off-by: Ayushi Makhija <quic_amakhija@quicinc.com>
This commit is contained in:
Ayushi Makhija
2023-02-14 12:48:02 +05:30
parent 132458ad67
commit 53bfeabc6d
2 changed files with 5 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2016-2021, The Linux Foundation. All rights reserved.
*/
@@ -1214,7 +1215,8 @@ int dsi_clk_req_state(void *client, enum dsi_clk_type clk,
if (changed) {
rc = dsi_recheck_clk_state(mngr);
if (rc)
DSI_ERR("Failed to adjust clock state rc = %d\n", rc);
DSI_ERR("[%s]%s: failed to adjust clock state rc = %d\n",
mngr->name, c->name, rc);
}
mutex_unlock(&mngr->clk_mutex);

View File

@@ -5279,7 +5279,7 @@ static int _dsi_display_dev_init(struct dsi_display *display)
rc = dsi_display_res_init(display);
if (rc) {
DSI_ERR("[%s] failed to initialize resources, rc=%d\n",
display->name, rc);
display->name, rc);
goto error;
}
error:
@@ -5896,7 +5896,7 @@ static int dsi_display_init(struct dsi_display *display)
rc = _dsi_display_dev_init(display);
if (rc) {
DSI_ERR("device init failed, rc=%d\n", rc);
DSI_ERR("device init failed for %s, rc=%d\n", display->display_type, rc);
goto end;
}