From patchwork Tue Jan 9 10:56:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 123886 Delivered-To: patch@linaro.org Received: by 10.80.140.226 with SMTP id r31csp306650edr; Tue, 9 Jan 2018 02:58:30 -0800 (PST) X-Google-Smtp-Source: ACJfBotJVBVlr8dFKk68laCIFGK0qDH50a+k3L8HGPnPnjD1e1h5rUjZtfvN0wHTfeP0BBwH02aO X-Received: by 10.84.137.169 with SMTP id 38mr15549806pln.246.1515495510474; Tue, 09 Jan 2018 02:58:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515495510; cv=none; d=google.com; s=arc-20160816; b=tSTYV9gL4AIgtHUMZ1iVSH+oJtCRbG7vYDYJMcZ0XuqKC8m10cymdkOZ/+rwh51g2C Twp1tS5u5JZ0iU4c5X5Sa0/nJFNKwJqW/8+hZMLENg8danbHzylhrdBB5aEOZDKWVits hrpcYVcHt3PfhwWW4Tze2D27AoWsUPmjV393iP2bdwyqKZ7eGNy/2lJSkDoiDscOhz0F tVmsyBnhinY+AZkTLNQwBdfT1cDwmxnKp4+177uy6X6RMHokKRmnIo8mVRlb/cjY82uC bOLJoZrnuzTJc76bLRSX/1KxTmow5c64n2P/DSCNJKEa7n81AJi8TjCJGo/kBY0ERwrS 8KkQ== 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=rLhLiCVJs+voUxlA6OcsCvVXVLedCy+TryUoT4XBdqbfsomAUIXNtOiiPpLNK/lnN8 BdCxB6e2orGBlauJv1AvMlYfJXgiD+9lWhCGn4x9+jVDWN62amp4Pqe4sdB8CxYnS/u/ LpytV4UePphMy6b9kdeY5/4aChkmCMOGs1Zmc4P9mg9KLGU8DrY3VbDwrVZt60Gjhxab PvyP+5pWFH3BAzntuVtzHb3JZFXBzYp7WUzgLXHsClTsMJQ61+PD3E2qa3jFxqs0vk9U HZyeGmpu/xNgpOLONw/nB6BOKBJ94yrMKJKEfIwGp8fnjDwhu62fL14jphSyy5Osj6Nj cJ1w== 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 e126si9891592pfc.292.2018.01.09.02.58.30; Tue, 09 Jan 2018 02:58:30 -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 S932461AbeAIK5y (ORCPT + 28 others); Tue, 9 Jan 2018 05:57:54 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:50981 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932225AbeAIK5L (ORCPT ); Tue, 9 Jan 2018 05:57:11 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id D60EE20949; Tue, 9 Jan 2018 11:57:09 +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 2E7BE2095C; Tue, 9 Jan 2018 11:56:47 +0100 (CET) From: Maxime Ripard To: Chen-Yu Tsai , Maxime Ripard , Daniel Vetter , Jani Nikula , Sean Paul Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Thomas Petazzoni , thomas@vitsch.nl Subject: [PATCH 17/19] drm/sun4i: backend: Make zpos configurable Date: Tue, 9 Jan 2018 11:56:36 +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 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; };