Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp710272pxv; Thu, 15 Jul 2021 14:07:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwcLTPJxDcePzWO7lsV6/JQypE47JyLcaR/m1EorIZPrG0yRxWZyJKdb2sr3BgpeqVBcN3 X-Received: by 2002:a05:6402:2317:: with SMTP id l23mr9736052eda.265.1626383255915; Thu, 15 Jul 2021 14:07:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626383255; cv=none; d=google.com; s=arc-20160816; b=pozuCP633jAdzJ+/d3L5cBqS+ZyaWMVl9xbR43s3H5ydtln14uFrmvqR9asf+Jf0wT FHELFJ1xicAfUPFxgyXzlvTGuuFJTzNQ5YP5+USVt5Y0mhdSV5zBuc4ef+9Dri+y+oii pDFrmZZSbVhY4wA8T/yYGDZ1aJDbf78ZvqF6l9KXQZPy/ucSkSF0s4fYT7KXtkwGE7Ja k0vkrUfjdZzDQRiXvsJjisUEoFa905ooJdkZjdpAr6mCRv5QjSTYBXSfndXscanB+uDV 5yC+yC2VCo41WUp17MHX38jZzV5qciXT8kUq+d4kGzylQFsWEx0gLfu7WcmD8ztXfhXH E6jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=c0Li+G9EClpcWx66tDlkfsfGOq2UdhmHDuZD4p47UxI=; b=xQl7xwt7y6fiOawntAUWRby7fP0CL4OPS1S9rRqDmQ0L4c4zj/vmwzNzDEdPfHGgCN 9WOtEAKW6LoVK3PDd5IVeG5iO5dXXFCZcxznB1pf4cGc4Xqli5on/OwZ+59xpL75rv1E FF5B6J1CoFJkbgomiCv5SiHKXJZ1QCH3qJwW1myg7xpfFMZeAEJbKEHmKYiUPfpjApHh N1NR/Je5onHm3OE7U+NJeKrLAjtYki6cv32ybgmBryPdtZcxCpFfaBntLzAvkEU8wkhd aj64D7nIT45JwwXkBBwmy9l+OOzF7Bqkmpnxs/ImyQ1eCWgi9skPEkrJJBTuoOZ4jYmm pfxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iyC1IaDp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mc17si8410773ejb.622.2021.07.15.14.07.09; Thu, 15 Jul 2021 14:07:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iyC1IaDp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245057AbhGOTTO (ORCPT + 99 others); Thu, 15 Jul 2021 15:19:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:39500 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243669AbhGOTEi (ORCPT ); Thu, 15 Jul 2021 15:04:38 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 19153613D1; Thu, 15 Jul 2021 19:00:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375626; bh=OTxsgqVgi1Gufn4LEmptwvp+ZGtUdUp4cG7hu4xj9Pk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iyC1IaDpTQ8lfBuFm3VzH7hdunMo+1/E8nTZ3QikW6UYTbFsFDjH8ydkbsGUW8RRt Ccj+dQ5Sl8yWMZ2t7kf4urKr+uzdelrCW2uSY1MhYaYfaLfZtsVW/04Xsta5B3Fjlj 9OOxoNHtMmEoE49op4rRpSZ3Bj/hqc+RvC9YEs7o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Zimmermann , Maxime Ripard Subject: [PATCH 5.12 168/242] drm/vc4: txp: Properly set the possible_crtcs mask Date: Thu, 15 Jul 2021 20:38:50 +0200 Message-Id: <20210715182622.835172841@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182551.731989182@linuxfoundation.org> References: <20210715182551.731989182@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maxime Ripard commit bf6de8e61509f3c957d7f75f017b18d40a18a950 upstream. 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: # v5.9+ Fixes: 39fcb2808376 ("drm/vc4: txp: Turn the TXP into a CRTC of its own") Acked-by: Thomas Zimmermann Signed-off-by: Maxime Ripard Link: https://patchwork.freedesktop.org/patch/msgid/20210507150515.257424-2-maxime@cerno.tech Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/vc4/vc4_txp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 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 *d 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);