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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A025C4332F for ; Wed, 4 Jan 2023 07:29:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233424AbjADH36 (ORCPT ); Wed, 4 Jan 2023 02:29:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230387AbjADH35 (ORCPT ); Wed, 4 Jan 2023 02:29:57 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A741413F75 for ; Tue, 3 Jan 2023 23:29:56 -0800 (PST) Received: from [192.168.1.15] (91-154-32-225.elisa-laajakaista.fi [91.154.32.225]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 6BFD2108; Wed, 4 Jan 2023 08:29:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1672817393; bh=82pyUUf7pT/43ndvROF+ofhgFaSVX8TXD5BpYvrTqWQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=BzOjKTVtnZiVl2irEaEBv8gP58/0VhKIey2Y5UxsL04+LgLkJz52MpgvtcEJEXusj JTpjxJ1MhD2VogxBE/Bh1/8Vd2F9tyDbomBRKNd9/VgorZufwyRGfFZBu9tQIB42Ed 5ng03o56Tixj8izNubKzvw4OipOFP835K5nYs0U8= Message-ID: Date: Wed, 4 Jan 2023 09:29:49 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v3 0/7] drm/bridge_connector: perform HPD enablement automatically To: Dmitry Baryshkov , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Laurentiu Palcu , Lucas Stach , Philipp Zabel , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Rob Clark , Sean Paul , Abhinav Kumar Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org References: <20221102180705.459294-1-dmitry.baryshkov@linaro.org> <362452c5-8858-9ac5-e0ca-8ff993e966b7@linaro.org> Content-Language: en-US From: Tomi Valkeinen In-Reply-To: <362452c5-8858-9ac5-e0ca-8ff993e966b7@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On 28/12/2022 23:58, Dmitry Baryshkov wrote: > On 02/11/2022 20:06, Dmitry Baryshkov wrote: >>  From all the drivers using drm_bridge_connector only iMX/dcss and OMAP >> DRM driver do a proper work of calling >> drm_bridge_connector_en/disable_hpd() in right places. Rather than >> teaching each and every driver how to properly handle >> drm_bridge_connector's HPD, make that automatic. >> >> Add two additional drm_connector helper funcs: enable_hpd() and >> disable_hpd(). Make drm_kms_helper_poll_* functions call them (as this >> is the time where the drm_bridge_connector's functions are called by the >> drivers too). > > Since we are at the beginning of the development window, gracious ping > for this patchset. > > It would be nice to finally handle the bridge_connector's hpd properly. > Calling drm_bridge_connector_enable_hpd() from > drm_bridge_connector_init() is not a proper way to do this. It results > in calling bridge->funcs->hpd_enable() before the rest of the pipeline > was set up properly. For the series: Reviewed-by: Tomi Valkeinen I've been using this series in my local branch for quite a while to fix the HPD issues. Works for me. I still think the "fix" aspect should be highlighted more here, as the current upstream triggers a WARN for "Hot plug detection already enabled" (at least) on OMAP. Tomi