]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: hvs: Reset muxes at probe time
authorMaxime Ripard <maxime@cerno.tech>
Mon, 28 Mar 2022 15:36:54 +0000 (17:36 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Fri, 8 Apr 2022 11:38:06 +0000 (13:38 +0200)
commitf8953c9b6ce54fbd9f08b70941fcd8c6a96275a5
tree114aace1f9b65c09ae6c96f70a4c0a128f3e649c
parent159e99f7796d1e9d9435c300fa6c96c734b31f70
drm/vc4: hvs: Reset muxes at probe time

By default, the HVS driver will force the HVS output 3 to be muxed to
the HVS channel 2. However, the Transposer can only be assigned to the
HVS channel 2, so whenever we try to use the writeback connector, we'll
mux its associated output (Output 2) to the channel 2.

This leads to both the output 2 and 3 feeding from the same channel,
which is explicitly discouraged in the documentation.

In order to avoid this, let's reset all the output muxes to their reset
value.

Fixes: 51c4f5a96dda ("drm/vc4: crtc: Assign output to channel automatically")
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://lore.kernel.org/r/20220328153659.2382206-2-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_hvs.c