Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1150849pxm; Thu, 3 Mar 2022 11:18:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJwgp6y9lzktfSzz1P52TlO3QI3b1UAjEyyVQ7z1TfVt58kF9xuzJrpJMETzH9IOSPVtpUxA X-Received: by 2002:a63:451e:0:b0:373:6a1d:2ad9 with SMTP id s30-20020a63451e000000b003736a1d2ad9mr32139581pga.114.1646335095324; Thu, 03 Mar 2022 11:18:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646335095; cv=none; d=google.com; s=arc-20160816; b=TY0DrkjTM3LAbKyUXIA5+Vw1D5aX3IBpuZPPFu/OZGna3zwwMu1x27L5LyhqyOTuo1 Md4OYwWIbgDdUyjVUlgl2HSVfnsZFRCMFvUm0yBp6EVXbhKeR7LKYH0XexBiuuz1RjOk kcFGL+k98hg8TO6hZOJU0DX7gccaSUyALdzFVYqWH83q6KP9NShkEBxXr95STCzvVnft 4dsutcrf70J7gfgBjoRWr0UmipM6b7VmUVG0Wi4wjoNApRq4Yl3HTjj9H377GuRA9WsP ORZVYoe2uTMf/iB/5veZ4kBwl0yZz2Jjhtv8cH1qBkhiWEWa1kq7wX4wwO4FDzHNZKeF HSpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :cc:to:subject:from:date; bh=jbDpjAGT8AYHwT/4+N2wqC6NOWeKf3Iz6UE9OJTsFr8=; b=UbCxIKISJkWvVcn1LnETnAFezZmftHbqsGD3ceSXH1LyXgQdJpmgYl8OhgBIK6/3X4 G70+RytXPFNd/vQ4DXLsQWnfgKRym+tcTdL1VoLoHq0UkV2kHzE9UcFiU6S9ofD1xpAo qf74E+xzyfdcTxCqkD5VzN995dhyK+0zAKQz9p+JxGcnrBdWQ7euJigvGJgZaXe1Yp/6 fLqW1fcPBDTFcKk6ynRk+wJLRI8CFrdWUcxjnzLGSRspo66ZlQO0NGzt7ja6tLrvVfcL jpMnEg5Abrd5lGKs0++AZHZaM2IgXH8n0GQt5m3nZrjyjknF3aecccIQJxg15cTO0bdj 4/rA== ARC-Authentication-Results: i=1; mx.google.com; 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=crapouillou.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c18-20020a056a000ad200b004f40144cf75si3321856pfl.136.2022.03.03.11.17.57; Thu, 03 Mar 2022 11:18:15 -0800 (PST) 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; 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=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235296AbiCCRVw (ORCPT + 99 others); Thu, 3 Mar 2022 12:21:52 -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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, 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 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 >