Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp750582ybt; Wed, 1 Jul 2020 09:07:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZ/kNOmpHPVpeQDqo2OxVeteT25a2PIydZWHbk2bpT9FTV+RyM4lKMFqXS43nSizHj4C0h X-Received: by 2002:a17:906:8595:: with SMTP id v21mr24308166ejx.333.1593619676935; Wed, 01 Jul 2020 09:07:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593619676; cv=none; d=google.com; s=arc-20160816; b=WyCzu7p21OSgPLBqT5TYUu9m5z4yVMm/n8hCdyhQ+1g83ywLJG5D+3H7Y/e6AkXG67 EzBMzinqSlvdG/hw+PRVn88lBmbUZ5bbi4/X3Zt6El/m4afVnDDi9gcuXIgYN1YwMFIH soI8/+K1eyhYyTT/2G0OSlk4fV/nJ3V4R+d5c4EiCJJ3CZ5egC5U6YJsDX4uuWH+K3eB M/wcWD4oGQnKVxZwcVozS7IlKhQLDaYZA+Wepi6O13/l44o5N3H9p8q9QyjYf4eLTGY3 0x3/Cnd0+Esu4znLgTOAB/NmdbS948o9PLkLDRRhdAtf3Ka6WB/ueIHQ2kGRL4zVJJNw P+EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=jeFYeZMnrc3O5kykgy9ChjosakCgrZCRZQpkcBWnRfM=; b=gtrtaH2NERChuG+6XMArtA9AZATSHZ4ewx/FYmSqVVGfl1JlzC0L4hs/ZyeZ7E19/9 Lw/0I2ySXiZ13btP+f6om9xHlmqxiker81FKUFcWbUSmYnNGnYMOR3JEN3AOdkXtUfst bZfUwEasXAm6FUeBiHrZ9M+2n4DR+Fof/C2+FDflPrR+IqRO2JNJrMokX605UktL/Lxn vo+baFFRndXagiKUuJvgmAAJ0MfeZoHsxIVEFWErhg36Xo8R4SCf3ASviECsZS8/fFnp jDaCrXHkAlPI6Do+lPKV6bQvv+9RsLBYyBAJv97kqtwkgJiNbnxL09/kqDyuFYDAW0k5 jjOA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y16si4008092ejq.260.2020.07.01.09.07.33; Wed, 01 Jul 2020 09:07:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732243AbgGAQEX (ORCPT + 99 others); Wed, 1 Jul 2020 12:04:23 -0400 Received: from honk.sigxcpu.org ([24.134.29.49]:34572 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728534AbgGAQEV (ORCPT ); Wed, 1 Jul 2020 12:04:21 -0400 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id B872FFB03; Wed, 1 Jul 2020 18:04:19 +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 mCQhS3pQ3pkg; Wed, 1 Jul 2020 18:04:18 +0200 (CEST) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 9117340972; Wed, 1 Jul 2020 18:04:18 +0200 (CEST) Date: Wed, 1 Jul 2020 18:04:18 +0200 From: Guido =?iso-8859-1?Q?G=FCnther?= To: Ondrej Jirman Cc: linux-sunxi@googlegroups.com, Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Purism Kernel Team , Rob Herring , Maxime Ripard , Chen-Yu Tsai , Linus Walleij , Icenowy Zheng , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Samuel Holland , Martijn Braam , Luca Weiss , Bhushan Shah Subject: Re: [PATCH v6 10/13] drm/panel: st7703: Enter sleep after display off Message-ID: <20200701160418.GI174356@bogon.m.sigxcpu.org> References: <20200701103126.1512615-1-megous@megous.com> <20200701103126.1512615-11-megous@megous.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200701103126.1512615-11-megous@megous.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Wed, Jul 01, 2020 at 12:31:23PM +0200, Ondrej Jirman wrote: > The datasheet suggests to issue sleep in after display off > as a part of the panel's shutdown sequence. Out of curiosity: which exact datasheet did you use? Reviewed-by: Guido G?nther > > Signed-off-by: Ondrej Jirman > Reviewed-by: Linus Walleij > --- > drivers/gpu/drm/panel/panel-sitronix-st7703.c | 13 ++++++++++++- > 1 file changed, 12 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7703.c b/drivers/gpu/drm/panel/panel-sitronix-st7703.c > index 5cd5503f894f..0c4167994d01 100644 > --- a/drivers/gpu/drm/panel/panel-sitronix-st7703.c > +++ b/drivers/gpu/drm/panel/panel-sitronix-st7703.c > @@ -395,8 +395,19 @@ static int st7703_disable(struct drm_panel *panel) > { > struct st7703 *ctx = panel_to_st7703(panel); > struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev); > + int ret; > + > + ret = mipi_dsi_dcs_set_display_off(dsi); > + if (ret < 0) > + DRM_DEV_ERROR(ctx->dev, > + "Failed to turn off the display: %d\n", ret); > > - return mipi_dsi_dcs_set_display_off(dsi); > + ret = mipi_dsi_dcs_enter_sleep_mode(dsi); > + if (ret < 0) > + DRM_DEV_ERROR(ctx->dev, > + "Failed to enter sleep mode: %d\n", ret); > + > + return 0; > } > > static int st7703_unprepare(struct drm_panel *panel) > -- > 2.27.0 >