Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp660358pxv; Thu, 15 Jul 2021 12:46:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5APE40aTJ4yttFw+KpUDxdH9gbKnG2D5KwVlOmb4pi/5QnnNKhQP1frbguDY9MKWbNpod X-Received: by 2002:a17:906:3919:: with SMTP id f25mr7380751eje.190.1626378366394; Thu, 15 Jul 2021 12:46:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626378366; cv=none; d=google.com; s=arc-20160816; b=bRAECmLKMaZ8tzETO/WoDa6XTnwSBKnT+wIMfU349ITECec37esHqraUwuUtTpbWtV F3+kbXZNvwrXQUQnzTYCDqrtSdJOONaG1wLh5FXrxK9ifdY/aZ+VAe2IaL17zLuOtT0e zR66lZmpoo3vz7Tt3YHznT6FHdg+4Nq3PeEeTMcSAtUaFsD55+vktTduiOhIbCilLd2q a3I11O907xOcKED5rnzXmQm/ws+T9EeJXFE520zoMXP5OCyszWvPdFv+eCko7IiEu9kj uqxGwC2IkpnNeAk0Oe3MnMWn4ljCKvGAs8wIEgXAKqpA7LbiUT1+fsQ4N8N/z3p6SX3F UNhQ== 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=jIMgGHOdwiPXMD2/DHlUxTnNyKjkrA9Y/1q39kwrJqE=; b=0e/trhWS/7bxfgVfcL5ag+zmrzLuHX59IFS/CIY95DzgYCuTgpK/NEQ2MSstHq3laL cZ7UBbdp2oxLO0+Nz7L1x4x1KJLam+wy3k/NVzSdpyZhNEPJpKdofBo5c4odN6BScbVU iKEvzqsdIGUSX7uPOy+lqK9eD8rZfuTL/bV3cyMwffMVlAXkzLSYHZC8hOJQsmydL2Yw +k+XMEO876W9lfKX5w/y3O8dG96y2lsYZYwnk4aZnSq1sE2AmSvw0tRrHZkl7Haj9FDc lmo0HXOhwRPFpGbbsj8qS6nKhQOfKGPErkP00CffmBI5Fuf4eHzaRIKYGZDO5dSh0MiP QqpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=y1LIn04q; 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 i11si10292663edb.471.2021.07.15.12.45.43; Thu, 15 Jul 2021 12:46:06 -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=y1LIn04q; 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 S1344014AbhGOToK (ORCPT + 99 others); Thu, 15 Jul 2021 15:44:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:51040 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244817AbhGOTPQ (ORCPT ); Thu, 15 Jul 2021 15:15:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A67BB61410; Thu, 15 Jul 2021 19:11:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626376283; bh=jdUvwb3AuhbX4v/oe7Lp7k7fYDLru8GDX8SXECYkGlk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=y1LIn04qJljjg5Q61E/8AcRu0rqAjxa+aladmdod0J0NxaRR5wF0fYueclQWfl/a0 8sCNciTSrhv5NkJekB1qGIvgxu62EV8ODIiYWCyrmBC64LhGyzGfOCSbP+bFj2QJ88 RkZUa7DLa+A5XQZOYvV8RCGBPd7c5anvKuE+SEI4= 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.13 203/266] drm/arm/malidp: Always list modifiers Date: Thu, 15 Jul 2021 20:39:18 +0200 Message-Id: <20210715182645.963972159@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: 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 @@ -927,6 +927,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; @@ -990,8 +995,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;