Skip to content

Commit 56dc187

Browse files
redbrain17gregkh
authored andcommitted
staging: fbtft: fb_st7789v: reset display before initialization
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 [sudip: adjust context] Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 3514938 commit 56dc187

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/staging/fbtft/fb_st7789v.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ enum st7789v_command {
8282
*/
8383
static int init_display(struct fbtft_par *par)
8484
{
85+
par->fbtftops.reset(par);
86+
8587
/* turn off sleep mode */
8688
write_reg(par, MIPI_DCS_EXIT_SLEEP_MODE);
8789
mdelay(120);

0 commit comments

Comments
 (0)