staging: fbtft: fb_st7789v: reset display before initialization
authorOliver Graute <oliver.graute@kococonnector.com>
Thu, 10 Feb 2022 08:53:22 +0000 (09:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Mar 2022 10:48:07 +0000 (11:48 +0100)
commitbde6a6b111b9e05cfee9d716b48b125858e8de9c
tree4865f6d30386adfa8a99e12386fe6bb608046b26
parentba9efbbf6745750d34c1e87c9539ce9db645ca0a
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>
drivers/staging/fbtft/fb_st7789v.c