Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp2408195rwe; Sun, 28 Aug 2022 10:35:30 -0700 (PDT) X-Google-Smtp-Source: AA6agR4WWijeliUeX5mBFpqnNQ9HSc1XN+Fl1NhMkOJ4SchKHcqps/qRA61vvFthTSF8b3OsaEbc X-Received: by 2002:a05:6402:1ccb:b0:446:4346:8597 with SMTP id ds11-20020a0564021ccb00b0044643468597mr13761684edb.177.1661708130412; Sun, 28 Aug 2022 10:35:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661708130; cv=none; d=google.com; s=arc-20160816; b=Vf/wc/YJpVvoG+X/T23y/B3SeSmPJ1dMoeOUa6c/l+6FZVXATAEFcSybNd8gKiBiqY zeHco2C1loc/O9vsd8z+IQMhMGvV73llPSlxgidTBGh9p5UcYUi9m2ZnTwaxoPO0JXOm MV2Ek4KlS7TjSi2yiTtbS4L0L/Nt35UddgIWXS4pZBcRFIErHFqael3s29W9yoX0aH2f thCA1f66w9kdwMhlis3mTNB7Pj4yKfdkrvshD0bImxVyrgoTOztrgpqaUc6cFwP0J+r/ AOPDnVXv88HeQFh+L6Wtm+a3UO9qjeyZVLKhsixdiZJ52MXSSkfq8iIJ/Qtw1VtVzpkU kBOQ== 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=hUHwNV0Eqbp5+kyWPg3hdOExuH1sZ2s4LMJ069EmR+Q=; b=a/ZT3frj4srKacdZXvOkfme+DhXDH3XwvxCsqwYRJZ9E/PllPHBJIV74LGBZ8CaELC ZJmTyXlohb2+Ihm4uBADOde2wn4MNK0VuPGWigSFAMZEppichJt3SQ5RNRbQRCcmKYzE tTCna8UwNmdAO6WOKXQ/S4juh4FdZfKt6qexUUTOMfeaiUq8nMYACz4dBRtK2O18WGv+ 0Zd+mzM625Zacqa9gBkZASALMiznUfZUYF3klXjgOGLoXpbIXF7SNiZEgLlIcLUzsnK9 tkftI4Mhu+ieiHXYA6gd6n5dKUSAz94sBGn7tGYJr1apOYLe1Oan8HuRWcODR6i95Sr3 v/Lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@tronnes.org header.s=ds202112 header.b=o7Uwfkwg; 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 dt22-20020a170907729600b0073dc0a15a6asi5036154ejc.8.2022.08.28.10.34.59; Sun, 28 Aug 2022 10:35:30 -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=o7Uwfkwg; 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 S230099AbiH1RMU (ORCPT + 99 others); Sun, 28 Aug 2022 13:12:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230090AbiH1RMS (ORCPT ); Sun, 28 Aug 2022 13:12:18 -0400 Received: from smtp.domeneshop.no (smtp.domeneshop.no [IPv6:2a01:5b40:0:3005::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 073D133413 for ; Sun, 28 Aug 2022 10:12:17 -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=hUHwNV0Eqbp5+kyWPg3hdOExuH1sZ2s4LMJ069EmR+Q=; b=o7UwfkwgYp36t92og3iHfkSouB YESi0tfVO5wQICewKkSIRbnr2KQipFWbED5nxDMlPC6qob1lkztp3GWsGFlwmo57QQBexIlYLG5QA 0N1jODHJj2leBFYzx8UPKqX7Z4Anid1HmiyoYemZSvmN1c91xkAfeNNe7XImj/sm5cH680dxftoNP o6B3Qx4dYIa1MEyo+dCXkTnJoat7p46foI6y5CJaeHVq8jgEl0xLshfAP7yf4PwFRWFZPTKR9U/WH k/qJOtNdlEV2tqDF0EFUFOZsGDHd58w18s33QoT3CDvL7rsKMHZmGvGIT8EWk7DLfdVADiXHqLwu/ mD0kle2g==; Received: from [2a01:799:961:d200:cca0:57ac:c55d:a485] (port=60629) by smtp.domeneshop.no with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oSLpX-000560-9b; Sun, 28 Aug 2022 19:12:15 +0200 Message-ID: <011bcfa3-b655-0851-cfd4-560504efd8b1@tronnes.org> Date: Sun, 28 Aug 2022 19:12:12 +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 32/35] drm/sun4i: tv: Convert to the new TV mode property To: Maxime Ripard , 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 , Maxime Ripard Cc: 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-32-3d53ae722097@cerno.tech> From: =?UTF-8?Q?Noralf_Tr=c3=b8nnes?= In-Reply-To: <20220728-rpi-analog-tv-properties-v1-32-3d53ae722097@cerno.tech> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 29.07.2022 18.35, skrev Maxime Ripard: > Now that the core can deal fine with analog TV modes, let's convert the > sun4i TV driver to leverage those new features. > > Signed-off-by: Maxime Ripard > > diff --git a/drivers/gpu/drm/sun4i/sun4i_tv.c b/drivers/gpu/drm/sun4i/sun4i_tv.c > index 74ff5ad6a8b9..bed52423776e 100644 > --- a/drivers/gpu/drm/sun4i/sun4i_tv.c > +++ b/drivers/gpu/drm/sun4i/sun4i_tv.c > @@ -586,8 +524,17 @@ static int sun4i_tv_bind(struct device *dev, struct device *master, > > drm_connector_attach_encoder(&tv->connector, &tv->encoder); > > + ret = drm_mode_create_tv_properties(drm, > + DRM_MODE_TV_NORM_NTSC_M | > + DRM_MODE_TV_NORM_PAL_B, > + 0, NULL); > + if (ret) > + goto err_cleanup_connector; > + Looks like you have forgotten to attach the property? Noralf. > return 0; > > +err_cleanup_connector: > + drm_connector_cleanup(&tv->connector); > err_cleanup_encoder: > drm_encoder_cleanup(&tv->encoder); > err_disable_clk: >