From patchwork Mon Jan 22 10:35:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 125396 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp1081606ljf; Mon, 22 Jan 2018 02:37:34 -0800 (PST) X-Google-Smtp-Source: AH8x224UPwBw/yrF0QlEKxzshtgmCVeMqPOngkYdQejByuMnKK6kK43b+mmPRaRS+vaAcw1QchZ9 X-Received: by 2002:a17:902:ab93:: with SMTP id f19-v6mr3282530plr.10.1516617454299; Mon, 22 Jan 2018 02:37:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516617454; cv=none; d=google.com; s=arc-20160816; b=tzXG2YPURXCSLCv+ru2ILxoNQeWB4kvni73AYe01JUqNw08K/2PxTOObqzEhU7niI+ AoDEixEDG1UNLLT6UfZoaps+wM3kIwN+k3WQm3QOm6UX1P6OIU3LGdk3PkXBFDojswXz 1TPvqEAdeaeOzMkN6QzGymjw4UpYDSR5H94AagEb1uCp2Hh9sERXTnpximefA42IOhBy eqzeLyOWAwnwnbs449+YHsWJuYgixN6GH/uP0wpxc9dePRSnXSvW8NI4mh5r50JSMaZS WsDcnSNW/P4pbCcxP6k4x4NkAVqoYcGylnTaTNzXPqNuM8GfkN6K60x4XaIcPRlZHGpb 0BBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=6xuHv+GcnuQqacuYD6mrfyt0JkRDejmUwWJXtOGqvJs=; b=Cip6vibW3RsBOq0CPXkFimswvNvDMoQC5+HPQm4c7fDmiPQD39qFzVYlAc55yb5DwG 6PHcRZaDfAinwiqlqVE0RDJSINGzfzfjUpkcWQpPLQMOS0d3wwwkadWhZT3rzk2eSpXk Zjj3rsO/fxq7U5Z5+TI4T9ACGXmJGUO44vJ55KG6LZjIs0+ZOVdVNVVeR3iz6zjzhYuS v5EpobTspkTn4itm8H0oRbMooLv8Wuk7eO9N0ypPrYMQNxcMW0rSSUJmgNT8DtxfBbmJ aEfzZaAkaSMFxdyhSJ/512msaT7KlE57CrsQ/Q0P+JYyuVkdXDs5HOILOXmhhTrrDBOr yy5Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h63si13616983pge.435.2018.01.22.02.37.33; Mon, 22 Jan 2018 02:37:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751492AbeAVKhc (ORCPT + 28 others); Mon, 22 Jan 2018 05:37:32 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:46577 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751371AbeAVKgV (ORCPT ); Mon, 22 Jan 2018 05:36:21 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id 9D46720808; Mon, 22 Jan 2018 11:36:20 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id 22DFF20737; Mon, 22 Jan 2018 11:35:57 +0100 (CET) From: Maxime Ripard To: Chen-Yu Tsai , Maxime Ripard , daniel.vetter@intel.com, jani.nikula@linux.intel.com, seanpaul@chromium.org Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, thomas@vitsch.nl Subject: [PATCH v2 17/19] drm/sun4i: backend: Make zpos configurable Date: Mon, 22 Jan 2018 11:35:46 +0100 Message-Id: X-Mailer: git-send-email 2.14.3 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that we have everything in place, we can make zpos configurable now. Change the zpos property from an immutable one to a regular. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_layer.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- git-series 0.9.1 Reviewed-by: Chen-Yu Tsai diff --git a/drivers/gpu/drm/sun4i/sun4i_layer.c b/drivers/gpu/drm/sun4i/sun4i_layer.c index ec7b906dbb84..9e538f761dcb 100644 --- a/drivers/gpu/drm/sun4i/sun4i_layer.c +++ b/drivers/gpu/drm/sun4i/sun4i_layer.c @@ -163,6 +163,9 @@ static struct sun4i_layer *sun4i_layer_init_one(struct drm_device *drm, &sun4i_backend_layer_helper_funcs); layer->backend = backend; + drm_plane_create_zpos_property(&layer->plane, 0, 0, + SUN4I_BACKEND_NUM_LAYERS - 1); + return layer; } @@ -189,8 +192,6 @@ struct drm_plane **sun4i_layers_init(struct drm_device *drm, return ERR_CAST(layer); }; - drm_plane_create_zpos_immutable_property(&layer->plane, i); - layer->id = i; planes[i] = &layer->plane; };