mirror of
https://github.com/torvalds/linux.git
synced 2026-01-12 00:42:35 +08:00
drm/panel: jdi-lpm102a188a: Fix error code in jdi_panel_prepare()
If the mipi_dsi_dual() macro fails, the error code is stored in
dsi_ctx.accum_err. Propagate that error back to the caller instead
of returning success as the current code does.
Fixes: a6adf47d30 ("drm/panel: jdi-lpm102a188a: Fix bug and clean up driver")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/aKcRfq8xBrFmhqmO@stanley.mountain
This commit is contained in:
committed by
Douglas Anderson
parent
9648101262
commit
61ce50fd81
@@ -233,8 +233,10 @@ static int jdi_panel_prepare(struct drm_panel *panel)
|
||||
mipi_dsi_dual(mipi_dsi_dcs_set_display_on_multi,
|
||||
&dsi_ctx, jdi->link1, jdi->link2);
|
||||
|
||||
if (dsi_ctx.accum_err < 0)
|
||||
if (dsi_ctx.accum_err < 0) {
|
||||
err = dsi_ctx.accum_err;
|
||||
goto poweroff;
|
||||
}
|
||||
|
||||
jdi->link1->mode_flags &= ~MIPI_DSI_MODE_LPM;
|
||||
jdi->link2->mode_flags &= ~MIPI_DSI_MODE_LPM;
|
||||
|
||||
Reference in New Issue
Block a user