[Freedreno] [PATCH] drm/msm/dsi: print error code when MIPI DSI host registration fails

abhinavk at codeaurora.org abhinavk at codeaurora.org
Fri Jun 4 16:39:45 UTC 2021


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 at linaro.org>
Reviewed-by: Abhinav Kumar <abhinavk at 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;
>  	}


More information about the Freedreno mailing list