Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp12010013ybi; Fri, 26 Jul 2019 03:17:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqy3zbmrNzUIKtxVXfRsjPNgFPpNsWz+QfWhFhDNhao8NfRt67fgohinsN7/hKfHgl7wI6n1 X-Received: by 2002:a17:90a:ad41:: with SMTP id w1mr96228090pjv.52.1564136228050; Fri, 26 Jul 2019 03:17:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564136228; cv=none; d=google.com; s=arc-20160816; b=oP92OVZpYxHzq7eYLgdgjtFVRo29nhoC0lOqe5QHLrezL/NL7ghk2UQkxLhhCkZDI2 3zJnC97haCs9Q2Yo2m24GIvBniHhnoN660uSumdLW2w11Lg3h7lUh3of3z473oY7grnl hoF7PRqJhGq5k9fLCzuXPB/UIwh+fuHfVOHDXKIy+qEX/xzRaIGcwBCj2skXHYKH6QHJ WR2PxUOFRkDQMvEKfZvoi4nCL+dK2GlSTBmULFaEijtx1vUwH7N3zuF3OpvJ5G4bvB/M GlComZani5jdX/WJNGYfVjdAyHrN6C7AT7pXA9BETx9/ox3aRmmaSJmPZx98NjHcfdiT HQ7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=zgy32E2AW4t1U+MMeuaosmHdJmyR4Ep2IZ3CySw0vfA=; b=ETbSwVaRD1opJhxOWn5+DmtDkHZazuszt4LFO+FVReOfrJ3LlmaFMgaz+vLQkAq2KM +7bx81PLKJo1BZ2m1eewksvbF/QevjAWH85OekWyKVFTE5ruNEVffJIZqocPk2Ds3Vl1 uBMPVa3+SUw/m82uL5L5Dql51NNgklYD0uuHNe7MNGThUaWAEDQl0M0KcVuWc8g2ggtL ScudZiei0mjzL4TKlyH6/is9nQ8JTU9oHqo4SomVKZrIOojGC+HLCrIp/GaK0aJFZ3+v SwX5jWEaWxjFi6ak9QPgHGlfrgMFtWwgrwFRA2VDd00IOmFu2qy/Sb7kC5hp1YW4P23g ut9w== 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 k11si19063253pfi.3.2019.07.26.03.16.53; Fri, 26 Jul 2019 03:17:08 -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 S1726302AbfGZKPR (ORCPT + 99 others); Fri, 26 Jul 2019 06:15:17 -0400 Received: from asavdk3.altibox.net ([109.247.116.14]:57675 "EHLO asavdk3.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725953AbfGZKPQ (ORCPT ); Fri, 26 Jul 2019 06:15:16 -0400 Received: from ravnborg.org (unknown [158.248.194.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk3.altibox.net (Postfix) with ESMTPS id 7F69B2003C; Fri, 26 Jul 2019 12:15:14 +0200 (CEST) Date: Fri, 26 Jul 2019 12:15:13 +0200 From: Sam Ravnborg To: Guido =?iso-8859-1?Q?G=FCnther?= Cc: Purism Kernel Team , Thierry Reding , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] drm/panel: jh057n00900: Move mipi_dsi_dcs_set_display_off to disable() Message-ID: <20190726101513.GA15658@ravnborg.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=dqr19Wo4 c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=8nJEP1OIZ-IA:10 a=ze386MxoAAAA:8 a=5NzjFCevEPO7GEHoP-oA:9 a=wPNLvfGTeEIA:10 a=iBZjaW-pnkserzjvUTHh:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Guido. On Fri, Jul 26, 2019 at 11:21:42AM +0200, Guido G?nther wrote: > This makes it symmetric with the panel init happening in enable(). > > Signed-off-by: Guido G?nther > --- > drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c | 10 +++++++--- > 1 file changed, 7 insertions(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c b/drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c > index c6b4bfd79fde..cc89831e30a6 100644 > --- a/drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c > +++ b/drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c > @@ -158,19 +158,23 @@ static int jh057n_enable(struct drm_panel *panel) > static int jh057n_disable(struct drm_panel *panel) > { > struct jh057n *ctx = panel_to_jh057n(panel); > + struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev); > + int ret; > + > + ret = backlight_disable(ctx->backlight); > + if (ret < 0) > + return ret; We most likely do not want to skip mipi_dsi_dcs_set_display_off() just because we fail to disable backlight. Most other panels disable backlight without a check for the return value. Sam