From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-171.mta1.migadu.com (out-171.mta1.migadu.com [95.215.58.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 31729329E78 for ; Thu, 30 Oct 2025 20:37:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761856632; cv=none; b=DA5I5AQZ1cJpmvyck19iJc80bE3WVc01Km5pIxBwuBqgVa11w2UIDvIhSugx8t9sXXKqxlhxOWx1h8wp33Va/6v3bWIETmiKozCW6YbopirOagTMztSCiIeetYyPhjuRaJdHCcir06oKHHNhkT3qOnAdkoCCEuI2h7r8CnWjj94= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761856632; c=relaxed/simple; bh=mxWhh1FCkJo5UGiIEo9esESyzNkTFWOhTirRuYiMSUI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=qqdKbBfUKBwsV8xGWiKOEU5Y4frzVesGso4IN9KY1BoAa71h2no0x9cex5f+iykTwsiSm4depfU7jnZAPAYwMhVYgkd3TuDR1+ipwIO2DPdueUx/7usbeOWG7EuiQ/lXDdAvDYQmljl6Rg1bVaiENAHa2MaZREFXDTdnAxIFedQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=N0SuEF2o; arc=none smtp.client-ip=95.215.58.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="N0SuEF2o" 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT 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