Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp507128rwn; Thu, 8 Sep 2022 05:09:10 -0700 (PDT) X-Google-Smtp-Source: AA6agR5yb9S4hKB94/zOa472UE4MoWvXCTvsB/O1oHhwfFDrA07plqxUkljFU4eFrXSEq8b3uMi/ X-Received: by 2002:a17:907:7e9c:b0:741:a17b:9d1e with SMTP id qb28-20020a1709077e9c00b00741a17b9d1emr5552197ejc.577.1662638950157; Thu, 08 Sep 2022 05:09:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662638950; cv=none; d=google.com; s=arc-20160816; b=VWRAHekp+pneVQLPq20cWvunPvoyvGFHBGZFuV4ezKd9jwxmvuM0VOR7dhsH1w9HOE 4LrDc0Ysj46FUSmA0u8L6vYa/EHAmD3lUabkzUPh3iSqUWjV35dbchRIlcFlLNxJ7IcC TgR9kgoTHiUqIeqBhL+LMnSfLdxeXE+37frDyyxoonCpfADIhwMtUCUr55Io5hu20N9o PZnS/SBHURD5UpgP541bZyqqRz7lSCG8Il1OBXxzoocX708JFT7OIozrRigWXZRVr55m EcBgZvWcE8hgaG9qpBb0+mSEzV98jkLq3qTfKtBx9Onf+AA/KdIe4CTC2DqwuS44piNc ZZ1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:feedback-id:dkim-signature:dkim-signature; bh=LRXHHYqivNqoVLbWqJK32thupyw+X6RFeaqN+1YtJGU=; b=vlQI9m8nfejIr2bDogSBZCU6EvPYhVEbBnx0pATtFscIyALiar5TwZpl4vx+ixy5cF 2ux7eiLU7VqGAC+7i5Yg9WBIoWNUeR6/oAb8+Q94K2TUrRIVw3Zq80Bc+SdVNPIIMgr1 L5xsILz1UV+gg7d9+N4fHhI4GO0Z8b+nX+2QGsL1/Te6XaD7ELQPdfw9njJusi6TVH3u dZTnYmGGGDvqLVZNPkv6Q3NzNx8VRVz+8yS6IHBZEBN8pRUgkmGp49/YVgVdzSUiOh0v Hoa0toJ83P3GF0KWco/MVTqhrgGV9246i1KncfXe99bfHgWBn6LlzVH6mZAq80DCZaB2 8RGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=dsC+SqVQ; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=YoMzWULx; 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=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g19-20020a1709065d1300b007330c08fe49si2325220ejt.206.2022.09.08.05.08.43; Thu, 08 Sep 2022 05:09:10 -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=pass header.i=@cerno.tech header.s=fm2 header.b=dsC+SqVQ; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=YoMzWULx; 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=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230300AbiIHLXn (ORCPT + 99 others); Thu, 8 Sep 2022 07:23:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229552AbiIHLX2 (ORCPT ); Thu, 8 Sep 2022 07:23:28 -0400 Received: from wnew3-smtp.messagingengine.com (wnew3-smtp.messagingengine.com [64.147.123.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB834CEE for ; Thu, 8 Sep 2022 04:23:19 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.west.internal (Postfix) with ESMTP id E85232B05D9F; Thu, 8 Sep 2022 07:23:16 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Thu, 08 Sep 2022 07:23:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1662636196; x= 1662643396; bh=LRXHHYqivNqoVLbWqJK32thupyw+X6RFeaqN+1YtJGU=; b=d sC+SqVQmxl2y5Nk0Wo2cxN30d9BbikQWddcTN8RCpYICpF8LlCzKr/kBw19ppyX4 o5/Uu5DKj0x+wBViDK44z4s5rYsczPE5rRPizWZPx2W/S/EF4mgUgfHju2nQCV6M XDUg2pHR79vZl8sHJsWDbAhhDy/3lmdVlYqf84KZ3VCU/gFaGv9ee4EZ3ZbeSVfu gCULjFlhER8GApHWb8tOv6e4TXbHQeUvXbj1gie6NLufr9c/UdVBNemHUAYptAH0 yy611N/bBISEJ9I39w1Wsi+/AbHEVXH6ZXf7MHgK9zjiEHacfhdveCkxqv1ZjX2D dWfxwdLMnrkJN8rQXtSMQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id: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; t=1662636196; x= 1662643396; bh=LRXHHYqivNqoVLbWqJK32thupyw+X6RFeaqN+1YtJGU=; b=Y oMzWULxQE204GYN9jXkFiDp/SoaiWo8KEv/4aMIhp2VFvErCXC8WuotjstL+KeKZ yFnkPjVloE/igCxgmN+K/18lbV8maVuyl2HwNDcTC3o70GOWpL+rmv3erG9UKIA4 ihQ05wbBTBbpk/0SdRh6TxGMDqqxQKfJZdo/0ajVrpKQyIy8ONaYi7WUSbx6zZL5 MiEU4ZM7BALznq/KKN/TvqvL/fJUVCWCFNFWr8HUsVeFMZuzRHuCt9z6uqdiyIqR NytajlftLikd2QSuJ+2TYREmhFVuSNeKLojERFsy/VQFhWrz9vKx4U3caGn/2Mz2 IVSocSEk13MrU+xJRvBJw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedtvddggedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggugfgjsehtqhertddttddunecuhfhrohhmpeforgig ihhmvgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrf grthhtvghrnhepteejiedvkeelhedtlefgkefgkefhheefteevleekgfejgeekfffhveff tdegiedvnecuffhomhgrihhnpehmohguvgdrihhmnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 8 Sep 2022 07:23:15 -0400 (EDT) Date: Thu, 8 Sep 2022 13:23:12 +0200 From: Maxime Ripard To: Noralf =?utf-8?Q?Tr=C3=B8nnes?= Cc: Ben Skeggs , David Airlie , Chen-Yu Tsai , Thomas Zimmermann , Jani Nikula , Lyude Paul , Philipp Zabel , Maarten Lankhorst , Rodrigo Vivi , Tvrtko Ursulin , Jernej Skrabec , Samuel Holland , Karol Herbst , Emma Anholt , Daniel Vetter , Joonas Lahtinen , Hans de Goede , linux-arm-kernel@lists.infradead.org, Phil Elwell , intel-gfx@lists.freedesktop.org, Dave Stevenson , dri-devel@lists.freedesktop.org, Dom Cobley , linux-kernel@vger.kernel.org, nouveau@lists.freedesktop.org, linux-sunxi@lists.linux.dev, Mateusz Kwiatkowski , Geert Uytterhoeven Subject: Re: [PATCH v2 32/41] drm/vc4: vec: Convert to the new TV mode property Message-ID: <20220908112312.hlb7mzneuxnethhr@houat> References: <20220728-rpi-analog-tv-properties-v2-0-459522d653a7@cerno.tech> <20220728-rpi-analog-tv-properties-v2-32-459522d653a7@cerno.tech> <199cf4b3-8ace-e047-3050-b810cf0c6b63@tronnes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <199cf4b3-8ace-e047-3050-b810cf0c6b63@tronnes.org> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,T_SCC_BODY_TEXT_LINE, T_SPF_TEMPERROR 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 Hi Noralf, On Tue, Aug 30, 2022 at 09:01:08PM +0200, Noralf Tr=F8nnes wrote: > > +static const struct drm_prop_enum_list tv_mode_names[] =3D { >=20 > Maybe call it legacy_tv_mode_enums? >=20 > >=20 > > + { VC4_VEC_TV_MODE_NTSC, "NTSC", }, > >=20 > > + { VC4_VEC_TV_MODE_NTSC_J, "NTSC-J", }, > >=20 > > + { VC4_VEC_TV_MODE_PAL, "PAL", }, > >=20 > > + { VC4_VEC_TV_MODE_PAL_M, "PAL-M", }, >=20 > If you use DRM_MODE_TV_MODE_* here you don't need to translate the value > using the switch statement in get/set property, you can use the value > directly to get/set tv.mode. I'm sorry, I'm not quite sure what you mean by that. If we expose the DRM_MODE_TV_MODE_* properties there, won't that change the values the userspace will need to use to set that property? Maxime