From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 1D4863C342B for ; Mon, 29 Jun 2026 14:48:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782744538; cv=none; b=J1uK72IdQoaZxT2h1BTIKv+kxOoi7P553mbUH/G8KqYPACIqKyLb7OknIkh9rOLPTn5AEHlmjmRTLnenRLSpqNpj8F0bpTFd5tBJHWlZ0GyG/h9tD7w6/vbuy5eJ/ZmClCF6750KZnCOoEP4Ll+MIfomEfBmPI3SGHicAnj3TlM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782744538; c=relaxed/simple; bh=TY/Ycd0Pv0UYVXHobfUENPm0aoX/GRTId1HfFoGzN1Y=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=SXpldPlnj4bsaLoDxDvSsImzuAeXf9hC3LIRd9B0yIUNtkHKscwEetV5JfO9O67QMheNFNFpVfYm0QSQgZ3f3qijzyl0FI5pkl+QOYHWw+Gb4nABeeMlo3Y1MQKqXQzDAEPkblgK58/QJMUybJ1sAw25Cmce3zPY1bAMNNt/TUE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=H6uAJrPm; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=CJI5zNOM; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="H6uAJrPm"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="CJI5zNOM" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 65TAT2ns2641653 for ; Mon, 29 Jun 2026 14:48:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= dxUOAz6v2DLB3pQ+3w7XXOipI1QUqCU4OXtQP9bfoow=; b=H6uAJrPmvSmWcB34 usS88T/Q0eKB2k3PInmaPfU+i976qDNDwSNegVEB/60KEP5HjppOioy6UcEkSYhb f+/FvJAmwJILDWyIo4ZnkAAT9SaFqV4um6CB8Gmccpbh169rzoVUKy/9OFZTVR0P uDBzEsbvQuFwrt5bW0ccq7TCCIuj6uFyDS26wKop6NhSZzIB/b0sfi8xPeZkj7Ya MTZDsq7ZH+Ml+w84VwNKdB3CcmLbwnPJeBLmTaG4qX3RSMSbxlkkPxuZCvFuIoXZ Y9TkuMtsO1YV7rO+OVTN8aexMO0hfC0kj35n6g4lWbeSY+YeaeSaaFUsDaGG/ikR 4xFdlQ== Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4f3npescng-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 29 Jun 2026 14:48:56 +0000 (GMT) Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-92e53b8a302so171092685a.1 for ; Mon, 29 Jun 2026 07:48:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1782744535; x=1783349335; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=dxUOAz6v2DLB3pQ+3w7XXOipI1QUqCU4OXtQP9bfoow=; b=CJI5zNOMpIBlH1HHIpjTtHevDLDR4xaDUJSu1lVRaz870OhP4n7l+G6sksV1kEOXPi OUPLphQ11zp8B2Sb/orVFjDV/IhnRufuTX6aKZaPnyoACXgdTQU/35HSMWklehwSvUOW sf+ICffEfguyxg6m3ybVFw/sabJ5+zIHQIa3aYHB0iCAWa+H6TgPeGnLRU3oEAtvJHjd tnzgXRal5HiWWwosrFqACfM7tmxdiQieNYM1+YMmMhtf5cC9qE7K7/C9j+w5SE2xugJh eHmOzdRQj8Mp4rQufT9FVOn+ZldwlOzuqtvW7y1jCWXERqNSL4/tto6onw7dShbocOXn A1QA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782744535; x=1783349335; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=dxUOAz6v2DLB3pQ+3w7XXOipI1QUqCU4OXtQP9bfoow=; b=UkSWmaonkBd67MVimSIyBwE1oKN1vrfGlxqMXhps5nCxc9d/xsY3LUU1bExLhlPLA5 Gs/uZOxo4tH90LW3i1+gC1OwAcIaqT8HrLde/qVzjuOo5mRWKkSXq+IEeU8KQNvXwfIH UUDL6k6nH/2R7rs7FZytuclij2PleVmT2D2sPuafbYsW1ue5Q/ETrh+bqrEhY/Vs/tX6 ewiogjY76gvkUkdNtVbEgWk29RPBvYd+zrAtsKa2kCLB+yify1BhjPVIEeYlutV3xeof DVM03efo/QIXVH/oKDLtb3YhBJUpOkASl73mNPNZZJFRlmJieztLtY1u0YDQiOF2tZd4 yPAQ== X-Forwarded-Encrypted: i=1; AFNElJ/os94Usw7N9+vCovnYxA6cIkqvVybyNYUoJyYvSV6qj4aq3ghuLt7GRLeE+vwFKOFIiWJl4LHDaCHlM3Q=@vger.kernel.org X-Gm-Message-State: AOJu0YwXZ9phgA505iVKiOz1rSWdAbigQ0/eON4e6h12Eq9b2iV80T2h 9YzWNV9QDX3zPYQfvvAJ7uWSfyQjkKanBp2zxvFSEn8xd/6Q3UgvVOjqZGZ+2mRA1sUeYtxOrZV om7Nf6N9iDgHncere0GWZX8cZC9GLBBRMlZfxfHz2y99bKZDYMmsPHIaJXU3lYt8gtHE= X-Gm-Gg: AfdE7clgTi0bV0/wWPow2JRTDUkKo/1MDCaY08rhDX0T6jKm3ppEXoxogWUPPfCsR2L ZNVTX9Nj39eGM1QnaT9fOIGsu2cYC5kjWUV8j0OAejOz3M75kPs3OwfBer0sCDJaCRmQbwUb6vz WzbHQ1XVeb6n8xWbYYO66oXctx2ez6r8AQYanqH1bfNj+aprchXv4zFqJYdMw3Se99wIojfwScK Un5WGsgJug+PSfnrAv/G6UC5gfmxoPpbovW1phKE7TxRBag2p7RaE77tcjuu3+qL7+67lw8EdYO HWR/gc/9LVs7Ymlv0RHhAcTzpGe8jLGLrJFhrPqdwJz5iamoHjeMAjcdpNaKFrpQ6b1OkYM7i6R g+a1+rlpTEYspkKT2jDJdC4SfMhZNY2GwmfzvawZnKIjyBsdvRkgGj0NG/eD4FGYVHi7OZUzgIA == X-Received: by 2002:a05:620a:454b:b0:92e:5a5c:6582 with SMTP id af79cd13be357-92e5a5c673bmr275402685a.73.1782744535355; Mon, 29 Jun 2026 07:48:55 -0700 (PDT) X-Received: by 2002:a05:620a:454b:b0:92e:5a5c:6582 with SMTP id af79cd13be357-92e5a5c673bmr275397685a.73.1782744534816; Mon, 29 Jun 2026 07:48:54 -0700 (PDT) Received: from yongmou2.ap.qualcomm.com (Global_NAT1_IAD_FW.qualcomm.com. [129.46.232.65]) by smtp.gmail.com with ESMTPSA id af79cd13be357-926004ab49csm2087974385a.34.2026.06.29.07.48.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jun 2026 07:48:54 -0700 (PDT) From: Yongxing Mou Date: Mon, 29 Jun 2026 22:48:06 +0800 Subject: [PATCH 4/5] drm/msm/dp: report IRQ_HPD as an IRQ-only notification Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260629-msm-dp-msttypec-v1-4-646a10256233@oss.qualcomm.com> References: <20260629-msm-dp-msttypec-v1-0-646a10256233@oss.qualcomm.com> In-Reply-To: <20260629-msm-dp-msttypec-v1-0-646a10256233@oss.qualcomm.com> To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Luca Ceresoli , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Rob Clark , Dmitry Baryshkov , Abhinav Kumar , Jessica Zhang , Sean Paul , Marijn Suijten , Tomi Valkeinen , Bjorn Andersson , Konrad Dybcio Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, Yongxing Mou X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1782744487; l=3483; i=yongxing.mou@oss.qualcomm.com; s=20250910; h=from:subject:message-id; bh=TY/Ycd0Pv0UYVXHobfUENPm0aoX/GRTId1HfFoGzN1Y=; b=AweWrHKC11A5BUtjWFtmRQjNIxUkW7uePMZ5PMNnbD77GSRS7TqPFahMkouslMZ1c+wEOjpym c2STxLMOEvRCcfMVC2RaEefZcMBHE71VDmHjWjqIJ+WHqFr7aOTLrQH X-Developer-Key: i=yongxing.mou@oss.qualcomm.com; a=ed25519; pk=rAy5J1eP+V7OXqH5FJ7ngMCtUrnHhut30ZTldOj52UM= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjI5MDEyMyBTYWx0ZWRfXy9cdBlTCydaW KTx7+PtGvYKXm2W1rnO+qP6yy1YrGqnLRArdCVFOLJD8F0og6QnJPh6dopeho91vL6ABgdZWmEF nflYGlEkcjhjNd2swOJBeBPW9oF0LYkuvs34hYWO+pvP/ADIu4vvx9gU3kPJeoIVoaoMbDB2Pd3 cPYLyvIL8BnYj33XZ7K097cQYn3HIRdqsUhKSdBakcuXcWcACrHuV0FGUpACnr1tETSK/co/SHS 0XTnaeaLfXDmdRWVSsQqZqGwkUOCi69dT3dty/jJZRoX1+p8vorxMk5R5Mw7JcVqyRXoK+qu2qM lu91qPIuAu0JzceyXO5BHn/4v7BRUmZbC9Pzdkf/Mi2j2rINcQf2IYOL6poUyaHOY2J4fayF+TI IyBTC+fzVO4zYQyc4sx1ETY8Oji2VwkCzNtEoXfFI/q4TMrgGFYu5NVAcVL9zB2PQdinPvFnp6N KpBRsBRq9ifqtnRpFpg== X-Proofpoint-ORIG-GUID: lj3dUzF7p1VaHkVbGlidx-uBkajf4aRs X-Authority-Analysis: v=2.4 cv=T6q8ifKQ c=1 sm=1 tr=0 ts=6a4285d8 cx=c_pps a=hnmNkyzTK/kJ09Xio7VxxA==:117 a=C3Dk8TwHQYyIj7nOf9RCJw==:17 a=IkcTkHD0fZMA:10 a=FelO9ux0wxsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=EUspDBNiAAAA:8 a=MqOh_s_JX8DWAqdrIDMA:9 a=QEXdDO2ut3YA:10 a=PEH46H7Ffwr30OY-TuGO:22 X-Proofpoint-Spam-Info: AW1haW4tMjYwNjI5MDEyMyBTYWx0ZWRfX0iWkMf4LcDp/ eJtT/7JZ+LUiFx6qZSsKvjfOLH7W5Ol7Ib8F4wLzGlMsB0L3xhbRSAp7SHycbJBSEl90KywFTIq DJBp/nJo0h+fgk8hgj15YKa6O8NjfUk= X-Proofpoint-GUID: lj3dUzF7p1VaHkVbGlidx-uBkajf4aRs X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-06-29_03,2026-06-26_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 priorityscore=1501 suspectscore=0 clxscore=1015 adultscore=0 lowpriorityscore=0 malwarescore=0 impostorscore=0 phishscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2606290123 MST reuses the SST connector bridge to propagate HPD IRQ events through the bridge chain. For IRQ_HPD notifications there is no connector state transition to report. Use connector_status_unknown together with DRM_CONNECTOR_DP_IRQ_HPD so that the bridge connector framework treats them as IRQ-only notifications and forwards them without modifying connector state. The DP driver handles IRQ_HPD events based on DRM_CONNECTOR_DP_IRQ_HPD rather than connector status transitions. Signed-off-by: Yongxing Mou --- drivers/gpu/drm/msm/dp/dp_display.c | 22 +++++++++------------- drivers/soc/qcom/pmic_glink_altmode.c | 14 +++++++++----- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/drivers/gpu/drm/msm/dp/dp_display.c b/drivers/gpu/drm/msm/dp/dp_display.c index bc93b566fbca..4ee391cc7165 100644 --- a/drivers/gpu/drm/msm/dp/dp_display.c +++ b/drivers/gpu/drm/msm/dp/dp_display.c @@ -1119,14 +1119,10 @@ static irqreturn_t msm_dp_display_irq_thread(int irq, void *dev_id) drm_bridge_hpd_notify(dp->msm_dp_display.bridge, connector_status_connected); - /* Send HPD as connected and distinguish it in the notifier */ - if (hpd_isr_status & DP_DP_IRQ_HPD_INT_MASK) { - if (dp->msm_dp_display.mst_active) - msm_dp_irq_hpd_handle(dp); - else - drm_bridge_hpd_notify(dp->msm_dp_display.bridge, - connector_status_connected); - } + if (hpd_isr_status & DP_DP_IRQ_HPD_INT_MASK) + drm_bridge_hpd_notify_extra(dp->msm_dp_display.bridge, + connector_status_unknown, + DRM_CONNECTOR_DP_IRQ_HPD); ret = IRQ_HANDLED; @@ -1781,11 +1777,11 @@ void msm_dp_bridge_hpd_notify(struct drm_bridge *bridge, drm_dbg_dp(dp->drm_dev, "type=%d link hpd_link_status=0x%x, status=%d\n", msm_dp_display->connector_type, hpd_link_status, status); - if (status == connector_status_connected) { - if (hpd_link_status == ISR_IRQ_HPD_PULSE_COUNT || - extra_status == DRM_CONNECTOR_DP_IRQ_HPD) { - msm_dp_irq_hpd_handle(dp); - } else if (hpd_link_status == ISR_HPD_REPLUG_COUNT) { + if (extra_status == DRM_CONNECTOR_DP_IRQ_HPD || + hpd_link_status == ISR_IRQ_HPD_PULSE_COUNT) { + msm_dp_irq_hpd_handle(dp); + } else if (status == connector_status_connected) { + if (hpd_link_status == ISR_HPD_REPLUG_COUNT) { msm_dp_hpd_unplug_handle(dp); msm_dp_hpd_plug_handle(dp); } else { diff --git a/drivers/soc/qcom/pmic_glink_altmode.c b/drivers/soc/qcom/pmic_glink_altmode.c index 946eb20b8f83..28ab8cbb5ef9 100644 --- a/drivers/soc/qcom/pmic_glink_altmode.c +++ b/drivers/soc/qcom/pmic_glink_altmode.c @@ -373,11 +373,15 @@ static void pmic_glink_altmode_worker(struct work_struct *work) else conn_status = connector_status_disconnected; - drm_aux_hpd_bridge_notify_extra(&alt_port->bridge->dev, - conn_status, - alt_port->hpd_irq ? - DRM_CONNECTOR_DP_IRQ_HPD : - DRM_CONNECTOR_NO_EXTRA_STATUS); + if (alt_port->hpd_irq) { + drm_aux_hpd_bridge_notify_extra(&alt_port->bridge->dev, + connector_status_unknown, + DRM_CONNECTOR_DP_IRQ_HPD); + } else { + drm_aux_hpd_bridge_notify_extra(&alt_port->bridge->dev, + conn_status, + DRM_CONNECTOR_NO_EXTRA_STATUS); + } } else if (alt_port->mux_ctrl == MUX_CTRL_STATE_TUNNELING) { if (alt_port->svid == USB_TYPEC_TBT_SID) pmic_glink_altmode_enable_tbt(altmode, alt_port); -- 2.43.0