Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp4647053pxb; Sat, 12 Feb 2022 12:49:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJyeablfSDxXEbKSLCHOjvQTzTe6z0U2HXRpcZj/h2mtQrID6IRN8PgoIu5R7XGcQWX9QE7E X-Received: by 2002:a17:902:e2d3:: with SMTP id l19mr7174622plc.103.1644698977879; Sat, 12 Feb 2022 12:49:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644698977; cv=none; d=google.com; s=arc-20160816; b=yzRWRRyQ0zVfVLgI3cybXZwom4uafSVi0Ju2Xapu+1ojFvNqitLox9A9FJbDnvmt5A EmiNr+M5qR8vCspYs9AYpogulMGDVVSPT2iK0VFejFsi6vtqpY9k1tgbsUC7eAw39pxb 4wrC5JZIUrcYC3kmtQf5ALbkAD8OHu5c4iydA3NCdZix0k7GJivuy40xTZeZlCd9aIFz aux6J9NCDyacNUN+A9BbwrpSzcKRoIIEuTaNaU1tSomDf5GvX6BFikAt2iEVF2K0F2Sn C269n4ZQeC41wttwAVnnlpsSxBwa76lp3dFEF2Nz5++aJvKbwrtRD5x8mcWyfIJadq2w ozng== 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:date:subject:cc:to:from :dkim-signature; bh=kj93pV+O/Ut7gMVXVeqqXeECB+NG0uC4DImxZwcSglI=; b=kVER6aUUvYnGNuUstsyZN5SEaAzBt1GL0456cVwKZeUpTzr3OlSGdpOprk1O9axWhS ecp+FXAbRFDocb5Wakozc7wv4yQJ6T5I5bmXEDgNRQKwWb18iMKDWGiReLMPzHujybf/ 6G0Qr/OjYlNh/UqllX0DxpCPJQhys0nJCefECXhWIPITloJieoeYfClZQwCOTXGSxrSr LFxB8vrgRGgB0Y4asrWvTNFvrYeYUig1LeIOiWQI/mHFpqvSFNRBY7D5xmOQkbmaEVxJ Ef/MBvePt+/MYrAmweepHPZ1sJOjHDqFnFFy9RYcplQib4/6SBbTWk3mKNPRKkqEJRdn Rz1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@goldelico.com header.s=strato-dkim-0002 header.b=o7u+5gVr; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v20si8137878plg.264.2022.02.12.12.49.03; Sat, 12 Feb 2022 12:49:37 -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; dkim=pass header.i=@goldelico.com header.s=strato-dkim-0002 header.b=o7u+5gVr; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236698AbiBLPva (ORCPT + 99 others); Sat, 12 Feb 2022 10:51:30 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:54872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236584AbiBLPvN (ORCPT ); Sat, 12 Feb 2022 10:51:13 -0500 Received: from mo4-p04-ob.smtp.rzone.de (mo4-p04-ob.smtp.rzone.de [85.215.255.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33754240A6; Sat, 12 Feb 2022 07:51:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1644681058; s=strato-dkim-0002; d=goldelico.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=kj93pV+O/Ut7gMVXVeqqXeECB+NG0uC4DImxZwcSglI=; b=o7u+5gVrQmqWWmYxw0uRM/AQkzHG0mFMEvhANclRA2L2hFw3DQ6J3R8jpSLCDfDa7i 3FLUm1suYNeGMeXDw77glYRvTpGXrCC5RCSeHoBQY1Yp9dFrqpCmEET7NvESOl9Alq1C 7CF8uBCz7rW3lHjUDQrokuD1RIR5TcBjCd469el3u76qHBHRQ7c1xtWqqetc6NKmrkeb TG9kGxWUAcKSMUyB/DEcgmVNMqF8YdmncRkxXcrl+7v+8jC02dbku7WCMnzV01iW4hxA qs/yJuGbPd66+kJoD/fmnB0iNwJN3JL+XwewWuMgP2NM9OacaSu8cQjBitvKw3bQ95XE IlrQ== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMhflhwDubTJ9o1OAA2UMf2MwPVblcdY=" X-RZG-CLASS-ID: mo00 Received: from iMac.fritz.box by smtp.strato.de (RZmta 47.39.0 DYNA|AUTH) with ESMTPSA id L29417y1CFowsws (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Sat, 12 Feb 2022 16:50:58 +0100 (CET) From: "H. Nikolaus Schaller" To: Andrzej Hajda , Neil Armstrong , Robert Foss , Paul Boddie , Laurent Pinchart , Jernej Skrabec , David Airlie , Daniel Vetter , Paul Cercueil , Maxime Ripard , Harry Wentland , "H. Nikolaus Schaller" , Kieran Bingham Cc: Jonas Karlman , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-mips@vger.kernel.org, letux-kernel@openphoenux.org Subject: [PATCH v15 5/7] drm/bridge: dw-hdmi: introduce dw_hdmi_enable_poll() Date: Sat, 12 Feb 2022 16:50:53 +0100 Message-Id: X-Mailer: git-send-email 2.33.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_NONE, 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 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 826a055a7a273..fc2d5422c8a19 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c @@ -3216,6 +3216,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__ */ -- 2.33.0