Commit bf6de8e6 authored by Maxime Ripard's avatar Maxime Ripard

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: 39fcb280 ("drm/vc4: txp: Turn the TXP into a CRTC of its own")
Acked-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: default avatarMaxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20210507150515.257424-2-maxime@cerno.tech
parent a122d70b
...@@ -507,7 +507,7 @@ static int vc4_txp_bind(struct device *dev, struct device *master, void *data) ...@@ -507,7 +507,7 @@ static int vc4_txp_bind(struct device *dev, struct device *master, void *data)
return ret; return ret;
encoder = &txp->connector.encoder; 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, ret = devm_request_irq(dev, irq, vc4_txp_interrupt, 0,
dev_name(dev), txp); dev_name(dev), txp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment