Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp635425pxv; Thu, 15 Jul 2021 12:05:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvtM7gYukJzOioCTajkq/4p+u5h5KqN4wZoHjzNscnUZMbD542Wy6Om5aBEe21qfoatzJj X-Received: by 2002:a05:6602:1492:: with SMTP id a18mr4369792iow.200.1626375932623; Thu, 15 Jul 2021 12:05:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626375932; cv=none; d=google.com; s=arc-20160816; b=drZiGUWXAJCV8PWXO0K2GItIGbk93Sun6cDfVE0VXo9XYNiCwHlKNzQrESRHli4UUd D8l84J8k06t90+D1dfh1cPOQ6flj1gyuEPIiuAH8M7B3HJEs2O/3kkqPcwddmsJ76Lve TRW/rTKiQKkds6TLGU2RVvv2gMOu/u2J7k9g1qRHIWfOjCurVoKdwpdw5DWm0xqUmynY 39x+XGy5EqjDSTIiLKgaOxf+TaKCfDRjKlTWuyzNMmDVUhlKGFkNy46Eocv4h4gWirVA 32miSbn9cHKLvzY+ylh1qIGM4HX9lnw/kCALCF8335HuYpmNDsIqTf8OjkWsgzLNG4xE iSgQ== 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=SKry7yWh9PsbavSHKZThYl51n7LFi95+mqinqPUVQrg=; b=0ftQKVtdviYmGbS4UCsclF8NzNUl3BIAc4y7Bri0Bf5PV0GejahlUppJpJkO0oJuK6 XZ1y1VMKCNWW8r5vugqYD/YwhFBeHVCzCXs/TOjJzMtdm0zsp/Ce6kf3ZO/g7G/O4tDK Ij4LCG+pSbtglla1ETPLkTTmUvUban/TZYmJMkUp3PEE/58N9Uil0Y+tVs1i/xbPdiRv bnSDI6PvZi/ac0y7AkuQBP6tuRyKUVf+/reXDTq5g1xA5KFFd/+Lz1rZ30b+s0Vfrovi Cqm9pyajkooFr/AMbZiDFec1AZ0GR3JvzEB4iQv4G77fzY8U02BckiFEHP8+7iMUsDoT Ertg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="RheJ/phh"; 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 i13si8632559ilm.156.2021.07.15.12.05.19; Thu, 15 Jul 2021 12:05:32 -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="RheJ/phh"; 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 S242766AbhGOTFh (ORCPT + 99 others); Thu, 15 Jul 2021 15:05:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:60434 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241829AbhGOSz7 (ORCPT ); Thu, 15 Jul 2021 14:55:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AEE4A613D6; Thu, 15 Jul 2021 18:53:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375186; bh=S/HQrOVbppMec7LdP7TGunGwI3Po1YPh9Qvj5tlwGvU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RheJ/phhlG2aPAKeRiuwbkyuH6eRk1TRn3/oJUvcoDaC9U26hkDOTEFRrvS+h9H00 cXquNxwae5b21jXSuGBNI+yXBNBgS2Ua9U+FEb4Hk4+APKB2yFVw7y+3vKBrDO6nvp f2iWMPaxihvXlQ7FSf2myvqlCqGCFssWgEQtvSSI= 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.10 153/215] drm/vc4: txp: Properly set the possible_crtcs mask Date: Thu, 15 Jul 2021 20:38:45 +0200 Message-Id: <20210715182626.571416114@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182558.381078833@linuxfoundation.org> References: <20210715182558.381078833@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 @@ -503,7 +503,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);