Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp633481pxv; Thu, 15 Jul 2021 12:03:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVXrqSL3IanPokluuS7SjlYpQKJ5Y31zh91CYs/xYJgADAeGsxQjtaEDt8b4PAcbG+Nart X-Received: by 2002:a05:6e02:1c2c:: with SMTP id m12mr3430907ilh.95.1626375794176; Thu, 15 Jul 2021 12:03:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626375794; cv=none; d=google.com; s=arc-20160816; b=UTrjzxITYxvajNW6S2wS/J6/EUIpHT95lilyzMYqGN+5Z113qpdARNTb328afZzdxZ 1QCrkkYy2TrYw6+j6LNGI2WMQ3wJYEIrlrX3wGZ+0f5sbMOeUx2MPHQJbmxSMuaqiYYH OtfbkPDujhO9bPNhzbwtkV2RzYWLjz0aJs3rMVgovfEnxDDJN1USxZsGpoNKEIPpjs0Z lQDVzYruMRPw8P/D+BY6Fx8ojoVlYdD+IQwuvYAsumr6sAK3Jz7sY83A+vKbSFMjzBMv VW/h16Svgc2C5JUurjfpNMR33c5nC1Q4I4W+y4XrsFeTUFG8FP23efi7Rk49AGGnPwVa ft8w== 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=IF/wGOWW6etiMxM+n0KGvNdDesTcnsNAWsvq6x1QkLA=; b=GpiXxbH4WlxiJH9bZoE/K5R353zSO+tVuetiy9/6wEyhAuuXSEZMxEkEEwU4C7R2Sr IrZvBcG3PW4d3/tA8UVhFbPiYQDF3j4w9mC1pRVcm4MULX11pai8GjWT8DebLG31C3Op cDADhYMJCKbFgBwxB1Q2dSp+N1c4ujIuw5cXPbsoM83DWxj8WDw6HELmupuviJZ1sJGu e6iQgKzL4jfTgZXTn1M0etZakCV611eJ54mzgm/PY6niFMJ6yqhbCuNcKeRqG08+Oo7W s9AY1esbXZmO1Pvd+eU19kF3NLBlCZ53JUGf9dWugbauj5hCrbP+h3SfheCySmqye3p1 r08A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ykMjRaW+; 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 a16si7034048ilb.149.2021.07.15.12.03.01; Thu, 15 Jul 2021 12:03:14 -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=ykMjRaW+; 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 S242510AbhGOTDt (ORCPT + 99 others); Thu, 15 Jul 2021 15:03:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:59020 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241900AbhGOSyl (ORCPT ); Thu, 15 Jul 2021 14:54:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0FC68613CC; Thu, 15 Jul 2021 18:51:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375106; bh=jSKqkZ+UU4PmhEyzCaosrPO3qLRJWJGjTNDb4ZWQLdQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ykMjRaW+a8NiPAofeM82UEcFHkg+S9B+WZClhuxP8O6L1+uLOpT+kCoZDhxBDs1UA x7lmurF35M4Kfm7pfOeB2nKGtT8zq7j4CGkVUxJShpuTATTwUBynKWbe/Y09X1iEdA 0HfgrG6R2Ms7PCt3HaFHDEY+3N6kWoggC9b+Qesk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Liviu Dudau , Pekka Paalanen , Lyude Paul , Brian Starkey , Daniel Vetter Subject: [PATCH 5.10 163/215] drm/arm/malidp: Always list modifiers Date: Thu, 15 Jul 2021 20:38:55 +0200 Message-Id: <20210715182628.344430770@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: Daniel Vetter commit 26c3e7fd5a3499e408915dadae5d5360790aae9a upstream. Even when all we support is linear, make that explicit. Otherwise the uapi is rather confusing. Acked-by: Liviu Dudau Acked-by: Pekka Paalanen Reviewed-by: Lyude Paul Cc: stable@vger.kernel.org Cc: Pekka Paalanen Cc: Liviu Dudau Cc: Brian Starkey Signed-off-by: Daniel Vetter Link: https://patchwork.freedesktop.org/patch/msgid/20210427092018.832258-2-daniel.vetter@ffwll.ch Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/arm/malidp_planes.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) --- a/drivers/gpu/drm/arm/malidp_planes.c +++ b/drivers/gpu/drm/arm/malidp_planes.c @@ -922,6 +922,11 @@ static const struct drm_plane_helper_fun .atomic_disable = malidp_de_plane_disable, }; +static const uint64_t linear_only_modifiers[] = { + DRM_FORMAT_MOD_LINEAR, + DRM_FORMAT_MOD_INVALID +}; + int malidp_de_planes_init(struct drm_device *drm) { struct malidp_drm *malidp = drm->dev_private; @@ -985,8 +990,8 @@ int malidp_de_planes_init(struct drm_dev */ ret = drm_universal_plane_init(drm, &plane->base, crtcs, &malidp_de_plane_funcs, formats, n, - (id == DE_SMART) ? NULL : modifiers, plane_type, - NULL); + (id == DE_SMART) ? linear_only_modifiers : modifiers, + plane_type, NULL); if (ret < 0) goto cleanup;