summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Ripard <maxime@cerno.tech>2021-05-07 17:05:04 +0200
committerMaxime Ripard <maxime@cerno.tech>2021-05-24 14:41:28 +0200
commitbf6de8e61509f3c957d7f75f017b18d40a18a950 (patch)
treed90bb9a2c41e88628eef8d6dde5ad0cbc49d27b6
parenta122d70bb81f1429e2ce472907c358adfa3ebe5f (diff)
downloadlinux-bf6de8e61509f3c957d7f75f017b18d40a18a950.tar.gz
linux-bf6de8e61509f3c957d7f75f017b18d40a18a950.tar.bz2
linux-bf6de8e61509f3c957d7f75f017b18d40a18a950.zip
drm/vc4: txp: Properly set the possible_crtcs mask
The current code does a binary OR on the possible_crtcs variable of the TXP encoder, while we want to set it to that value instead. Cc: <stable@vger.kernel.org> # v5.9+ Fixes: 39fcb2808376 ("drm/vc4: txp: Turn the TXP into a CRTC of its own") Acked-by: Thomas Zimmermann <tzimmermann@suse.de> Signed-off-by: Maxime Ripard <maxime@cerno.tech> Link: https://patchwork.freedesktop.org/patch/msgid/20210507150515.257424-2-maxime@cerno.tech
-rw-r--r--drivers/gpu/drm/vc4/vc4_txp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_txp.c b/drivers/gpu/drm/vc4/vc4_txp.c
index c0122d83b651..2fc7f4b5fa09 100644
--- a/drivers/gpu/drm/vc4/vc4_txp.c
+++ b/drivers/gpu/drm/vc4/vc4_txp.c
@@ -507,7 +507,7 @@ static int vc4_txp_bind(struct device *dev, struct device *master, void *data)
return ret;
encoder = &txp->connector.encoder;
- encoder->possible_crtcs |= drm_crtc_mask(crtc);
+ encoder->possible_crtcs = drm_crtc_mask(crtc);
ret = devm_request_irq(dev, irq, vc4_txp_interrupt, 0,
dev_name(dev), txp);