diff mbox series

drm/msm/dsi: print error code when MIPI DSI host registration fails

Message ID 20210604104433.1442949-1-dmitry.baryshkov@linaro.org
State Accepted
Commit 299b809e89e8afa31546b84177909fc2305e07fe
Headers show
Series drm/msm/dsi: print error code when MIPI DSI host registration fails | expand

Commit Message

Dmitry Baryshkov June 4, 2021, 10:44 a.m. UTC
In order to ease debugging of DSI host registration issues, print return
code of dsi_mgr_setup_components().

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>

---
 drivers/gpu/drm/msm/dsi/dsi_manager.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.30.2

Comments

Abhinav Kumar June 4, 2021, 4:39 p.m. UTC | #1
On 2021-06-04 03:44, Dmitry Baryshkov wrote:
> In order to ease debugging of DSI host registration issues, print 

> return

> code of dsi_mgr_setup_components().

> 

> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>

Reviewed-by: Abhinav Kumar <abhinavk@codeaurora.org>

> ---

>  drivers/gpu/drm/msm/dsi/dsi_manager.c | 4 ++--

>  1 file changed, 2 insertions(+), 2 deletions(-)

> 

> diff --git a/drivers/gpu/drm/msm/dsi/dsi_manager.c

> b/drivers/gpu/drm/msm/dsi/dsi_manager.c

> index cd016576e8c5..4df5defdbf4c 100644

> --- a/drivers/gpu/drm/msm/dsi/dsi_manager.c

> +++ b/drivers/gpu/drm/msm/dsi/dsi_manager.c

> @@ -817,8 +817,8 @@ int msm_dsi_manager_register(struct msm_dsi 

> *msm_dsi)

> 

>  	ret = dsi_mgr_setup_components(id);

>  	if (ret) {

> -		pr_err("%s: failed to register mipi dsi host for DSI %d\n",

> -			__func__, id);

> +		pr_err("%s: failed to register mipi dsi host for DSI %d: %d\n",

> +			__func__, id, ret);

>  		goto fail;

>  	}
diff mbox series

Patch

diff --git a/drivers/gpu/drm/msm/dsi/dsi_manager.c b/drivers/gpu/drm/msm/dsi/dsi_manager.c
index cd016576e8c5..4df5defdbf4c 100644
--- a/drivers/gpu/drm/msm/dsi/dsi_manager.c
+++ b/drivers/gpu/drm/msm/dsi/dsi_manager.c
@@ -817,8 +817,8 @@  int msm_dsi_manager_register(struct msm_dsi *msm_dsi)
 
 	ret = dsi_mgr_setup_components(id);
 	if (ret) {
-		pr_err("%s: failed to register mipi dsi host for DSI %d\n",
-			__func__, id);
+		pr_err("%s: failed to register mipi dsi host for DSI %d: %d\n",
+			__func__, id, ret);
 		goto fail;
 	}