Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp497130ybt; Wed, 1 Jul 2020 03:35:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5wyCqMKV8/hQ8IXeVEXR4vP+7v8FVrD2y6BSthC6D6ltNxslH9uCP8ek5EkREdt/iNXyn X-Received: by 2002:aa7:c656:: with SMTP id z22mr14634705edr.101.1593599717265; Wed, 01 Jul 2020 03:35:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593599717; cv=none; d=google.com; s=arc-20160816; b=ym4UYo7UzCm8XS/vHixAYvFl6LffxUPFCvJEXc6aDTrUmFeEWRDoymtOpvZ+tRn5Oh 9ujc/HvvwB1o/LpkSF75K59P0qLiqj7c0VybNJCL7APFXw9d5Hz9yUSSbzJjplQraX2i x+3gJcCACU69GYU+25lukQtAfmYftbWVX/xz/sBFya5eMfAWII3R5A9LMtvAFUD1NjNL jzO5EvuNP5bMvd3hGSYlCbXq98G2ZpDydcgOwuHVyC8tL2PQRCoQB3LMIH35WopHNwDm lLMx0AzeE9r+oShufwcEe+ruf9OIZz5abpTIyqrARTQxeokmXo6R4wXhg3oaEAl4mrIe +VvA== 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:cc:to:from :dkim-signature; bh=jQgQ1ATNtmoZfECjpsg6g1FwY7gl0rSY1/CFCRfaLqU=; b=BujkLXa52+p9rRFc3/39psxbgUuOxPqleyujcTo24JMTZNiMU5uhPauubaYyUG7Yph CFBlLQqnOz+Yr9QVgsJY3vjIfRwq5i6DidPKH25AQ28JhZta0PTxO7/YEVloSpL4EZje /hzvAdGc3uTskMqjQTGK8OTClFUTPKQwX/6k84xmrpfR6QoGqxU/2mv0AxY98OaGTzJ3 PYa81G55y5+Z51ikgM3C9uX7dac1f/mP1stXqFwb44dVSCPS9RGK9ebKZClKV5CLmo9S 9nk93IoW7pobPE/pvd3yZx53Ol70FPDJ5qtAzyk1XP+YDXhTQtIwzaPGes6w1U86QfDZ AhJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=LKl1+NVC; 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=pass (p=NONE sp=NONE dis=NONE) header.from=megous.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x65si4080518ede.585.2020.07.01.03.34.54; Wed, 01 Jul 2020 03:35: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; dkim=pass header.i=@megous.com header.s=mail header.b=LKl1+NVC; 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=pass (p=NONE sp=NONE dis=NONE) header.from=megous.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730105AbgGAKcG (ORCPT + 99 others); Wed, 1 Jul 2020 06:32:06 -0400 Received: from vps.xff.cz ([195.181.215.36]:42456 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730004AbgGAKbm (ORCPT ); Wed, 1 Jul 2020 06:31:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1593599494; bh=3QXBBwf2NX/RkQpQ64nV5k6ulAezZ6ucTw8Gf1SveRQ=; h=From:To:Cc:Subject:Date:References:From; b=LKl1+NVC7OIRwW9kuhH1lYlhx/QATsVz6EqGOZ63DG8aeRkXN0rTIhc9f6UOPJitL LVlzEHNsG0HM6IQzDPjrY4TaTuXolUuCrVOQiXCcfz0LpUTXwPe6W5T0YSyIcX7tJm peIrF4ciQlz7dO1gjRFVXkIcP1QX6IkkPKaseu+M= From: Ondrej Jirman To: linux-sunxi@googlegroups.com, Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , =?UTF-8?q?Guido=20G=C3=BCnther?= , Purism Kernel Team , Rob Herring , Maxime Ripard , Chen-Yu Tsai , Linus Walleij , Icenowy Zheng Cc: Ondrej Jirman , 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: [PATCH v6 11/13] drm/panel: st7703: Assert reset prior to powering down the regulators Date: Wed, 1 Jul 2020 12:31:24 +0200 Message-Id: <20200701103126.1512615-12-megous@megous.com> In-Reply-To: <20200701103126.1512615-1-megous@megous.com> References: <20200701103126.1512615-1-megous@megous.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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