From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6C6A1C433EF for ; Tue, 2 Nov 2021 08:37:23 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1B67E60249 for ; Tue, 2 Nov 2021 08:37:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 1B67E60249 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4B1E56FE84; Tue, 2 Nov 2021 08:37:22 +0000 (UTC) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1CCA66FE84 for ; Tue, 2 Nov 2021 08:37:21 +0000 (UTC) X-IronPort-AV: E=McAfee;i="6200,9189,10155"; a="292049304" X-IronPort-AV: E=Sophos;i="5.87,202,1631602800"; d="scan'208";a="292049304" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2021 01:37:20 -0700 X-IronPort-AV: E=Sophos;i="5.87,202,1631602800"; d="scan'208";a="500425503" Received: from sohamdas-mobl.gar.corp.intel.com (HELO localhost) ([10.249.32.13]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2021 01:37:17 -0700 From: Jani Nikula To: He Ying , mripard@kernel.org, wens@csie.org, airlied@linux.ie, daniel@ffwll.ch, jernej.skrabec@gmail.com Subject: Re: [PATCH] drm: Grab reference of connector before return connector from sun4i_tcon_get_connector In-Reply-To: <33e01d45-c9f9-0e8c-6871-868ecd198368@huawei.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20211101062906.231518-1-heying24@huawei.com> <87cznkdo6p.fsf@intel.com> <33e01d45-c9f9-0e8c-6871-868ecd198368@huawei.com> Date: Tue, 02 Nov 2021 10:37:14 +0200 Message-ID: <871r3zdkcl.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Tue, 02 Nov 2021, He Ying wrote: > =E5=9C=A8 2021/11/1 21:02, Jani Nikula =E5=86=99=E9=81=93: >> On Mon, 01 Nov 2021, He Ying wrote: >>> From the comments of drm_for_each_connector_iter(), we know >>> that "connector is only valid within the list body, if you >>> want to use connector after calling drm_connector_list_iter_end() >>> then you need to grab your own reference first using >>> drm_connector_get()". So fix the wrong use of connector >>> according to the comments and then call drm_connector_put() >>> after using connector finishes. >>> >>> Signed-off-by: He Ying >> Please use "drm/sun4i:" subject prefix for sun4i patches. > > OK. I'll send a V2 later. By the way, may I have your suggestions about > this patch's content. Sorry, I only looked here because of the subject prefix, and would have skipped it completely with a drm/sun4i prefix. ;) BR, Jani. --=20 Jani Nikula, Intel Open Source Graphics Center