Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp768253ybt; Wed, 1 Jul 2020 09:30:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXHJa3kvUwgLZlm1zjhE50iSkFPmP4NMqzzSWG3gYu8zhgqr7f2+JYnym5UKvCpiybHVzh X-Received: by 2002:aa7:da8d:: with SMTP id q13mr25957286eds.339.1593621039534; Wed, 01 Jul 2020 09:30:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593621039; cv=none; d=google.com; s=arc-20160816; b=m2vglyfxXN/+TyRdmEJpQ9TuRNvscGQbprNsnY2b70RqcVNvvMk+kn9FzfToKp+s3l ZayQNWeZkWUC5hn2y5K5Hyc95TdtVqis7VxD9oVM5zMRRBzW0dru95O0eROeRGWmf28j liEQX3PQCFMhDH/RvFUIWzLsvps9CjSIeB1Q4zgjGaDAp0YrKSLCvLghSRnTLr8nYfOG 9NhRfHCaXWGYPIm1s1bexH2KSefzu+IYaetezTZEcG7Xk8J2R5qWHXbdDAWgibjMV3Yt qo/RVBenIARwtw82Mj0qRxD4CAjrgPhsXyyRIgNvawU3gERMndsxEaxMROhu8710Cftz PrJQ== 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=0G2P7APITxq/ZJYy1NhmeruFjjIh4XzXMvWFyT42QAg=; b=GipsPO85WwbLh8fHYLhxFxrVjni8xaSdFrOLLLaWj+McNkrwmFLAuRZnFHkEknDJZz 31+RKLm6vQiXJEBhII563aD+YK/iaZbEP6EUY+ZK6r39H6HM/rZ7tA1Vt66feAk725yz JCncaCtXAAcQq1EOoZsyBe357XSm5CHtFHYPdCJlGpymY2mHKnErejRRSzuyGbDfqkbZ tv6ZK/rUNtsE93xHdrlwkS6zUxMqyXLawjyKmGYQzyA3E3wRKFxURw9CMAeTj66hnX4F 13qDoBpodrhcz379AAzf3x+DAGpLV6z0gwTucBqvAgjdadpgp2sBHasK6eAItamzZ67e UTSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=eHVGK91A; 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 mf17si4184627ejb.86.2020.07.01.09.30.15; Wed, 01 Jul 2020 09:30:39 -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=eHVGK91A; 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 S1732451AbgGAQ3p (ORCPT + 99 others); Wed, 1 Jul 2020 12:29:45 -0400 Received: from vps.xff.cz ([195.181.215.36]:52418 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732403AbgGAQ3k (ORCPT ); Wed, 1 Jul 2020 12:29:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1593620975; bh=Art3SEaLL0gg4sGC1zffX8nkr5h5wiQEQOPPZACSoO0=; h=From:To:Cc:Subject:Date:References:From; b=eHVGK91AoSx3LoUdiU6ONarlJb+dz4F4+O+GDK8noP+yrleUmiARst0aEwqTr+uY0 zkRg5e/LfKlYjMSaLRSFUu8zLrgkx/zPEon8+0ulPi+aQbtegEJ4AVqn6fXsqGqi8t QEeFNpXO+BeN+CpTWg6wKLLme3X4JydQo6t/DYMY= 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 v7 11/13] drm/panel: st7703: Assert reset prior to powering down the regulators Date: Wed, 1 Jul 2020 18:29:26 +0200 Message-Id: <20200701162928.1638874-12-megous@megous.com> In-Reply-To: <20200701162928.1638874-1-megous@megous.com> References: <20200701162928.1638874-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 7750179bca60..8996ced2b721 100644 --- a/drivers/gpu/drm/panel/panel-sitronix-st7703.c +++ b/drivers/gpu/drm/panel/panel-sitronix-st7703.c @@ -415,6 +415,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