Skip to content

Commit

Permalink
staging: fbtft: fb_st7789v: reset display before initialization
Browse files Browse the repository at this point in the history
commit b6821b0 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: ef8f317 (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>
  • Loading branch information
redbrain17 authored and gregkh committed Mar 2, 2022
1 parent 33c73a4 commit 95adc8e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/staging/fbtft/fb_st7789v.c
Expand Up @@ -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;
Expand Down

0 comments on commit 95adc8e

Please sign in to comment.