drm/msm/dsi: print error code when MIPI DSI host registration fails
PATCH 1/1 drm/msm/dsi: print error code when MIPI DSI host registration fails
In order to ease debugging of DSI host registration issues, print return code of dsi_mgr_setup_components().
Signed-off-by Dmitry Baryshkov <[email protected]>
--- drivers/gpu/drm/msm/dsi/dsi_manager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/msm/dsi/dsi_manager.c +2 -2
@@ -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; }
Signature · 1 line
2.30.2
Quoted 4 lines · Dmitry Baryshkov
In order to ease debugging of DSI host registration issues, print return code of
dsi_mgr_setup_components().Signed-off-by Dmitry Baryshkov <[email protected]>
Reviewed-by Abhinav Kumar <[email protected]>
Quoted 20 lines
--- drivers/gpu/drm/msm/dsi/dsi_manager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/msm/dsi/dsi_manager.c +2
-2@@ -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; }