Message ID | 20220221095918.18763-22-maxime@cerno.tech (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 93097C433F5 for <linux-arm-kernel@archiver.kernel.org>; Mon, 21 Feb 2022 10:43:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=7P2cZ9QUT4+LlVmcUMRkwVjaTb8wHFN0ZrqRCKIN/nk=; b=zfljnP55dBY1PT DEeJZARVR6kUoLgumqsC/39Ws9vZ3TEQhqKGh9ILgdZA7XDrOBV9M9HAvyVBuw5qIkhF0SSCt6RqY T+O2J582RJpAduHDTbmFP7XIIFiV+ji2UWyehwPw/yJy2VdluYfYErkJwqOj/vUOT5a/FJC5t6afi LlISXUvazsAJW++c50uVJgaizvyCoZTzggPm19mJnU3PkAC7WTRYruWoH3l3wWyYJ2pm1cbKVxRLh UlHaQMTdxim6BVfoKwyYF/B3tU/mnyyQOcpJX97gu24jBI93e/ZsA71Qm71EF/Pij5HB9ZJcIxS4r srlqMtCYEQFxcRNkuDHg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nM68Z-0052gb-3Z; Mon, 21 Feb 2022 10:41:49 +0000 Received: from new2-smtp.messagingengine.com ([66.111.4.224]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nM5UK-004jXW-O0 for linux-arm-kernel@lists.infradead.org; Mon, 21 Feb 2022 10:00:14 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id F1B26580263; Mon, 21 Feb 2022 05:00:11 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 21 Feb 2022 05:00:11 -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=wo7FPeVWcNwQpaAIKec1keSAY7TMIw rBbsYQO8S+w+A=; b=B8FgR3sCJLWpKMtN0zAS+wpJW16KR5RFXlIZF13uiyprbG gktvFBUgER6uhSV32IFptkArPlQQGCeZroHs7DWpZQwFp9b61ekxXY3AzvtXA/Vt S3qh50NfX0SagN+EoSrAnN8YLbphrkPalYQco8MTtojaUf8WAFLVLMBLTIvRnCQJ rZq6Evn3U1wj6oalunOXcnTFX2EeMVxNSdRDy2hkQxY9HW9zs/f4QwmEsV8BeEPZ uLEOoyaPuq06XQAEzISMNLlTbejilOFPc/i6faWnF5Vcu+jrd0Vz4y/O2SmZezH6 6/ww7ra47rlQJRewPuh2yEpljX813gIgTC/tEB9w== 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=wo7FPe VWcNwQpaAIKec1keSAY7TMIwrBbsYQO8S+w+A=; b=CsnfciTxo0Le1GCB7XPs9d yX2Fs0vYWJc0yDjpcF4w76mbNUUydjqWmOgLRlqDTxBWNFOUaqPsbWPsWRQtZTGv 5Utm6Bs/mdtC+3rQMkfxGJnMrXlARNUSoIMJCbI8IRM16FaZ2v248/ZXwkTnXzJi gU+8on1nCMEtR82FLrBjooHLE1KJI3psrQQ2owIyFtIF5y+cbuFcf5RbNiD9AFNQ vLRQ8wriKgELvaxpQrDnoTMJAXYG43WkkH4JMdexkusgQS93b8VRZ1sHSoJmhxqh 2K+56acy5rfomJE8c2n5Sfx0hERsMaInI/sCvDpTZnzWFwAnd2zeyLNxV9P3YEaQ == X-ME-Sender: <xms:q2ITYhCB_RazPueYu_nom_CzrAfiDHWEvbZ_Zen1_zTwJI4RI-TMHw> <xme:q2ITYvhvmq7k-TF05d5oc2RIJyca7DfBZgmvdrtUTtiBvr7A_g0QN6BXBhqgLCGOL WYRFFZS6XEEz1tiVug> X-ME-Received: <xmr:q2ITYsnUWljuu2bJHkHK9lWw-RiakSqp_JNmogFEhTKoP7fcU4ZZ_Zco8nS_ATNavsRPE2IZW6_D3nrkpRU6TcFfQLDj8j5L_eVOzWI> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrkeeigddtlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepofgrgihimhgv ucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrghtth gvrhhnpedvkeelveefffekjefhffeuleetleefudeifeehuddugffghffhffehveevheeh vdenucevlhhushhtvghrufhiiigvpeefnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrg igihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: <xmx:q2ITYrybCPaWFnATVRWhiN2o9N_kkpY288rs7GiLu1f_bgvMyQbrVA> <xmx:q2ITYmT7KFNLLhdjCcvZErXZON2-n2R2C5ZduVNJ26VAmk_GzY_r7Q> <xmx:q2ITYuZ9ZTNDu8MB3MAH26dDuiel93Ejj-AdISvWsvEmVstu8Uj2EA> <xmx:q2ITYrhGd0ksawYEwoCM6RxP8KCjk8l8APtc2vbzW44fxGnEse_kbA> Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 21 Feb 2022 05:00:10 -0500 (EST) From: Maxime Ripard <maxime@cerno.tech> To: Daniel Vetter <daniel.vetter@intel.com>, David Airlie <airlied@linux.ie> Cc: Dave Stevenson <dave.stevenson@raspberrypi.com>, Phil Elwell <phil@raspberrypi.com>, Tim Gover <tim.gover@raspberrypi.com>, Dom Cobley <dom@raspberrypi.com>, dri-devel@lists.freedesktop.org, Maarten Lankhorst <maarten.lankhorst@linux.intel.com>, Thomas Zimmermann <tzimmermann@suse.de>, Maxime Ripard <maxime@cerno.tech>, linux-arm-kernel@lists.infradead.org, NXP Linux Team <linux-imx@nxp.com>, Fabio Estevam <festevam@gmail.com>, Pengutronix Kernel Team <kernel@pengutronix.de>, Philipp Zabel <p.zabel@pengutronix.de>, Sascha Hauer <s.hauer@pengutronix.de>, Shawn Guo <shawnguo@kernel.org> Subject: [PATCH v2 21/22] drm/imx: ipuv3-plane: Remove redundant color encoding and range initialisation Date: Mon, 21 Feb 2022 10:59:17 +0100 Message-Id: <20220221095918.18763-22-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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220221_020012_928565_E92571FE X-CRM114-Status: GOOD ( 11.66 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
None
|
expand
|
diff --git a/drivers/gpu/drm/imx/ipuv3-plane.c b/drivers/gpu/drm/imx/ipuv3-plane.c index 414bdf08d0b0..36b32e8806e3 100644 --- a/drivers/gpu/drm/imx/ipuv3-plane.c +++ b/drivers/gpu/drm/imx/ipuv3-plane.c @@ -308,11 +308,8 @@ static void ipu_plane_state_reset(struct drm_plane *plane) ipu_state = kzalloc(sizeof(*ipu_state), GFP_KERNEL); - if (ipu_state) { + if (ipu_state) __drm_atomic_helper_plane_reset(plane, &ipu_state->base); - ipu_state->base.color_encoding = DRM_COLOR_YCBCR_BT601; - ipu_state->base.color_range = DRM_COLOR_YCBCR_LIMITED_RANGE; - } } static struct drm_plane_state *
The imx KMS driver will call drm_plane_create_color_properties() with a default encoding and range values of BT601 and Limited Range, respectively. Since the initial value wasn't carried over in the state, the driver had to set it again in ipu_plane_state_reset(). However, the helpers have been adjusted to set it properly at reset, so this is not needed anymore. Cc: linux-arm-kernel@lists.infradead.org Cc: NXP Linux Team <linux-imx@nxp.com> Cc: Fabio Estevam <festevam@gmail.com> Cc: Pengutronix Kernel Team <kernel@pengutronix.de> Cc: Philipp Zabel <p.zabel@pengutronix.de> Cc: Sascha Hauer <s.hauer@pengutronix.de> Cc: Shawn Guo <shawnguo@kernel.org> Signed-off-by: Maxime Ripard <maxime@cerno.tech> --- drivers/gpu/drm/imx/ipuv3-plane.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)