summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Graute <oliver.graute@kococonnector.com>2022-02-10 09:53:22 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-03-02 11:51:18 +0100
commit95adc8e04ae57f7ba2f2b4e75e6950ab03204940 (patch)
tree619f74cd3d7d7c8f176ae92f049321a578b14942
parent33c73a4d7e7b19313a6b417152f5365016926418 (diff)
staging: fbtft: fb_st7789v: reset display before initialization
commit b6821b0d9b56386d2bf14806f90ec401468c799f upstream. 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@vger.kernel.org Signed-off-by: Oliver Graute <oliver.graute@kococonnector.com> Link: https://lore.kernel.org/r/20220210085322.15676-1-oliver.graute@kococonnector.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/fbtft/fb_st7789v.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/fbtft/fb_st7789v.c b/drivers/staging/fbtft/fb_st7789v.c
index abe9395a0aef..861a154144e6 100644
--- a/drivers/staging/fbtft/fb_st7789v.c
+++ b/drivers/staging/fbtft/fb_st7789v.c
@@ -144,6 +144,8 @@ static int init_display(struct fbtft_par *par)
{
int rc;
+ par->fbtftops.reset(par);
+
rc = init_tearing_effect_line(par);
if (rc)
return rc;