Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11953415ybi; Fri, 26 Jul 2019 02:22:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqzzIi9Y8YSKYPGhMFF6TeF655faslKOQ4VCSlq+VP6aQb3TfTy2acM2QbtvHNHnaPwz0s6D X-Received: by 2002:a17:90a:23a4:: with SMTP id g33mr99929757pje.115.1564132965612; Fri, 26 Jul 2019 02:22:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564132965; cv=none; d=google.com; s=arc-20160816; b=i+dwLJCgQEjmxic4I8drr1YWnjM6TH4Wrse/ulQ8d+wi+dAoobkd1W/i6eieF8FacL o3aK435zqyPR+tIvwgdM/N9f7plneN0Djjsgk+ETJ516HPvW+FRJDlKMDtk5DnaagPPR Kr0kAmvdFmqRzFYUTvD8+kwmf+1CskXHIsQnGx7lwO6JqSSAyf4K+v7qPfJniq6KO40P mMqk+mzyhhuI1NOLNrne/HpyOVPkbbThWbsD1D3zCbkyJE12/cO7Un4eaE3PLlSc8Ixs k4XVNw6rZx57dG+Kq0swK3VDKFKOvlA5Ox0LEVoR2Ltyuqd5XKkL9kx857bbnzttYiCv 2HZw== 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=8Wsj7KzZNXJeH0KjBm6IiJn7LnYcfOcKICFCgp22WOE=; b=BmZRrZVOg2b1RMMBr7QVQIQcm89iIAu3oE0evCph+lZRf19L0IEE0ZTywr+AVTdZ7R iuSYNNIjjCZ7WBeyOC+oDEI8y44kklky3S0Az4Qj0EIg4cw27AVmTLG6cm3zNxHBZ2py Wqx9l19FNR6ohITXPQajsmiuSeLNwX6P2p6cmKRTUu1+vv60WGpSAmq7qQtZLT/m+jlL 6EqsuOh1JqTClZf14HidKG25I4t9OBZtsJzyehGDru+6XdcdqQ9LmnPiHTdcCKk8KKi4 Y2WyAeUucYUy5OG5ywwbheFNnJIykMj/Tnbf31OxJWq6Hg/22ndwoTNq+FnDqTDCitVR xy6g== 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 o8si16696009pgd.582.2019.07.26.02.22.30; Fri, 26 Jul 2019 02:22:45 -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 S1726567AbfGZJVs (ORCPT + 99 others); Fri, 26 Jul 2019 05:21:48 -0400 Received: from honk.sigxcpu.org ([24.134.29.49]:59352 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725903AbfGZJVr (ORCPT ); Fri, 26 Jul 2019 05:21:47 -0400 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 12041FB04; Fri, 26 Jul 2019 11:21:46 +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 ZwHT3MJlLXlW; Fri, 26 Jul 2019 11:21:45 +0200 (CEST) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 47E3346AA1; Fri, 26 Jul 2019 11:21:43 +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 3/3] drm/panel: jh057n00900: Print error code on all DRM_DEV_ERROR()s Date: Fri, 26 Jul 2019 11:21:43 +0200 Message-Id: <85e8899f8091c7466283d42a510042ef55882c97.1564132646.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 --- 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 cc89831e30a6..a182ca7de701 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 */ @@ -355,7 +355,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