devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chris Morgan <macroalpha82@gmail.com>
To: linux-rockchip@lists.infradead.org
Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
	sebastian.reichel@collabora.com, daniel@ffwll.ch,
	airlied@gmail.com, sam@ravnborg.org, neil.armstrong@linaro.org,
	heiko@sntech.de, conor+dt@kernel.org,
	krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org,
	Chris Morgan <macromorgan@hotmail.com>
Subject: [PATCH V3 2/6] drm/panel: nv3051d: Hold panel in reset for unprepare
Date: Wed, 15 Nov 2023 18:17:38 -0600	[thread overview]
Message-ID: <20231116001742.2340646-3-macroalpha82@gmail.com> (raw)
In-Reply-To: <20231116001742.2340646-1-macroalpha82@gmail.com>

From: Chris Morgan <macromorgan@hotmail.com>

Improve the panel's ability to restore from suspend by holding the
panel in suspend after unprepare.

Fixes: b1d39f0f4264 ("drm/panel: Add NewVision NV3051D MIPI-DSI LCD panel")
Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
---
 drivers/gpu/drm/panel/panel-newvision-nv3051d.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/panel/panel-newvision-nv3051d.c b/drivers/gpu/drm/panel/panel-newvision-nv3051d.c
index 79de6c886292..c44c6945662f 100644
--- a/drivers/gpu/drm/panel/panel-newvision-nv3051d.c
+++ b/drivers/gpu/drm/panel/panel-newvision-nv3051d.c
@@ -261,6 +261,8 @@ static int panel_nv3051d_unprepare(struct drm_panel *panel)
 
 	usleep_range(10000, 15000);
 
+	gpiod_set_value_cansleep(ctx->reset_gpio, 1);
+
 	regulator_disable(ctx->vdd);
 
 	return 0;
-- 
2.34.1


  parent reply	other threads:[~2023-11-16  0:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-16  0:17 [PATCH V3 0/6] rockchip: Add Powkiddy RK2023 Chris Morgan
2023-11-16  0:17 ` [PATCH V3 1/6] dt-bindings: display: panel: Update NewVision NV3051D compatibles Chris Morgan
2023-11-16 20:25   ` Krzysztof Kozlowski
2023-11-16  0:17 ` Chris Morgan [this message]
2023-11-16  0:29   ` [PATCH V3 2/6] drm/panel: nv3051d: Hold panel in reset for unprepare Jessica Zhang
2023-11-16  0:17 ` [PATCH V3 3/6] nv3051d: Add Powkiddy RK2023 Panel Support Chris Morgan
2023-11-16  0:29   ` Jessica Zhang
2023-11-16  0:17 ` [PATCH V3 4/6] dt-bindings: arm: rockchip: Add Powkiddy RK2023 Chris Morgan
2023-11-16  0:17 ` [PATCH V3 5/6] arm64: dts: rockchip: Update powkiddy,rgb30 include to rk2023 DTSI Chris Morgan
2023-11-16  0:17 ` [PATCH V3 6/6] dt-bindings: arm: rockchip: Add Powkiddy RK2023 Chris Morgan
2023-11-16 20:25   ` Krzysztof Kozlowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231116001742.2340646-3-macroalpha82@gmail.com \
    --to=macroalpha82@gmail.com \
    --cc=airlied@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=daniel@ffwll.ch \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=heiko@sntech.de \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=macromorgan@hotmail.com \
    --cc=neil.armstrong@linaro.org \
    --cc=robh+dt@kernel.org \
    --cc=sam@ravnborg.org \
    --cc=sebastian.reichel@collabora.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).