From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 59C0CC433EF for ; Mon, 21 Feb 2022 10:37:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354893AbiBUKiS (ORCPT ); Mon, 21 Feb 2022 05:38:18 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:53304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354368AbiBUKh4 (ORCPT ); Mon, 21 Feb 2022 05:37:56 -0500 Received: from new2-smtp.messagingengine.com (new2-smtp.messagingengine.com [66.111.4.224]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E942542EEE for ; Mon, 21 Feb 2022 01:59:43 -0800 (PST) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id 0196F58025B; Mon, 21 Feb 2022 04:59:30 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 21 Feb 2022 04:59:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; bh=e6fsAJHMFdp2g1HWcSV/TmUkgSAzo/ AUvrgSfJ4rv1s=; b=NO8qhAad/yFGngJeBnbhhlobysqMgdJc/mXevNn82T+oyN Y8G8Bx6aQuZd461qr4zXL97R5tw0LRHIhC6PKamsahP4w4wTFegknyILwBRqELN9 czGxU1YW0AMDdnK9FPK0apA2BnPq4fQ934DfusuUUmr64SRFyWGbwwE4TPrEU+dv rWxnU4h9cCA5MoWzg9/Iceys0nzhBEnb6uQqQyuzOzoClLRWmjspWRnzSlh4Kyn4 b2C3za6hUTi4ZPwQSyhjl/Sv7t9NR8vyBUQoGygnRO1Yzt/zXKTGxtM04QOy1/iP luwG0avsrabzQ/5q5LCxwl56NNaheTC+4DtcKyog== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=e6fsAJ HMFdp2g1HWcSV/TmUkgSAzo/AUvrgSfJ4rv1s=; b=oZrXE7TBpmix+rJ0QpZUeH mS/QooOdEd2+V4DNGBbx2T5Se38We19zthFx7S1WGAqdtaQaTrmUI/XFDe9nnkT2 dhQnXvopgTFSTfSVnQIIQkZUPFdv/zbQZDnO5xrICXjgDDYLu9IN/1nzRB5/rZh1 E2nnjdCMKqvkHa6D1CM8EmKz9vHV+k1DmpWceXqaW0tKewwn3qaYK/ec2viclLGu 2AkxoFtr+cfar16Ud/f1/COswkX3jvci0Xx70dDxzyy15sCOH4KG5PcaYdQbuTH1 XvK/FlxZvH78TZlaOY/N7ZFArGXUFfyscrUSlZZuHgAxW3svnkUTrkoftzoHOYuw == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrkeeigddutdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepofgrgihimhgv ucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrghtth gvrhhnpedvkeelveefffekjefhffeuleetleefudeifeehuddugffghffhffehveevheeh vdenucevlhhushhtvghrufhiiigvpedunecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrg igihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 21 Feb 2022 04:59:29 -0500 (EST) From: Maxime Ripard To: Daniel Vetter , David Airlie Cc: Dave Stevenson , Phil Elwell , Tim Gover , Dom Cobley , dri-devel@lists.freedesktop.org, Maarten Lankhorst , Thomas Zimmermann , Maxime Ripard , linux-tegra@vger.kernel.org, Jonathan Hunter , Thierry Reding Subject: [PATCH v2 03/22] drm/tegra: hub: Fix zpos initial value mismatch Date: Mon, 21 Feb 2022 10:58:59 +0100 Message-Id: <20220221095918.18763-4-maxime@cerno.tech> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220221095918.18763-1-maxime@cerno.tech> References: <20220221095918.18763-1-maxime@cerno.tech> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org While the tegra_shared_plane_create() function calls drm_plane_create_zpos_property() with an initial value of 0, tegra_plane_reset() will force it to the plane index. Fix the discrepancy by setting the initial zpos value to the plane index in the function call. Cc: linux-tegra@vger.kernel.org Cc: Jonathan Hunter Cc: Thierry Reding Signed-off-by: Maxime Ripard --- drivers/gpu/drm/tegra/hub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tegra/hub.c b/drivers/gpu/drm/tegra/hub.c index b910155f80c4..7f68a142d922 100644 --- a/drivers/gpu/drm/tegra/hub.c +++ b/drivers/gpu/drm/tegra/hub.c @@ -788,7 +788,7 @@ struct drm_plane *tegra_shared_plane_create(struct drm_device *drm, } drm_plane_helper_add(p, &tegra_shared_plane_helper_funcs); - drm_plane_create_zpos_property(p, 0, 0, 255); + drm_plane_create_zpos_property(p, index, 0, 255); return p; } -- 2.35.1