From patchwork Mon Oct 21 13:41:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steffen Dirkwinkel X-Patchwork-Id: 13844238 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 32561D15D98 for ; Mon, 21 Oct 2024 14:05:02 +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=p+Ueqw7K6WBwEq+dB6zx4UE03I/127H/OEWMY7Bd6us=; b=aRDUpJmLw8swwT4lzXd2bc31uk DPMPImIUx1MBkTc0d8NynOxtAYxG9ADomlRe3dzolA2gfSVA596wKkaFqOzr3vbuzzapmCa45BC19 lMEN1vEXpJxz8OfahROpYi1om9rERukCNSbh068KbBpM70vatiIgPv7ysLyKlkdrekfytchvsVgcQ 5AwXlQVDX4FKGcn6e7nXUt9Rn3kGcIoxvI5n+HF7P/zYj2/28ijPijN37WrWp7jwkGtMFpnii2neR GUp6/cPyR8XMIx4SvAUOb8IkrAILQEbEVlMld8HuZ2EO3t0ORLEyTHyslE/PlTvr7gtlPB1c82BEJ ClnfUClQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2t1b-00000007Y7Q-3UT7; Mon, 21 Oct 2024 14:04:48 +0000 Received: from mout-p-202.mailbox.org ([2001:67c:2050:0:465::202]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2sg9-00000007Sge-3RGl for linux-arm-kernel@lists.infradead.org; Mon, 21 Oct 2024 13:42:39 +0000 Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (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-202.mailbox.org (Postfix) with ESMTPS id 4XXGhT4w7Sz9sqr; Mon, 21 Oct 2024 15:42:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=steffen.cc; s=MBO0001; t=1729518153; 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=p+Ueqw7K6WBwEq+dB6zx4UE03I/127H/OEWMY7Bd6us=; b=1HBJy0MWhCTeRao5h9ySggPP1YHqCwKRWJJp3t1NP8nwkRoGsFXoWVwCX3oW70/FDGnAe8 KXbn4FFgoq3/axUS7BRaaxQNLeET3MGRX8jSRScyubaL909T6gnkdmuYFSmlqdz3B2e6q+ hL3J4NEV+1UIgeH5D81zf54lz2uOqi8493PZffxo+reHiPl2SmIZwlxFFJlTUPhnO34ycG Gi8WnZ9pKlwZX5hXP/rLoS/KCaFalUyv1KtAUDK3FYPKhdkIzzFgv36GxUVQn+S8VzWp7S mXmgJibt1/VcdzNEzQaDJE8FuAu3uid3+MQv8+f8td6b/pEcvsoH+5NWMlUJ/w== From: Steffen Dirkwinkel To: dri-devel@lists.freedesktop.org, Laurent Pinchart Cc: Dmitry Baryshkov , Steffen Dirkwinkel , Tomi Valkeinen , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Michal Simek , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm: xlnx: zynqmp_dpsub: fix hotplug detection Date: Mon, 21 Oct 2024 15:41:14 +0200 Message-ID: <20241021134115.216568-1-lists@steffen.cc> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241021_064238_161907_B8393FD6 X-CRM114-Status: UNSURE ( 9.27 ) 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 drm_kms_helper_poll_init needs to be called after zynqmp_dpsub_kms_init. zynqmp_dpsub_kms_init creates the connector and without it we don't enable hotplug detection. Signed-off-by: Steffen Dirkwinkel --- drivers/gpu/drm/xlnx/zynqmp_kms.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/xlnx/zynqmp_kms.c b/drivers/gpu/drm/xlnx/zynqmp_kms.c index bd1368df7870..311397cee5ca 100644 --- a/drivers/gpu/drm/xlnx/zynqmp_kms.c +++ b/drivers/gpu/drm/xlnx/zynqmp_kms.c @@ -509,12 +509,12 @@ int zynqmp_dpsub_drm_init(struct zynqmp_dpsub *dpsub) if (ret) return ret; - drm_kms_helper_poll_init(drm); - ret = zynqmp_dpsub_kms_init(dpsub); if (ret < 0) goto err_poll_fini; + drm_kms_helper_poll_init(drm); + /* Reset all components and register the DRM device. */ drm_mode_config_reset(drm);