Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp657344pxv; Thu, 15 Jul 2021 12:40:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFzgqO0Rp+YC+OVjdZvY1VPwzd51tpzlKvCqoxPhZ9Bz3N+geiPD6mSN/sm6ld545T2HBA X-Received: by 2002:a02:9f8e:: with SMTP id a14mr5431774jam.55.1626378013935; Thu, 15 Jul 2021 12:40:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626378013; cv=none; d=google.com; s=arc-20160816; b=HcMAgD8JjOCILOzsGbEMhwAGJx+bzI5ZzyMHzC8VIAKhReEoQLRgsDgT96e4p6rZcP 3O5w94xza9sHcxen/kprbywm0tehQEMRmIzypbW4+pyb4SNuRa5o11nlsdiJtEMV4KoL 2RE9apmMR54AV0MBC5BGJrot9kYJL0aZv7sD7AR5HhUrgeHnKHnRCNNO0h2MgEfTauky oZQe5A+UgIpfV6ZDxUdk9bhHhtlb0COmpvwq7tYk/UvwXplP5atAKk3NvXZPa9keJj27 gqwg705SI00jSmD1JtIdfAxwLERov+un/Z1et8BDmFrAIrr2EKHqb2DPklmQ5CNCPPp2 k/Qg== 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=js62GqkbrRCvTQlPy/RyAIHJzxaO6u4nEj7VUndQIUatceA97xDd7QTp/Gj3fI0WBg 00bw0iIdZhPBtod+aBWfnlA93Qq1b3mzmS3YeBWgQ/XTCN4M505wiSxQHbgOIbxiDMOw PFgp7mf0bnvBk9gRy2pbQcYxw3GT5Nj7W8ok3khtRmDYVliKbxtqCdAJA8mAg3LcKBVm /TxTRz2Ks6rz48cwbaNJIid8OF0HB29Z/hbfPArYHNspFpoMbhtOYp7gPUzdg9yvVUN1 LpgU/vL/2+6AYm8lGcxkCrqMaNy62GJfDrNNoVc8fCjgRQrYF0YTI9hXsm2PmS6Aa5Ky iJXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xGKn2u5r; 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 m7si6898493ilq.114.2021.07.15.12.40.01; Thu, 15 Jul 2021 12:40:13 -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=xGKn2u5r; 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 S1344457AbhGOTl1 (ORCPT + 99 others); Thu, 15 Jul 2021 15:41:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:51132 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244630AbhGOTO7 (ORCPT ); Thu, 15 Jul 2021 15:14:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D1BC161415; Thu, 15 Jul 2021 19:10:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626376255; bh=OTxsgqVgi1Gufn4LEmptwvp+ZGtUdUp4cG7hu4xj9Pk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xGKn2u5rs4Og7l1DChh3NbKZCyeXZawxfdASKP/BC2RLxiFHoEHK/Fn6kmRCbb9Ar aDUXHv0Ek2FK9ylMj/k7jaBovFN0zkA8MoY0mLB0+3OO1NyJyUI1ZnCTVEObG0CF/m Z7mjALSUp1gTyrSpVnMle2Uxe+5szJUX6acnVUeA= 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.13 192/266] drm/vc4: txp: Properly set the possible_crtcs mask Date: Thu, 15 Jul 2021 20:39:07 +0200 Message-Id: <20210715182644.740180672@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182613.933608881@linuxfoundation.org> References: <20210715182613.933608881@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);