[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20220210085322.15676-1-oliver.graute@kococonnector.com>
Date: Thu, 10 Feb 2022 09:53:22 +0100
From: Oliver Graute <oliver.graute@...oconnector.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Dennis Menschel <menschel-d@...teo.de>
Cc: Oliver Graute <oliver.graute@...oconnector.com>,
stable@...r.kernel.org, dri-devel@...ts.freedesktop.org,
linux-fbdev@...r.kernel.org, linux-staging@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: [PATCH v1] staging: fbtft: fb_st7789v: reset display before initialization
In rare cases the display is flipped or mirrored. This was observed more
often in a low temperature environment. A clean reset on init_display()
should help to get registers in a sane state.
Fixes: ef8f317795da (staging: fbtft: use init function instead of init sequence)
Cc: stable@...r.kernel.org
Signed-off-by: Oliver Graute <oliver.graute@...oconnector.com>
---
drivers/staging/fbtft/fb_st7789v.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/staging/fbtft/fb_st7789v.c b/drivers/staging/fbtft/fb_st7789v.c
index 3a280cc1892c..0a2dbed9ffc7 100644
--- a/drivers/staging/fbtft/fb_st7789v.c
+++ b/drivers/staging/fbtft/fb_st7789v.c
@@ -82,6 +82,8 @@ enum st7789v_command {
{
int rc;
+ par->fbtftops.reset(par);
+
rc = init_tearing_effect_line(par);
if (rc)
return rc;
--
2.17.1
Powered by blists - more mailing lists