Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp67879ybi; Fri, 26 Jul 2019 06:15:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqysfh8DX/CgmYK1MpxGHtHWMQku4ewi3yE/bXkl/qjqn3aK4+uk+zLGbRCwHQkh8i42zm9I X-Received: by 2002:a17:902:4683:: with SMTP id p3mr88867156pld.31.1564146942661; Fri, 26 Jul 2019 06:15:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564146942; cv=none; d=google.com; s=arc-20160816; b=ytHxwc2YccHharuBEpl0pzNWu8M10q/RmRfTUElYT69/I4I/JqYbaKP/+5jqWzOTi9 w9Ss9q0QtnIhneX07+g11mFr7s0ZCjqAgWj5uxLYGbWans6cWMxohh0JSAltAEcCAtyH INRYzwJHORRBD2606DpLg4wRwOHun8cfch29xmhRIKgPyJvbOjI4maiIYeZiScJ2rWmE UDOKAV4hh7geqsKtRhRJVcZC/q2ultxpGl+j5+XzQXxhcoVCvmJqqObIUGEanI5E3DtO Ucw79Nj3joNpY6lCxQt7yjaBJ27elHGH8wfEPjy/R1KJwO/dQtvn8X5ChNgHAxZqyxb9 TAcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from; bh=crxlws1d8HaNHP6yjlcLdh+QqglXiDsSRBEn2aci3Uc=; b=oXuju/fI4eTFk7U7QKkuOuhI3I/hBoUuW0+3BVrSgL9jw7GTspkiivq/DjkCCSuWTN TbFir8sp14vZHtHC7GOnniQiWWzFzXXtxoBKNZ2euUmXDVJpVoZq9jWP5dz8EGa5sP+4 LUBF5bndvZi0cqZLcQ4ydLjaf01KX4zlBFQrCIyUWkkE/NiDTffZc3XeYe0CBf9vNdzt kBzyfisAfVWHXVzH10rDzkog2iHtdIhs5wkcT3xzxzJY0HnKVLIjsW4iglbYoiMp8iRz YLqVxSppe+5QfwkrWsJu8nHroT4rYvjFOVOihzZvNlHdWh3sXI9ReQkZhLmt0Aw2Rn3R GuXA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x139si19587449pgx.251.2019.07.26.06.15.26; Fri, 26 Jul 2019 06:15:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726910AbfGZNOq (ORCPT + 99 others); Fri, 26 Jul 2019 09:14:46 -0400 Received: from honk.sigxcpu.org ([24.134.29.49]:36352 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726303AbfGZNOp (ORCPT ); Fri, 26 Jul 2019 09:14:45 -0400 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id E1017FB03; Fri, 26 Jul 2019 15:14:43 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id u1mgCVL2meXc; Fri, 26 Jul 2019 15:14:43 +0200 (CEST) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 2ADC346AA2; Fri, 26 Jul 2019 15:14:40 +0200 (CEST) From: =?UTF-8?q?Guido=20G=C3=BCnther?= To: =?UTF-8?q?Guido=20G=C3=BCnther?= , Purism Kernel Team , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/4] drm/panel: jh057n00900: Print error code on all DRM_DEV_ERROR()s Date: Fri, 26 Jul 2019 15:14:38 +0200 Message-Id: <6b237a570cb368dc4471fb8feb3a0441813cd576.1564146727.git.agx@sigxcpu.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Most of them had these already but two mere missing. This eases debugging. Signed-off-by: Guido Günther Reviewed-by: Sam Ravnborg --- drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c b/drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c index fed24c51d48b..1037a201b4bb 100644 --- a/drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c +++ b/drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c @@ -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; } -- 2.20.1