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: 10178229 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E037D60224 for ; Mon, 22 Jan 2018 10:41:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D735B26E76 for ; Mon, 22 Jan 2018 10:41:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CC10627F82; Mon, 22 Jan 2018 10:41:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 647FB26E76 for ; Mon, 22 Jan 2018 10:41:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=SwANP83FdpR1ZZiJFtkKJ/WFAdHCumI557m/g3zNeoQ=; b=lQ//NnU9f4Y3dKKhaMsDP2O/Pd xbvIojgwUxEjJ0MFvts0vYH4HDYbigt5ZVPle3bLFGsMVg2VOB3bt5P2kA0LjG0biXtHVd8s/i1nU XE+fyrJD8d6x/PhET+q9NvGdq83oUeepzUu+SnUxRi1pGfiLLLqoaUso3/9wWL2zw4oMOAfCYdSeD RUPDiim8uL63xcEWbWOt4zR19pxd97VWKiZKx/SQKEEC2D2mvDaiNWAptLz/wI2Glbo0b3PcsHMEG RNyHF4+GAcCB7kvM5q1VEsNIByt5CEebXp/569iA2V1ZQiTD/K8t8amLdP4Q0MOCar4xDbR0oz/eS bJnbIcaw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1edZY1-0006UG-EV; Mon, 22 Jan 2018 10:41:53 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1edZT5-00084m-LV for linux-arm-kernel@bombadil.infradead.org; Mon, 22 Jan 2018 10:36:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=6xuHv+GcnuQqacuYD6mrfyt0JkRDejmUwWJXtOGqvJs=; b=qbpJCWwM/iS/hDtXxSZNwD7HL P4MkgerBvtDKiG/EW5kLjZwZCWHCi/pwzlZaXPfMPNNwLNThcn94wHz7YAbSlAB1B7IqfQ/qLNT1r EqEbgoUY3AZI+1NnCpONm4sw7E5lZdIkcUQtDatb+wi3b0Dn4ONQIv+9AS42FMKM+l58vI4K48wHl yCCMcZA6LYjCLpAAheCBDusgTXnbSJtVZAKUHapdsyspASIAqUASoAiQERmovgsZZfzDxDUNwgHRF 0mMivFMAfLIG3omLpoQIHez+7mM/Sj0Q9GovcEaluXo049r3gtym33WQRoLW7oW1htC43rOJCyxUI 2MGcMAVmw==; Received: from mail.free-electrons.com ([62.4.15.54]) by merlin.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1edZT1-00034k-FL for linux-arm-kernel@lists.infradead.org; Mon, 22 Jan 2018 10:36:45 +0000 Received: by mail.free-electrons.com (Postfix, from userid 110) id 9D46720808; Mon, 22 Jan 2018 11:36:20 +0100 (CET) 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 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: X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, thomas@vitsch.nl MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Chen-Yu Tsai --- drivers/gpu/drm/sun4i/sun4i_layer.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; };