drm/vc4: crtc: Turn pixelvalve reset into a function
authorMaxime Ripard <maxime@cerno.tech>
Thu, 3 Sep 2020 08:00:52 +0000 (10:00 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Mon, 7 Sep 2020 16:03:22 +0000 (18:03 +0200)
commit5ffabf5001b9cdcb0a73da6cbf316833077aa4b8
treeaf0abb410dfe6ab03a329dd5b24c46398d4b9a31
parenteb92bc72cdab2550fa1c5b05b866bf209df9fd08
drm/vc4: crtc: Turn pixelvalve reset into a function

The driver resets the pixelvalve FIFO in a number of occurences without
always using the same sequence.

Since this will be critical for BCM2711, let's move that sequence to a
function so that we are consistent.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Tested-by: Chanwoo Choi <cw00.choi@samsung.com>
Tested-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/fb31003a9eee02c4b949556299ff41f0a113499a.1599120059.git-series.maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_crtc.c