From patchwork Mon Sep 23 07:48:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steffen Dirkwinkel X-Patchwork-Id: 13809351 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 94DB3CF9C6F for ; Mon, 23 Sep 2024 07:49:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=bdfSuHfCrlx1wGjfrH9+twPjEUAgZch4w9adGVm82oY=; b=RtMOpsyeBJDSJW+TK10UoKne8q zXpBMgcAwcwauSQDXgEqgCVsU1uktctAEvuVKINo2CZMSUanD22jfX3pU6bLuTtc2d4TP2Re4sO3/ NwkUsxzLk6dPdrLcbuip/V7GylODNO6STllVdB5Tm+FOhLnptQG67vBYml43zRl58G02PKwV4sQ0C bM/tleo74nJWvjm8El87GWAC0DVxiRH4R676f+I3ZxDj/v6IrH3kE4Hp8V1ABpUTYHZVDSYA6SSjo jFzobjkZwiq7p8ngHLOuGQfGfdbPLGbn1i7z93/VDsb5Z3Np8NWtUARm0Hb4cCSZ/dEqvVge90SGB EIISVtXg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1ssdpF-0000000GZMf-1aO0; Mon, 23 Sep 2024 07:49:41 +0000 Received: from mout-p-103.mailbox.org ([80.241.56.161]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1ssdo8-0000000GZJB-0tpx for linux-arm-kernel@lists.infradead.org; Mon, 23 Sep 2024 07:48:33 +0000 Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4XBw8l6zfSz9smr; Mon, 23 Sep 2024 09:48:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=steffen.cc; s=MBO0001; t=1727077704; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=bdfSuHfCrlx1wGjfrH9+twPjEUAgZch4w9adGVm82oY=; b=D7kmXpfSvAQJkUPYM8fyZbQJa8g6pOf/z5DXlJjNLbi2ebZWbDwaW2WOeRCcoBi3ykoTUo iG4k2PHk/OC8h0lqV1fth93Nx024PjWBuUvxi1fPhNSiB92TQ6054jRsEbFBnZam6gFRIU NDmJS2yiOefOqtjSDrKq3D/1vWto4Qe1sduRZAIcdMExaCeN5D8rtYhQub4P5Gp5aRgtR8 N1ssqgbpVsIMO1yrcidpV9R82vjqdADEcMqFCKVZQcpKdAxeL2EQf+JaSDxCkXVXFi+RzQ F10CPZHTmJGrXigu5aIi8tx7ppQNhWvZsdTkgOa6Vj1TNtax145KcTvSw7+Adg== From: lists@steffen.cc To: dri-devel@lists.freedesktop.org, Laurent Pinchart Cc: Steffen Dirkwinkel , Steffen Dirkwinkel , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Michal Simek , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm: xlnx: zynqmp_dpsub: also call drm_helper_hpd_irq_event Date: Mon, 23 Sep 2024 09:48:03 +0200 Message-ID: <20240923074803.10306-1-lists@steffen.cc> MIME-Version: 1.0 X-Rspamd-Queue-Id: 4XBw8l6zfSz9smr X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240923_004832_566468_0E335DC5 X-CRM114-Status: UNSURE ( 8.84 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Steffen Dirkwinkel With hpd going through the bridge as of commit eb2d64bfcc17 ("drm: xlnx: zynqmp_dpsub: Report HPD through the bridge") we don't get hotplug events in userspace on zynqmp hardware. Also sending hotplug events with drm_helper_hpd_irq_event works. Fixes: eb2d64bfcc17 ("drm: xlnx: zynqmp_dpsub: Report HPD through the bridge") Signed-off-by: Steffen Dirkwinkel --- drivers/gpu/drm/xlnx/zynqmp_dp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/xlnx/zynqmp_dp.c b/drivers/gpu/drm/xlnx/zynqmp_dp.c index 1846c4971fd8..cb823540a412 100644 --- a/drivers/gpu/drm/xlnx/zynqmp_dp.c +++ b/drivers/gpu/drm/xlnx/zynqmp_dp.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include @@ -1614,6 +1615,9 @@ static void zynqmp_dp_hpd_work_func(struct work_struct *work) hpd_work.work); enum drm_connector_status status; + if (dp->bridge.dev) + drm_helper_hpd_irq_event(dp->bridge.dev); + status = zynqmp_dp_bridge_detect(&dp->bridge); drm_bridge_hpd_notify(&dp->bridge, status); }