Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp749982ybt; Wed, 1 Jul 2020 09:07:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYyzAXAXa499Pr5gDdCyEt6oQYPkE4pbDCVt6RbQ2y/UxSqhXQDaG5Hd1Q5oS9yWTg5eJ9 X-Received: by 2002:aa7:c496:: with SMTP id m22mr16688507edq.336.1593619637122; Wed, 01 Jul 2020 09:07:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593619637; cv=none; d=google.com; s=arc-20160816; b=vf78GkJ1fdCX1a99u5PwFkCk1wYQ5XPvWCZSqOpBbc2x41aj6jIPeIV6UvsdqpTe/c 5MDwoqAMzPc+i2n9UbhYWs24O0yMIkTuH6P3pb3AEiARc2+ax+BjOEEhW8W9t/YA/fZi TQ9Spmjm0Nq0xRJKmLSNK/OzHYA1DSgv+w56aIaqdwjoOrkEqPIHOZLWaEU0B0rvvaq5 X5Y/NnD+JOrB0FaJIdYupA1M7HN2V2/uSYeopoqP1AQoDNIPv5EzNqtF7uOX2Bswps1a 0EyretZlA+thd0cSyQ/Lqz3D/I5cFAHcV17hYGPUB1wq96iXZauxMtEYp0B4YHbAgS5I J6aw== 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=HQXfvhwczVdU9Z6rPNX+0UMRlmhbwPNiDzgNW6PLsFk=; b=zcKK1AEL23WHzKhl8CD7Nl7NjUHd4yVUOs6otUn2V04Uz+lsAbSOzmhmY3bgTlGzcM Pk6ysieSwVSzFrEI4zYOg7vnkjTHiKMqNs3cwUs9nSEw/TNnZct5B46n7pv1VdJr7nPI kQjptAJRRTG3ZHBGA9jSSHsWf/KtWKbl8KNDPXihhesy1SjTGyl8RhKqPPNu1mfFsx/F h0RYZz3ajEAgcEvYNhJI9Mf0vo1ta2Jt1uWi/IeHlGxzY7lE258yR+AMqegdmCpX7dNd otfLrehVKxy4xgkk+mH4vsevaeFrzGGF7Jtxq1NkKD1jVZ7+FC6hbSq5oQxpDalIN37y XynA== 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 fi17si3923973ejb.724.2020.07.01.09.06.53; Wed, 01 Jul 2020 09:07:17 -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 S1731951AbgGAQEr (ORCPT + 99 others); Wed, 1 Jul 2020 12:04:47 -0400 Received: from honk.sigxcpu.org ([24.134.29.49]:34626 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726612AbgGAQEr (ORCPT ); Wed, 1 Jul 2020 12:04:47 -0400 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 0AA3BFB03; Wed, 1 Jul 2020 18:04: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 d51v51hIpkHm; Wed, 1 Jul 2020 18:04:45 +0200 (CEST) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id E33D740972; Wed, 1 Jul 2020 18:04:44 +0200 (CEST) Date: Wed, 1 Jul 2020 18:04:44 +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 11/13] drm/panel: st7703: Assert reset prior to powering down the regulators Message-ID: <20200701160444.GJ174356@bogon.m.sigxcpu.org> References: <20200701103126.1512615-1-megous@megous.com> <20200701103126.1512615-12-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-12-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:24PM +0200, Ondrej Jirman wrote: > The reset pin is inverted, so if we don't assert reset, the actual gpio > will be high and may keep driving the IO port of the panel. Reviewed-by: Guido G?nther > > Signed-off-by: Ondrej Jirman > Reviewed-by: Linus Walleij > --- > drivers/gpu/drm/panel/panel-sitronix-st7703.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7703.c b/drivers/gpu/drm/panel/panel-sitronix-st7703.c > index 0c4167994d01..e303b7b1a215 100644 > --- a/drivers/gpu/drm/panel/panel-sitronix-st7703.c > +++ b/drivers/gpu/drm/panel/panel-sitronix-st7703.c > @@ -417,6 +417,7 @@ static int st7703_unprepare(struct drm_panel *panel) > if (!ctx->prepared) > return 0; > > + gpiod_set_value_cansleep(ctx->reset_gpio, 1); > regulator_disable(ctx->iovcc); > regulator_disable(ctx->vcc); > ctx->prepared = false; > -- > 2.27.0 >