Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2179436iof; Tue, 7 Jun 2022 22:21:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0B60UDaNPPPJLfx2EfNyEtf4FpIAL3O4CfhhflOAtgZo9anlnTVca/hjS06+MTWEwgps5 X-Received: by 2002:a17:902:d48e:b0:167:5752:3b43 with SMTP id c14-20020a170902d48e00b0016757523b43mr22254605plg.52.1654665663116; Tue, 07 Jun 2022 22:21:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654665663; cv=none; d=google.com; s=arc-20160816; b=yw4MIL3rpCDt9KruDdm664i8RVZyle5HKRbRMiD2aoofd8zxFVMZ9vsraYZXhaRJFn cGx/1KmCnpUd1fF82ZPibLfZk0QCw8KgND1LNW2XlQqFvWUbD6dwpVV7OivIRSVZyc9L 23/JJoujYsJmhYKJSxj7wJm2BCb8OrsW9BFbsf7MDFruboY/MkStHn36UgqVGkCfbL20 Qxs+tDt1jidbHXlnu7+I1tuHEjYyPgPEfRtM5f2yzBZU7ILBHpwmAceYshpjmULf3LCF vWLfYMPAJHQUFvGBRLunyWvLeAunimRRXeFg98ZZymgYYxsopTgYQV3jli4wQ/jO06/c j6Uw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=bFPuZS45sp42EtRcyLCY13ttkgp2vKs+wQo9RUrRX9I=; b=ruS8pPf1DG2jJAwMPxtV790GLPuh8VLfHHY91TCc7wZg78N2XM14JZOyn+7wxYlzfg wOwKT73G3tYveui1oRj2qtGzJe0NrLmMZTgMm2cvvQw7QVRhlycG+NNfi0IBnBiAkDGz xla/B9AkNBNd1OGV7C4qcFSj5LXzdI46yqdaHLvcRRLvTa0QRSGX9WQHZjEoO9hJb4IV +32/D98OtNFoNOZyQhQ0LzjPhv1sbdlk8FXLScP0lUxk+R2nAKEm8Zk/md6E5VXE20eE mg856WwCf63p0CBSEz80c6RalUh7O9AHoAIpc6K1j5nUWW9qHaW9Zsr46rvzdcSs5XxZ FCEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bpRYPUF2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id o6-20020a170902d4c600b0016759c39ce7si18999468plg.204.2022.06.07.22.21.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:21:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bpRYPUF2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9805B48395F; Tue, 7 Jun 2022 21:56:37 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380614AbiFGWXQ (ORCPT + 99 others); Tue, 7 Jun 2022 18:23:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380742AbiFGVQz (ORCPT ); Tue, 7 Jun 2022 17:16:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC1EB8A064; Tue, 7 Jun 2022 11:57:10 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 481676159D; Tue, 7 Jun 2022 18:57:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B2BCC385A2; Tue, 7 Jun 2022 18:57:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654628229; bh=27T+o5aDnrnyaKXC7K+l9XYzuMzC06GKuuJNvAXwJ1I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bpRYPUF2ExLBgXHNzAJ0pplxkGNS1c8fvkZ+9KWgPT5iQWcdX6pP85Il6hJhN3Co3 0i9fp2dFgZQJqrTAVgH7H4ms48Vc0uaXibyS0d9aUTsFeUoEkm2OFQ8WGv/eO0dmju k9mpY5JzU6cW/pZj7DHU9mPK6VDZcdvIzLNiKFqg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nikita Yushchenko , Paul Cercueil , Kieran Bingham , Laurent Pinchart , Sasha Levin Subject: [PATCH 5.18 254/879] drm/bridge_connector: enable HPD by default if supported Date: Tue, 7 Jun 2022 18:56:12 +0200 Message-Id: <20220607165010.222466946@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 From: Nikita Yushchenko [ Upstream commit 09077bc3116581f4d1cb961ec359ad56586e370b ] 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 Signed-off-by: Paul Cercueil Tested-by: Kieran Bingham Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart Link: https://patchwork.freedesktop.org/patch/msgid/20211225063151.2110878-1-nikita.yoush@cogentembedded.com Signed-off-by: Sasha Levin --- 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 60923cdfe8e1..6b3dad03d77d 100644 --- a/drivers/gpu/drm/drm_bridge_connector.c +++ b/drivers/gpu/drm/drm_bridge_connector.c @@ -384,8 +384,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.35.1