Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2236482pxm; Fri, 4 Mar 2022 12:02:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJyfFROFCKVpYR1ABy4/QH3kHu0AS9Sc1vpJkA1oYM4ggkR9vweNKLDucsqlOQ19KHqcE2+k X-Received: by 2002:a17:907:1687:b0:6b5:a9f7:4eca with SMTP id hc7-20020a170907168700b006b5a9f74ecamr325823ejc.535.1646424168900; Fri, 04 Mar 2022 12:02:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646424168; cv=none; d=google.com; s=arc-20160816; b=XUc5XZC0zsDiqJ4F3l3MufUKo0AAhCbPzGvh+gy4+AZl5QSzaxd8Zr0vwUNdQ2zsKy qnlOOjJo8gSnwcFVYoTgMZKt5Vu5XNhcZ2CidXYaPxrzxzvBUiYVc6z859tb34aOOH7y VAEGBLPU+FUjEwyI8MkDGUObD8Vjf7CDC8IdTdYkOj8k79ASOkM/ktTVWBiwugUqO6hb Q24/xL4/UyycI2M1s2d8/DHeFQo+ogtY6Z19JgV4NAe935R6//bfPGgyTdPt3ZWMUPVE FMuVKzM1TrEZHmg9EvOR+yl5xFegmMP0xynZYh6r4Kfbx41bsLwzqGCWTGpruOhwP5LE +0Mw== 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=dpKi9MVH+mt47FMtyoLhAsx4FkQltNhSU46HvMisEqw=; b=SzJvHxAJwDORaSj7y+I1sqcIV7xo741/CsTYzbIbfywtYms+3ywTCLIqzIYBxnVVBC PEIAPHMX5YXy+rC0p1ILKYnzGkt4PWdRSCs1dhOJk6nAcaE9b7w97iq8mR6ifZPMfiQ3 ew7sSeX86oLAJN4Cs23VRTuuKyT2ssKeiD9ERQhdgtXopcUzn1nfLg8bo2dr4gj37Sgc Ppg4+w7cfV+jRGXnxHwSPMwp6WskkkYjkFkPrPn68iFj/9XS5e4WgUBDkIktFF0Sopwr z2ti9KLeOmRDJ5AlLtBeBKTbyRMgqd/bwocLy8k2rqxo2S/RqniZqBBGcStv6x93PiB9 BQKg== 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 i25-20020a50fd19000000b0041614eca4cbsi788330eds.479.2022.03.04.12.02.23; Fri, 04 Mar 2022 12:02:48 -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 S229943AbiCDUBy convert rfc822-to-8bit (ORCPT + 99 others); Fri, 4 Mar 2022 15:01:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230035AbiCDUBs (ORCPT ); Fri, 4 Mar 2022 15:01:48 -0500 Received: from aposti.net (aposti.net [89.234.176.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F9F5972F2 for ; Fri, 4 Mar 2022 11:56:02 -0800 (PST) Date: Fri, 04 Mar 2022 19:38:29 +0000 From: Paul Cercueil Subject: Re: [PATCH] drm/bridge_connector: enable HPD by default if supported To: Nikita Yushchenko Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Kieran Bingham , Laurent Pinchart , Jacopo Mondi , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Message-Id: <5WJ88R.LXNASHJRBDGL1@crapouillou.net> In-Reply-To: <20211225063151.2110878-1-nikita.yoush@cogentembedded.com> References: <20211225063151.2110878-1-nikita.yoush@cogentembedded.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 Nikita, Le sam., d?c. 25 2021 at 09:31:51 +0300, Nikita Yushchenko a ?crit : > Hotplug events reported by bridge drivers over drm_bridge_hpd_notify() > get ignored unless somebody calls drm_bridge_hpd_enable(). When the > connector for the bridge is bridge_connector, such a call is done from > drm_bridge_connector_enable_hpd(). > > However drm_bridge_connector_enable_hpd() is never called on init > paths, > documentation suggests that it is intended for suspend/resume paths. > > In result, once encoders are switched to bridge_connector, > bridge-detected HPD stops working. > > This patch adds a call to that API on init path. > > This fixes HDMI HPD with rcar-du + adv7513 case when adv7513 reports > HPD > events via interrupts. > > Fixes: c24110a8fd09 ("drm: rcar-du: Use drm_bridge_connector_init() > helper") > Signed-off-by: Nikita Yushchenko Merged to drm-misc-next. Thanks! Cheers, -Paul > --- > drivers/gpu/drm/drm_bridge_connector.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/drm_bridge_connector.c > b/drivers/gpu/drm/drm_bridge_connector.c > index 791379816837..4f20137ef21d 100644 > --- a/drivers/gpu/drm/drm_bridge_connector.c > +++ b/drivers/gpu/drm/drm_bridge_connector.c > @@ -369,8 +369,10 @@ struct drm_connector > *drm_bridge_connector_init(struct drm_device *drm, > connector_type, ddc); > drm_connector_helper_add(connector, > &drm_bridge_connector_helper_funcs); > > - if (bridge_connector->bridge_hpd) > + if (bridge_connector->bridge_hpd) { > connector->polled = DRM_CONNECTOR_POLL_HPD; > + drm_bridge_connector_enable_hpd(connector); > + } > else if (bridge_connector->bridge_detect) > connector->polled = DRM_CONNECTOR_POLL_CONNECT > | DRM_CONNECTOR_POLL_DISCONNECT; > -- > 2.30.2