Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2368376rwb; Mon, 15 Aug 2022 04:20:27 -0700 (PDT) X-Google-Smtp-Source: AA6agR4d66rrHuaJq+E3vUUZg/Se2tNxEPQj/qQJLdPjSXPK8fWhFLwfHUV/yjfmiU/TdgW8Pwio X-Received: by 2002:a17:902:f70a:b0:170:c5e7:874c with SMTP id h10-20020a170902f70a00b00170c5e7874cmr16320492plo.109.1660562427167; Mon, 15 Aug 2022 04:20:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660562427; cv=none; d=google.com; s=arc-20160816; b=gQhl4RZ5+GX/HEZqfzqkt/jUdwAvR/HdEdey+e3frVEc56U92a/u0NJYolTatd/6fH cqOjGFC7vjTRV39ogbUIL0KzWBsuIH8D8DEnI5rBEQ7R6QS0UX6W50jBq86ssa8PD7qr GPx86aEeKgjAEpq85f5DIkTp7IFlPqethkKcy1qRanDRi3IvcOE3jiPscJ70XTkbzPUO iJgBVxLl4voKZQEEc2Y8TplUxssP3uB2AwA5hbN4eQ0quwybM8RbrvdMrEkEBPtCaRAM zVyyQ10SkXbWJSjhJNEHVjLc19TOrK1pKRjqLHqGqXGHHs9DydoqGbtWqCio9g+QdqcT KhFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=RWy0N+7/yckvgkArgj6CdthLLzk89M9POcSFkfkYnRA=; b=j+JKJixmUSQSSbFZkRY8UlZxStL87FNo5ESTqbFcA+AaqolbuzR00JszkAb1KgFIvE s/KSRPQnjRPg4BXsdXGF2aWNKXDPx2fm/2tQSp/09P8OBEOxyv3CgoJs+CWtXZQrZ/45 a+xTFBl7e5cZ9fvLzqpedU8vsNSu8TSq+baPP88Kg6uosNa/rPAcUeWwuWIZIIuskBDe 2uL6bZq71UkzuRH9xnauGz6oVlX9nfBCvrrXm9Sylb2g4yhadclXseFi0PzMJstbLo45 v1Hmdzlw7j+9jOA8MFtjGvHfWsorHM+pcqDSnlddbaewn9DQEKWEQE2RIzFcatOlV+jS QBFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@tronnes.org header.s=ds202112 header.b=N5ZGfjRF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=tronnes.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jc11-20020a17090325cb00b0017087643e9fsi9207391plb.579.2022.08.15.04.19.51; Mon, 15 Aug 2022 04:20:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@tronnes.org header.s=ds202112 header.b=N5ZGfjRF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=tronnes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242514AbiHOKtq (ORCPT + 99 others); Mon, 15 Aug 2022 06:49:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231523AbiHOKto (ORCPT ); Mon, 15 Aug 2022 06:49:44 -0400 Received: from smtp.domeneshop.no (smtp.domeneshop.no [IPv6:2a01:5b40:0:3005::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A76622B14 for ; Mon, 15 Aug 2022 03:49:42 -0700 (PDT) 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 Cc: Jernej Skrabec , Martin Blumenstingl , Chen-Yu Tsai , Philipp Zabel , Jerome Brunet , Samuel Holland , Thomas Zimmermann , Daniel Vetter , Emma Anholt , David Airlie , Maarten Lankhorst , Kevin Hilman , Neil Armstrong , linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Phil Elwell , Mateusz Kwiatkowski , linux-arm-kernel@lists.infradead.org, Geert Uytterhoeven , Dave Stevenson , linux-amlogic@lists.infradead.org, dri-devel@lists.freedesktop.org, Dom Cobley , =?UTF-8?Q?Noralf_Tr=c3=b8nnes?= 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-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.