Commit b6821b0d authored by Oliver Graute's avatar Oliver Graute Committed by Greg Kroah-Hartman

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: ef8f3177 (staging: fbtft: use init function instead of init sequence)
Cc: stable@vger.kernel.org
Signed-off-by: default avatarOliver Graute <oliver.graute@kococonnector.com>
Link: https://lore.kernel.org/r/20220210085322.15676-1-oliver.graute@kococonnector.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 754e0b0e
...@@ -144,6 +144,8 @@ static int init_display(struct fbtft_par *par) ...@@ -144,6 +144,8 @@ static int init_display(struct fbtft_par *par)
{ {
int rc; int rc;
par->fbtftops.reset(par);
rc = init_tearing_effect_line(par); rc = init_tearing_effect_line(par);
if (rc) if (rc)
return rc; return rc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment