From mboxrd@z Thu Jan 1 00:00:00 1970 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 A3011CCF9E3 for ; Thu, 30 Oct 2025 20:43:37 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EE8D010EA53; Thu, 30 Oct 2025 20:43:34 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=linux.dev header.i=@linux.dev header.b="N0SuEF2o"; dkim-atps=neutral Received: from out-173.mta1.migadu.com (out-173.mta1.migadu.com [95.215.58.173]) by gabe.freedesktop.org (Postfix) with ESMTPS id CDAC210EA2E for ; Thu, 30 Oct 2025 20:43:32 +0000 (UTC) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1761856625; 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: in-reply-to:in-reply-to:references:references; bh=OiEhZggfL5Xg3vG4VJq5+2MUKP+PyMAkCqc8zsFcA0Q=; b=N0SuEF2owlityULu8HbFwF+FzJTHjmGoY7AjOStB2YayB+e2B78GHkSEC/TttUuEA/ZBfr PKRbttM6nTlsAnFhwvmKa54B88nzdVTLVXkBcsVMLOaxJ2UAWzy9uqWR29uNqCFA7eaH+D yRSJGf1klvk1IJHcEkYNmo8hwN3w1Dk= From: Sean Anderson To: Laurent Pinchart , Tomi Valkeinen , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , dri-devel@lists.freedesktop.org Cc: Michal Simek , linux-arm-kernel@lists.infradead.org, Simona Vetter , David Airlie , linux-kernel@vger.kernel.org, Sean Anderson Subject: [PATCH v2 1/3] drm: zynqmp_dp: Update connector state before AUX transfers Date: Thu, 30 Oct 2025 16:36:40 -0400 Message-Id: <20251030203642.3076656-2-sean.anderson@linux.dev> In-Reply-To: <20251030203642.3076656-1-sean.anderson@linux.dev> References: <20251030203642.3076656-1-sean.anderson@linux.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" We still want to retry AUX transfers even when the connector is first plugged in. Update the connector state before reading the DPDC to ensure the AUX bus sees the most-recent state. Fixes: d76271d22694 ("drm: xlnx: DRM/KMS driver for Xilinx ZynqMP DisplayPort Subsystem") Signed-off-by: Sean Anderson --- (no changes since v1) drivers/gpu/drm/xlnx/zynqmp_dp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/xlnx/zynqmp_dp.c b/drivers/gpu/drm/xlnx/zynqmp_dp.c index 34ddbf98e81d..f39c78b08e6a 100644 --- a/drivers/gpu/drm/xlnx/zynqmp_dp.c +++ b/drivers/gpu/drm/xlnx/zynqmp_dp.c @@ -1697,6 +1697,7 @@ static enum drm_connector_status __zynqmp_dp_bridge_detect(struct zynqmp_dp *dp) } if (state & ZYNQMP_DP_INTERRUPT_SIGNAL_STATE_HPD) { + dp->status = connector_status_connected; ret = drm_dp_dpcd_read(&dp->aux, 0x0, dp->dpcd, sizeof(dp->dpcd)); if (ret < 0) { @@ -1711,7 +1712,6 @@ static enum drm_connector_status __zynqmp_dp_bridge_detect(struct zynqmp_dp *dp) drm_dp_max_lane_count(dp->dpcd), dp->num_lanes); - dp->status = connector_status_connected; return connector_status_connected; } -- 2.35.1.1320.gc452695387.dirty