Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 04eedeb4 authored by Guido Günther's avatar Guido Günther Committed by Sam Ravnborg
Browse files

drm/panel: jh057n00900: Print error code on all DRM_DEV_ERROR()s



Most of them had these already but two mere missing. This eases
debugging.

Signed-off-by: default avatarGuido Günther <agx@sigxcpu.org>
Reviewed-by: default avatarSam Ravnborg <sam@ravnborg.org>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/6b237a570cb368dc4471fb8feb3a0441813cd576.1564146727.git.agx@sigxcpu.org
parent 6a6fc457
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -127,7 +127,7 @@ static int jh057n_init_sequence(struct jh057n *ctx)

	ret = mipi_dsi_dcs_exit_sleep_mode(dsi);
	if (ret < 0) {
		DRM_DEV_ERROR(dev, "Failed to exit sleep mode\n");
		DRM_DEV_ERROR(dev, "Failed to exit sleep mode: %d\n", ret);
		return ret;
	}
	/* Panel is operational 120 msec after reset */
@@ -351,7 +351,9 @@ static int jh057n_probe(struct mipi_dsi_device *dsi)

	ret = mipi_dsi_attach(dsi);
	if (ret < 0) {
		DRM_DEV_ERROR(dev, "mipi_dsi_attach failed. Is host ready?\n");
		DRM_DEV_ERROR(dev,
			      "mipi_dsi_attach failed (%d). Is host ready?\n",
			      ret);
		drm_panel_remove(&ctx->panel);
		return ret;
	}