Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2342306rwb; Mon, 15 Aug 2022 03:51:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR5+5lNBtjX9ZJ1V4axkrdmciMhNAYrkZtG5GA5+6Svha4rmLHANic4Bn/sbaCu4ashiRBp9 X-Received: by 2002:aa7:c396:0:b0:43d:2d78:ee19 with SMTP id k22-20020aa7c396000000b0043d2d78ee19mr14025420edq.322.1660560681130; Mon, 15 Aug 2022 03:51:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660560681; cv=none; d=google.com; s=arc-20160816; b=lmRer0APIlXOl9W87Im1Jmn/sxTLOuycCiECQfScdN1kCzKMZuA98xmVdHth+g7LtR AhrGfqSpn8eoNd6QswAJe+y4Qum7zwGof5GOY0JVLxSsdGjOsM7UWn/ZCZrl3ourxQsH b2tuuhAhVCZVz+UMg2mhbU8AFDAivRez7jTglfmsy9FaVHJ2qS+hJzNRWFbSqRQYsGb7 DBumd3U8s45RlbqlvAEpB4DxeKKKCzrWLZLje1XhLKWFGT6lWi2m3v6JBx57eQ9ahAYX OLuk4M6EMJO3QjgmuR8QqJJBNjjp/v/UXSLw6tDV7XrU1E5kDTqO6pxHYZxtuBis0xyY fxHA== 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=vh4WP5c9FJ0MbLK61vY6yRT/SQaaMEr8RbbREz+rZ1g=; b=RaPoVjmib2xmLzmHLD2VyiINov1lHBm/Ew24HOa63II9yGhhgunzpLMs7LYAmeHCBq VwizCTrfYeNkAJ0Flbc86hQkiRMXeoTrtyljJznQp1sMddWfT9h9fSM/l+XjKFCQWMNr HsUmwzF6i2nZkl6uiPdcGi7jX3K2BafZpFjLkAzPfyNhgAxcTFgqCwQjpJNkLbkQ47yv tKRA1SApX6EWjdSX2MJNh8Qm3jjsVpDmIkdfC/FlV1IBXjo3mDy8fVccA1m6Js0zytJM yfsBJnlM9dGgFz+AMEvRD/87yFEbSrqLcq7uGPuVSKC6V2Ao6P69ZmYERC5ZETFRI9No eGZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@tronnes.org header.s=ds202112 header.b=b1TJYcym; 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 di18-20020a170906731200b007263a6115adsi7103465ejc.893.2022.08.15.03.50.55; Mon, 15 Aug 2022 03:51:21 -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=b1TJYcym; 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 S242495AbiHOKsn (ORCPT + 99 others); Mon, 15 Aug 2022 06:48:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242514AbiHOKsk (ORCPT ); Mon, 15 Aug 2022 06:48:40 -0400 Received: from smtp.domeneshop.no (smtp.domeneshop.no [IPv6:2a01:5b40:0:3005::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 063B122B14 for ; Mon, 15 Aug 2022 03:48:31 -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=vh4WP5c9FJ0MbLK61vY6yRT/SQaaMEr8RbbREz+rZ1g=; b=b1TJYcymPjKnvyimmR5TjK81Mu VqbuVBHbCfn54WGnqn0VB7piwq8YS9MKHNpYBPPOvVgVgp2zlJtU9MFGi7NrC9Be70mYyrw+TW1EW cNVYeWCOkfSvyulTlCiQT9jnM28OmqhwKChxRrhWHa812xj2Du4i5eaMDXWJDocyjv1ikGAs+wYcB XQ4Z6Yh28waRpNDKXpQZisudD5+cFUqFL8m9SLmx+AKeDFVXUCU0neZoELSCxtN5DM7H077grQe+s zywFm7UJLVQ7ZJpq4rQVY2XG4QCDYe/PczZS6fBvKKfGIJWQ+oB40qpMJNvxKx2PZqV93BUmiJ1d+ 2i/+GCAA==; Received: from [2a01:799:961:d200:cca0:57ac:c55d:a485] (port=52543) by smtp.domeneshop.no with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oNXe0-00013Y-A2; Mon, 15 Aug 2022 12:48:28 +0200 Message-ID: <53216533-d0d6-90d5-b9d1-c7d935867a54@tronnes.org> Date: Mon, 15 Aug 2022 12:48:20 +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 03/35] drm/atomic: Add TV subconnector property to get/set_property 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-3-3d53ae722097@cerno.tech> <6e47ce2d-25c7-7254-703d-2a1d3bb64373@tronnes.org> <20220815073546.4isrl7o3bt5g23pk@houat> From: =?UTF-8?Q?Noralf_Tr=c3=b8nnes?= In-Reply-To: <20220815073546.4isrl7o3bt5g23pk@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 09.35, skrev Maxime Ripard: > Hi Noralf, > > Thanks for your review > > On Mon, Aug 08, 2022 at 02:30:42PM +0200, Noralf Trønnes wrote: >> Den 29.07.2022 18.34, skrev Maxime Ripard: >>> The subconnector property was created by drm_mode_create_tv_properties(), >>> but wasn't exposed to the userspace through the generic >>> atomic_get/set_property implementation, and wasn't stored in any generic >>> state structure. >>> >>> Let's solve this. >>> >>> Signed-off-by: Maxime Ripard >> >> I just realised that this and the select_subconnector property isn't >> used by any drivers. Do you plan to use them? Maybe they don't need to >> be wired up at all. > > I'm not sure really > > It's true that the subconnector and select_subconnector fields in the TV > connector state aren't used by any driver, but the ch7006 and nouveau > will update the property content through a call to > drm_object_property_set_value > > https://elixir.bootlin.com/linux/latest/source/drivers/gpu/drm/i2c/ch7006_drv.c#L217 > https://elixir.bootlin.com/linux/latest/source/drivers/gpu/drm/nouveau/dispnv04/tvnv17.c#L185 > > I think it could still be useful to report it in the connector state, if > only for consistency? > Yeah maybe. I just realised that I have support in the GUD protocol for these properties so any future devices that rely on them them will need this patch, so I'm now suddenly in favor of this :) Noralf.