Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp504215rwn; Thu, 8 Sep 2022 05:07:02 -0700 (PDT) X-Google-Smtp-Source: AA6agR7x/i4WMq60sfpK72ll+GEcHDAh9QaexWKV0IXJjD4/6C3wuz95IY3qJSsvo4UBHOVWaXXP X-Received: by 2002:a63:485c:0:b0:42a:ad58:9599 with SMTP id x28-20020a63485c000000b0042aad589599mr7463959pgk.565.1662638822573; Thu, 08 Sep 2022 05:07:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662638822; cv=none; d=google.com; s=arc-20160816; b=KZOBm3wvLhNOc71Hh/x+0j0XLVn76VGsSIsAvhTB2LiT8sZgTfJCEdAZ9CRQnJ7ZV9 qA02nOcIyKLMi1nPwAz1ygF48pxO/Z4r1x05ruGJOU8g5+Jkz94zhgwJEa493ryTiNr6 JECjdLaoLHkUA7KUAbQE1yNjLp9WIil32UZY6F4bZUGwjUxXNWM7HdWexCLcceUwElp+ VIBsKeC4GCsK8Yp7K/QcmjUiW82m2HtAVbIzjibnqK0wV+wptYNhe4lzMX9qOhtnjoFR bUBli6eV0XPYElBMx6zZ3DLjNDSJ2o3fXaNVoOEKM4glSvz5qeo1MA55D9NRwLcLB7YK 989A== 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=KYa/QVI6flq5lHnbp60VYWrYz3i2rBG7tpmdjbr7GZo=; b=uajHzWBZ+zXUWMvQkug5y5DL2okCeZDyWzgWZ2tFQn52M215tJEj6o4Ibe4A7lB5OO PYxJh9bFLbw1kzJcBEs1t0mjawLOFTAsy/0V2hD/I7OvzL+nO1C4+XJIwMdHVYLcDAqw E3GFq5ROYCwjUXF5Pli3sWCL8bdpFINm+aNv62YcielmSjN0FPgXcH5t+DunSpDpYZeq MBpoVA1FC4E3EAmvNSVuz7TBKMwq8lb9fEossOkQSn3dDbO2MTX4EuChrXQTOuAfY35O TOfPtt2WAsd+/ukL1VWyNk1feD4jY+EojmjpTyHvvYUk69yDhyyyed8X1BFnV8LG0uOS xCdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@tronnes.org header.s=ds202112 header.b=GrcJ6yCh; 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 63-20020a630542000000b00434df5a8524si5662128pgf.396.2022.09.08.05.06.48; Thu, 08 Sep 2022 05:07:02 -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=GrcJ6yCh; 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 S231238AbiIHLex (ORCPT + 99 others); Thu, 8 Sep 2022 07:34:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231225AbiIHLeu (ORCPT ); Thu, 8 Sep 2022 07:34:50 -0400 Received: from smtp.domeneshop.no (smtp.domeneshop.no [IPv6:2a01:5b40:0:3005::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C57E2AE31 for ; Thu, 8 Sep 2022 04:34:48 -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=KYa/QVI6flq5lHnbp60VYWrYz3i2rBG7tpmdjbr7GZo=; b=GrcJ6yChNMl/rreZ16fGX+KLwn GFVb0Zw06qxRhOiTb+mf/0H71iJoRWlPa46/6OVe5vWf2kdgll6709VqoX+K1R8YB7/gyrYPobz3V JzCdNscyqgCXvumP4sFMyqb0pZqvlsNP5nYRXe5s14TPZ4tvRtavYU3jbWhEAQ6rYRdYGmQy7oGie HExkAsdTKp3hnJM0Ao/DTsVcygRVWsLVuBD9sBT5/Q9ggX6/Rdd8mB9lH7AiB+JgUcU6lgcT+jdiR I1SbdI754aUsyUV4yjCBOISLC9wcu4A1N8dVTW+n73EpmvEUNoG/HAwACaFUJgeOIrisfQO3bTsGt yh6BCRIw==; Received: from [2a01:799:961:d200:cca0:57ac:c55d:a485] (port=62929) by smtp.domeneshop.no with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oWFnx-0005DR-KV; Thu, 08 Sep 2022 13:34:45 +0200 Message-ID: Date: Thu, 8 Sep 2022 13:34:38 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH v2 32/41] drm/vc4: vec: Convert to the new TV mode property To: Maxime Ripard 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 , =?UTF-8?Q?Noralf_Tr=c3=b8nnes?= 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> <20220908112312.hlb7mzneuxnethhr@houat> From: =?UTF-8?Q?Noralf_Tr=c3=b8nnes?= In-Reply-To: <20220908112312.hlb7mzneuxnethhr@houat> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.0 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 08.09.2022 13.23, skrev Maxime Ripard: > Hi Noralf, > > On Tue, Aug 30, 2022 at 09:01:08PM +0200, Noralf Trønnes wrote: >>> +static const struct drm_prop_enum_list tv_mode_names[] = { >> >> Maybe call it legacy_tv_mode_enums? >> >>> >>> + { VC4_VEC_TV_MODE_NTSC, "NTSC", }, >>> >>> + { VC4_VEC_TV_MODE_NTSC_J, "NTSC-J", }, >>> >>> + { VC4_VEC_TV_MODE_PAL, "PAL", }, >>> >>> + { VC4_VEC_TV_MODE_PAL_M, "PAL-M", }, >> >> 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? > You're right ofc, I forgot that the enum values are also UABI. Noralf.