Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp711533pxv; Thu, 15 Jul 2021 14:09:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwf0FnHYXe5SEuHwxRTdLXWhboyk0ebL55pvJr2oE7y/r5zrD1ER2636lbezqwlIZ48w7pg X-Received: by 2002:a05:6402:1bd0:: with SMTP id ch16mr9737103edb.215.1626383364298; Thu, 15 Jul 2021 14:09:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626383364; cv=none; d=google.com; s=arc-20160816; b=UKyorbF/pmFIfo+pF3akrMMFkRS6MMl81Udc4j4OADlm9Lv1mH668RSk8v6m478nuL Fy1izn9Z272LLAAQMnnxvSLay4P19QBpDduGIsG/bGSs/mQLepcedRx2n0MjH5tCQ3lB 2HMkwwRmq9mM+J2oCt6ZcejGLWpJrZSPt5dIp29Yw5N1gGDeAXiOOhcFL12iPBIcUWoi mwW7qB+dBocl4p2ULCUL1vaHLenkkr64qG2xTzIUN/vpeQG4+X33PwrbSUjNfKDk5Df+ sihb00JX/lAbXI7lGWdXG8QOyIociL+0uDKAOgCYJ+ZwcaD1Y1N3AiLw2PkK6uYi1wSs Ghmw== 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=g+WTTAZRaYoXuRL/k1T5e6kru9Ln54iVxnNHl1qZ2hg2XwU3ujevctoJKadVKf1sy4 DcP27iyJo7wYxrcYD9yrWHvukf0g+T8HLS/rWS9w5+se1JiK6g9vg4FKlWjqWxsO6HEY xEjTIMEmMszDCDNO6N2aFRsmzNeP10P42pOF7Qiazaogr0ovY+t77H5zeQWZmVph0lmD CJojZvG0mZIVgMPFWR5CjGMtRa9NsLmttQLtPBlIYaULSJFbOKFHx9Q/5DW+QE0dB5/8 72lbpVs8FN7iCh2eClKepM0l8l2a8hwNMQk+ObDTKsGvjcQRgFNWlgoHJ/ai8yQA2Mtp Yapg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1XEGRvK8; 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 dg25si8359253edb.28.2021.07.15.14.09.01; Thu, 15 Jul 2021 14:09:24 -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=1XEGRvK8; 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 S245219AbhGOTT0 (ORCPT + 99 others); Thu, 15 Jul 2021 15:19:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:38864 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234996AbhGOTEn (ORCPT ); Thu, 15 Jul 2021 15:04:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E110C613F7; Thu, 15 Jul 2021 19:00:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375654; bh=jSKqkZ+UU4PmhEyzCaosrPO3qLRJWJGjTNDb4ZWQLdQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1XEGRvK8Wgd0xkYcU4miEWro2hm2+jppMbsJ7Tp1R8m1LtZnbo+F/RYLp4U8cKdtL GHVFclo1q35lXrYyPvM0Hf2/gEgSjsn7CteReGwCjuLmEp4Pn5opm8pTTWhvYPUvQh U+bURhYGvPwESSt5NE0G3S7jtwtRvzrPGqrIAVnM= 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.12 179/242] drm/arm/malidp: Always list modifiers Date: Thu, 15 Jul 2021 20:39:01 +0200 Message-Id: <20210715182624.784336851@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: 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;