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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 34FE3C00140 for ; Mon, 15 Aug 2022 10:50:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id ADCC2B3EAB; Mon, 15 Aug 2022 10:50:07 +0000 (UTC) Received: from smtp.domeneshop.no (smtp.domeneshop.no [IPv6:2a01:5b40:0:3005::1]) by gabe.freedesktop.org (Postfix) with ESMTPS id A31D5B341E for ; Mon, 15 Aug 2022 10:49:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tronnes.org ; s=ds202112; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: 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=RWy0N+7/yckvgkArgj6CdthLLzk89M9POcSFkfkYnRA=; b=N5ZGfjRF8WeW92jxf8spYDSDvP DmLr5GBnEfOozxMT2zbuHCOgstG6jXgxZ5wxkwGyfP5vzzlblBxN/TDlA+3/FoqB5WAtqQ29QDt4k I7R+Ju7eo+dLue5R0eYfsrHl5npb6Pxxb4CRofJP5D9q25kbkPFyx8hY+QxR1zhunkRzFHwm8zoir LhKFemOrzlDNk+7snRjUXnE4mwC80sJmm5ktcxiX5A0zOWNq1IhB2Xk5twOaOYewddU6jji0Is8H0 HisNyFSnBSOpFy8ZsN1IcItt2e+7a+wB/EpsZuyNqDnTVkM33Ktn6GxGRjy19Z46YrPPIn04H4OvH vIXWhpWg==; Received: from [2a01:799:961:d200:cca0:57ac:c55d:a485] (port=52575) by smtp.domeneshop.no with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oNXf9-0001wP-Ry; Mon, 15 Aug 2022 12:49:39 +0200 Message-ID: Date: Mon, 15 Aug 2022 12:49:37 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH v1 06/35] drm/connector: Only register TV mode property if present To: Maxime Ripard References: <20220728-rpi-analog-tv-properties-v1-0-3d53ae722097@cerno.tech> <20220728-rpi-analog-tv-properties-v1-6-3d53ae722097@cerno.tech> <20220815104041.6ymspbhpjdxg2aoe@houat> From: =?UTF-8?Q?Noralf_Tr=c3=b8nnes?= In-Reply-To: <20220815104041.6ymspbhpjdxg2aoe@houat> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Emma Anholt , Neil Armstrong , David Airlie , dri-devel@lists.freedesktop.org, Phil Elwell , Jerome Brunet , Samuel Holland , Kevin Hilman , Jernej Skrabec , Chen-Yu Tsai , Geert Uytterhoeven , linux-sunxi@lists.linux.dev, Martin Blumenstingl , linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Dom Cobley , Dave Stevenson , linux-kernel@vger.kernel.org, Mateusz Kwiatkowski , =?UTF-8?Q?Noralf_Tr=c3=b8nnes?= , Thomas Zimmermann Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Den 15.08.2022 12.40, skrev Maxime Ripard: > Hi, > > On Mon, Aug 08, 2022 at 02:49:08PM +0200, Noralf Trønnes wrote: >> Den 29.07.2022 18.34, skrev Maxime Ripard: >>> The drm_create_tv_properties() will create the TV mode property >>> unconditionally. >>> >>> However, since we'll gradually phase it out, let's register it only if we >>> have a list passed as an argument. This will make the transition easier. >>> >>> Signed-off-by: Maxime Ripard >>> >> >> I don't understand why this makes the transition easier, but if you >> think so: > > So the basic idea behind this series was to introduce the new property, > gradually convert the old drivers to the new one, and finally remove the > old one. > > In order to keep the backward compatibility, we need to add to the > drivers some custom get/set_property hook to expose the old property and > fill the new one if needed. > > That means that each driver would have to create the old property, which > will conflict with that code > Got it. Noralf.