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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7FB3CC433FE for ; Thu, 3 Mar 2022 17:21:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235289AbiCCRVu (ORCPT ); Thu, 3 Mar 2022 12:21:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231280AbiCCRVu (ORCPT ); Thu, 3 Mar 2022 12:21:50 -0500 Received: from aposti.net (aposti.net [89.234.176.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E89BC198D27; Thu, 3 Mar 2022 09:21:04 -0800 (PST) Date: Thu, 03 Mar 2022 17:20:51 +0000 From: Paul Cercueil Subject: Re: [Letux-kernel] [PATCH v16 1/4] drm/bridge: dw-hdmi: introduce dw_hdmi_enable_poll() To: "H. Nikolaus Schaller" Cc: Neil Armstrong , Paul Boddie , Daniel Vetter , Maxime Ripard , Jonas Karlman , David Airlie , dri-devel , linux-mips , Jernej Skrabec , linux-kernel , Kieran Bingham , Robert Foss , Andrzej Hajda , Laurent Pinchart , Discussions about the Letux Kernel Message-Id: In-Reply-To: References: <983e9064-17ad-e646-f37d-ca9173ba0967@baylibre.com> <3E620AF4-402E-45EA-9D92-92EAEA9647F5@goldelico.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Hi Nikolaus, [snip] >> Well he said "the Ingenic DRM core" aka ingenic-drm-drv.c. You do >> have access to the main drm_device in the ingenic_drm_bind() >> function, so you can add it there (with a cleanup function calling >> drm_kms_helper_poll_fini() registered with >> drmm_add_action_or_reset()). > > Well, do you really want to mix HPD detection between connector, > Synopsys bridge and Ingenic DRM core? These are independent... > Or should be accessed only through the bridge chain pointers. > > IMHO we should keep separate functions separate. The drm_kms_helper_poll_init() just says "this DRM device may have connectors that need to be polled" so it very well fits inside the main driver, IMHO. -Paul > > And maybe this should also be conditional? Maybe not depend on > compatible = jz4780 but compatible = ci20? > > Looks to me to be a quick fix in the wrong place. > > Let's fix the CSC issue first. > > BR, > Nikolaus >