Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5570220pxb; Mon, 14 Feb 2022 02:14:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJx8sEQCjgERAheuRNSdTJ59/DiS1iPJ2QbVZVgd/SP/lciRlUBcrjyN0SYj2+2db0pLqji8 X-Received: by 2002:a17:903:1212:: with SMTP id l18mr13355668plh.45.1644833652787; Mon, 14 Feb 2022 02:14:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644833652; cv=none; d=google.com; s=arc-20160816; b=Z736l6x8X1vEw4cKBT+8cmjjyFBX2D6+P/4yVtR8ut2TncXj6f4pb/4krhnGcOJHQ3 bXKG8+UDaidZFSd/WS0bCN3wHWa3Icx7+4wzekbGrH05zyFJ3WF7xQ+yHxHRaJKs8lWY iIPWG8tjV6HEa8u925d4ZL2oqxvSrciGvOGMwGnO/dRFEuO+Lkwr4O9STYRY365qIzp0 bE7L0XdLUNcePx8+nZqnJR1AWv4XKedv5MKCDkMXTeci91fGx17/tFrVnrxhHOIC4fwH ARj8pIdEW8Jk+G/GCqHC0jblYSwkeaLTrWODybCWjXLr21xe4ysqsgROmyKp9HdAb2J/ DHzg== 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=OnmHjCLh5RkKuftzeE4ShHYwcqkWiFyT0Gj+xcgUmbQ=; b=HAGq0cnupvNvSlWXfuq1E9coMcoYFNaRwe+Nnuj74BSXF+g5PjH1hcWAUcwz2yj02V VjHobwDG1j+S22tbtvAL8xEyKHpkGKrHM9ktQixVVAP+wfGcEG9QGTiM2FbmWQWQ4X0V Gm2pvXazirJouWy1CyTfc/9Oo2KN0B7luvn8y47joLTMYb+FiMlinL1QVRo2SaRu6HzC Fa7pVEf36f1JlrknhIwg4fEPP0g4rF86HcoE+0KoI2706hC5oVfgyBwRaFfHDgTjISHh tYkol6zOhGU5H6oYihpI+CNQy2McIODaUblOF/FXjojmrJD8anPBJoyLPmHncmPZU4cP pR0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@goldelico.com header.s=strato-dkim-0002 header.b=ZneUeoUJ; 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 r8si31232466pgr.222.2022.02.14.02.13.59; Mon, 14 Feb 2022 02:14:12 -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=ZneUeoUJ; 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 S236248AbiBLOUa (ORCPT + 99 others); Sat, 12 Feb 2022 09:20:30 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:33380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235939AbiBLOTw (ORCPT ); Sat, 12 Feb 2022 09:19:52 -0500 Received: from mo4-p04-ob.smtp.rzone.de (mo4-p04-ob.smtp.rzone.de [81.169.146.223]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03205245AF; Sat, 12 Feb 2022 06:19:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1644675573; 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=OnmHjCLh5RkKuftzeE4ShHYwcqkWiFyT0Gj+xcgUmbQ=; b=ZneUeoUJLCidnPlGjTclbmIt2OHWSplmBp1Vzg4yov1z3FEpZu7bKJ07c++cvu05KS x6IaHU3UOB6gV26fM//7vwBd5uRUgbp1sXJVs3r88Q8OM01xKySmlOiyAywlxu9qy4j6 j1Px+ZaNKU0IKyNBvKoQaba7cwHkQCYRCOVRYWpsPWfbA1t0fjkLe12uuSOMkzB59sfG BEGFu+ikupkyl6VuRo/5fxZGYAv9eDCQI3CyvOWh31F+R7O5F+ddYfWC7ah4o+RQgc09 bbvIc+FSuTg2MmCuiFl3Zapzjff3BvLC9NBhp3ObeB/zCSWgKwfIi98IP1SPg+3gXqWT Dmag== 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 L29417y1CEJXsqY (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Sat, 12 Feb 2022 15:19:33 +0100 (CET) From: "H. Nikolaus Schaller" To: Paul Cercueil , Rob Herring , Mark Rutland , Thomas Bogendoerfer , "H. Nikolaus Schaller" , Geert Uytterhoeven , Kees Cook , "Eric W. Biederman" , Miquel Raynal , David Airlie , Daniel Vetter , Neil Armstrong , Robert Foss , Laurent Pinchart , Jernej Skrabec , Harry Wentland , Sam Ravnborg , Maxime Ripard , Hans Verkuil , Liam Girdwood , Mark Brown , Paul Boddie , Andrzej Hajda , Kieran Bingham Cc: devicetree@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, letux-kernel@openphoenux.org, Jonas Karlman , dri-devel@lists.freedesktop.org Subject: [PATCH v14 7/9] drm/ingenic: dw-hdmi: make hot plug detection work for CI20 Date: Sat, 12 Feb 2022 15:19:25 +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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 There is no hpd-gpio installed on the CI20 board HDMI connector. Hence there is no hpd detection by the connector driver and we have to enable polling by the dw-hdmi driver. We need to set .poll_enabled but that struct component can only be accessed in the core code. Hence we use the public setter function drm_kms_helper_hotplug_event(). Signed-off-by: H. Nikolaus Schaller --- drivers/gpu/drm/ingenic/ingenic-dw-hdmi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/ingenic/ingenic-dw-hdmi.c b/drivers/gpu/drm/ingenic/ingenic-dw-hdmi.c index 34e986dd606cf..90547a28dc5c7 100644 --- a/drivers/gpu/drm/ingenic/ingenic-dw-hdmi.c +++ b/drivers/gpu/drm/ingenic/ingenic-dw-hdmi.c @@ -55,6 +55,8 @@ ingenic_dw_hdmi_mode_valid(struct dw_hdmi *hdmi, void *data, if (mode->clock > 216000) return MODE_CLOCK_HIGH; + dw_hdmi_enable_poll(hdmi, true); + return MODE_OK; } -- 2.33.0