Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1217637pxm; Thu, 3 Mar 2022 12:43:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJwf4Rb50iFYGwXrkl2hKiFFUErcxtrM3BkN7tlxG5iwQYV12bJCUE/bEauRNfc0ryrviwKm X-Received: by 2002:a05:6402:1941:b0:413:2b5f:9074 with SMTP id f1-20020a056402194100b004132b5f9074mr36402291edz.414.1646340186842; Thu, 03 Mar 2022 12:43:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646340186; cv=none; d=google.com; s=arc-20160816; b=gWLL+YaQ2m726ZnACmXshIaAm5KsDR08d1mXbRf1BmogeUIyj1z25psO+p+nUWJdYU +EY9uFX5HnjutknLb4XHGCSxrFjF7GACQCgSeYLtYiDF9YZm/LqNF3j1eb7y2eC0BPAQ SGAw0893nUnzrZ1GBJ8Z2ZH6W389ol8JpTHrIWfeFkTu5Uhki7nQooZgfB9fwE3X0JlW mfcG8WPkh1Z49gtMpwvh7AHaMBC0zIHvnZdQpvdiuQHhp8b5catnKG5oKAFfwPgON/ze Mqd4mS0Ah8OyO8bee1QlAgCZibxqJZmOViuUQDBa4ULsOHolMfYpvn8CXMGkMIiVh/g/ aoKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:cc:to:subject:from:date; bh=6+X2y7VLvxC8LBiOS14MqWdH8u8CAylZfpzWsmsJ4bs=; b=kQGXSjuUe5RhGXWFG1UePTKr6vYVIebT9FyNdrJuy9bUcwu/nvsMNGeaWWxHJnaoVe VOrqIOwAUjdDeKl3GUVE7G/KJjmVkEfQJcxWiz9fme/tTPLQL1u6vxFsv87rrR2PguBo rtYQtEZN/uVq4m4m48Se+AjhSyE+MLxI9j5a/2q+D7olnMOU/pRr0Ah+Sqan7+gfXog5 iPKMbYOau3bnMpel/f78u5iIPwFLY5vRH/HkrhXP/KzOtVGPM3FT2/kHDD/Peu1MHbKk ZEtUylJ0gcpTfEPoPAdun1ONorhc3pw0NhEBkkBGUfPmHtAKRL0D2/4O8bJbZWoXnqwz D6Nw== 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 gb22-20020a170907961600b006d79dcb4628si2204706ejc.102.2022.03.03.12.42.43; Thu, 03 Mar 2022 12:43:06 -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 S235140AbiCCQrJ convert rfc822-to-8bit (ORCPT + 99 others); Thu, 3 Mar 2022 11:47:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229547AbiCCQrH (ORCPT ); Thu, 3 Mar 2022 11:47:07 -0500 Received: from aposti.net (aposti.net [89.234.176.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EBB4144F6C; Thu, 3 Mar 2022 08:46:22 -0800 (PST) Date: Thu, 03 Mar 2022 16:46:08 +0000 From: Paul Cercueil Subject: Re: [PATCH v16 1/4] drm/bridge: dw-hdmi: introduce dw_hdmi_enable_poll() To: Neil Armstrong Cc: "H. Nikolaus Schaller" , Andrzej Hajda , Robert Foss , Paul Boddie , Laurent Pinchart , Jernej Skrabec , David Airlie , Daniel Vetter , Maxime Ripard , Kieran Bingham , letux-kernel@openphoenux.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Jonas Karlman Message-Id: In-Reply-To: <983e9064-17ad-e646-f37d-ca9173ba0967@baylibre.com> References: <983e9064-17ad-e646-f37d-ca9173ba0967@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8BIT 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 Neil, Le jeu., mars 3 2022 at 17:23:02 +0100, Neil Armstrong a ?crit : > Hi, > > On 26/02/2022 18:12, H. Nikolaus Schaller wrote: >> so that specialization drivers like ingenic-dw-hdmi can enable >> polling. >> >> Signed-off-by: H. Nikolaus Schaller >> --- >> drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 9 +++++++++ >> include/drm/bridge/dw_hdmi.h | 1 + >> 2 files changed, 10 insertions(+) >> >> diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c >> b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c >> index 4befc104d2200..43e375da131e8 100644 >> --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c >> +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c >> @@ -3217,6 +3217,15 @@ static int dw_hdmi_parse_dt(struct dw_hdmi >> *hdmi) >> return 0; >> } >> +void dw_hdmi_enable_poll(struct dw_hdmi *hdmi, bool enable) >> +{ >> + if (hdmi->bridge.dev) >> + hdmi->bridge.dev->mode_config.poll_enabled = enable; >> + else >> + dev_warn(hdmi->dev, "no hdmi->bridge.dev"); >> +} >> +EXPORT_SYMBOL_GPL(dw_hdmi_enable_poll); >> + >> struct dw_hdmi *dw_hdmi_probe(struct platform_device *pdev, >> const struct dw_hdmi_plat_data *plat_data) >> { >> diff --git a/include/drm/bridge/dw_hdmi.h >> b/include/drm/bridge/dw_hdmi.h >> index 2a1f85f9a8a3f..963960794b40e 100644 >> --- a/include/drm/bridge/dw_hdmi.h >> +++ b/include/drm/bridge/dw_hdmi.h >> @@ -196,5 +196,6 @@ enum drm_connector_status >> dw_hdmi_phy_read_hpd(struct dw_hdmi *hdmi, >> void dw_hdmi_phy_update_hpd(struct dw_hdmi *hdmi, void *data, >> bool force, bool disabled, bool rxsense); >> void dw_hdmi_phy_setup_hpd(struct dw_hdmi *hdmi, void *data); >> +void dw_hdmi_enable_poll(struct dw_hdmi *hdmi, bool enable); >>  #endif /* __IMX_HDMI_H__ */ > > As I understand, this is because the IRQ line of the dw-hdmi IP isn't > connected right ? and you use the display-connector ddc gpio instead ? According to the CI20 schematic, it is wired properly. So that's strange. > > In this case I think the Ingenic DRM core should call > drm_kms_helper_poll_init(drm) instead. Yes, the ingenic-drm driver does not poll for connectors because until now it never has been needed. Cheers, -Paul