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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 34AC0C433FE for ; Mon, 14 Feb 2022 10:18:39 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 551EF10E4F6; Mon, 14 Feb 2022 10:18:38 +0000 (UTC) Received: from aposti.net (aposti.net [89.234.176.197]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7AAB710E4F6 for ; Mon, 14 Feb 2022 10:18:37 +0000 (UTC) Date: Mon, 14 Feb 2022 10:18:24 +0000 From: Paul Cercueil Subject: Re: [PATCH v15 6/7] drm/ingenic: dw-hdmi: make hot plug detection work for CI20 To: "H. Nikolaus Schaller" Message-Id: In-Reply-To: <88297a6ddd9d9eaf78c605e23030b7877bb521d8.1644681054.git.hns@goldelico.com> References: <88297a6ddd9d9eaf78c605e23030b7877bb521d8.1644681054.git.hns@goldelico.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paul Boddie , Neil Armstrong , David Airlie , Robert Foss , dri-devel@lists.freedesktop.org, Jonas Karlman , linux-kernel@vger.kernel.org, Jernej Skrabec , linux-mips@vger.kernel.org, Kieran Bingham , Laurent Pinchart , Andrzej Hajda , letux-kernel@openphoenux.org, Maxime Ripard Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi Nikolaus, Le sam., f=E9vr. 12 2022 at 16:50:54 +0100, H. Nikolaus Schaller=20 a =E9crit : > 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. >=20 > 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(). As I said in your v13 - if you move your patch [2/7] after the patch=20 [5/7] then you can drop this patch (merge it with the patch that=20 introduces ingenic-dw-hdmi.c). Otherwise between the introduction of the driver and the hotplug=20 detection fix, the driver is not usable. Cheers, -Paul >=20 > Signed-off-by: H. Nikolaus Schaller > --- > drivers/gpu/drm/ingenic/ingenic-dw-hdmi.c | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/drivers/gpu/drm/ingenic/ingenic-dw-hdmi.c=20 > 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,=20 > void *data, > if (mode->clock > 216000) > return MODE_CLOCK_HIGH; >=20 > + dw_hdmi_enable_poll(hdmi, true); > + > return MODE_OK; > } >=20 > -- > 2.33.0 >=20