Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4894163rdb; Fri, 15 Sep 2023 16:10:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE2i61cfXnB6JfKlDQDG5MzWfPqD6Y9b5X+uDAunmDRKwxGS5cicg3rCW0ZGkJYKjUTiTYG X-Received: by 2002:a05:6358:4410:b0:139:cb15:ecd3 with SMTP id z16-20020a056358441000b00139cb15ecd3mr3686617rwc.8.1694819408799; Fri, 15 Sep 2023 16:10:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694819408; cv=none; d=google.com; s=arc-20160816; b=AzxrW9HiLjCHPzM6Ag2tZa9UrUvEaLapxVqzXBzfic038xnQfzVuXWEcU8Megis3lS rK7BpLr/DuhFNzd8JONl1Oh2kCeh8SzCAVK4jBPyRtu84BgYKuM22qTYS4adu7yQ6URw +d9SJb24MVmNu9WKKF7HneWJYbdeosOWHgr/vk5iW097jeDdJ3WCHTIkMLOTFMDj9T1Q 4H8TE6FmqLepc4VYfQdVJLLikl3MjFGiaUo7gy0N7dvNlkFpl5lYUw/iap5nHKNTeeDf x22EBrfU3Ypn++MhCx2rT88ZODoXFEOGhrgYiFBxuKyvF24A0CLmVvkymcaoDCw01Gge B5WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Zy5mluxT6yrUoI+hSAeHWvE0fMAoRCVNMZk2k+w9SBE=; fh=WdvorNt9W2LCUPiGPsn75/bW5381IkpXRxF82JgZV7c=; b=tvqJlZPnIQvi3eRqwLSsS7DRdpSpQGJ5BgilDqKDByiUPQeLoZHyZ3U3Vv0ln9Tup0 qmOwxQ7w5uqv+HyVZK1ylqpeg6lm41fJL243p6fwa6RIh6LuZkvmbPRcwV1if57gmsLQ dzycU8U8UkgMp0APGrXRttBm+HWJ7fkf9AwPX5z8154DMyBF2MzGU1ehQPjWm0K0+1RV K8xckmgomnrApSEfiyoHIfHywPQcsj/7TnyvvVIpAyznMmrIaOxfnidKl0g04bbCYv6v zoYuVZToNl780fzWrt47Va9WH8WhGmjKkasOmVbH1dUjtOEvHcJDnElpwaMno4QLAIyg Ddpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=BQTV62v0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id h184-20020a636cc1000000b00565dd108fd4si3758113pgc.115.2023.09.15.16.10.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 16:10:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=BQTV62v0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id A1DF2858B03A; Fri, 15 Sep 2023 14:39:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237824AbjIOVj3 (ORCPT + 99 others); Fri, 15 Sep 2023 17:39:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237854AbjIOVjG (ORCPT ); Fri, 15 Sep 2023 17:39:06 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1079B8; Fri, 15 Sep 2023 14:39:01 -0700 (PDT) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38FKfqP7029458; Fri, 15 Sep 2023 21:38:42 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=Zy5mluxT6yrUoI+hSAeHWvE0fMAoRCVNMZk2k+w9SBE=; b=BQTV62v0c0P98vjO0n9W/BRYJJ2AgzwsRMvmINaXtndW2zz3KDHsWBBpb2tOb5eFpVak OofxaEgZmeCeLIAmxpgbFJuqPUlOj0La/KV3Iab3DyC/A4UK33XL/xl3HUF+JIZXPcqf 6chKgfe6nUMLojI9dtGFV0f+UqtKOMgGxSa5RmiIIgGaCYLKUUbpRajh/Deub9zbq6mu 9AaphvwcdMNW1IUtxyYIKiAhk20s9jvo7KLXM80F376EC2vBSLxN8OD5ZJEA2qNnAHfn PkVIpLoVVkfTwpfEspKMKmSQ13zrcRzV1Zyw/qSb7kgNs/dtn04d+dGPdh+25hpqaTvP gw== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t4g2xjaj1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 15 Sep 2023 21:38:42 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38FLcf7a014512 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 15 Sep 2023 21:38:41 GMT Received: from khsieh-linux1.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.36; Fri, 15 Sep 2023 14:38:40 -0700 From: Kuogee Hsieh To: , , , , , , , , , , CC: Kuogee Hsieh , , , , , , , Subject: [PATCH v3 3/7] drm/msm/dp: use drm_bridge_hpd_notify() to report HPD status changes Date: Fri, 15 Sep 2023 14:38:17 -0700 Message-ID: <1694813901-26952-4-git-send-email-quic_khsieh@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1694813901-26952-1-git-send-email-quic_khsieh@quicinc.com> References: <1694813901-26952-1-git-send-email-quic_khsieh@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: VaSfYQWbPA2u2XRybkyE310bkCr842Do X-Proofpoint-ORIG-GUID: VaSfYQWbPA2u2XRybkyE310bkCr842Do X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-15_18,2023-09-15_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 clxscore=1015 phishscore=0 impostorscore=0 adultscore=0 mlxlogscore=999 bulkscore=0 mlxscore=0 lowpriorityscore=0 priorityscore=1501 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309150194 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 15 Sep 2023 14:39:55 -0700 (PDT) Currently DP driver use drm_helper_hpd_irq_event(), bypassing drm bridge framework, to report HPD status changes to user space frame work. Replace it with drm_bridge_hpd_notify() since DP driver is part of drm bridge. Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_display.c | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/drivers/gpu/drm/msm/dp/dp_display.c b/drivers/gpu/drm/msm/dp/dp_display.c index 18d16c7..59f9d85 100644 --- a/drivers/gpu/drm/msm/dp/dp_display.c +++ b/drivers/gpu/drm/msm/dp/dp_display.c @@ -356,26 +356,10 @@ static bool dp_display_is_sink_count_zero(struct dp_display_private *dp) (dp->link->sink_count == 0); } -static void dp_display_send_hpd_event(struct msm_dp *dp_display) -{ - struct dp_display_private *dp; - struct drm_connector *connector; - - dp = container_of(dp_display, struct dp_display_private, dp_display); - - connector = dp->dp_display.connector; - drm_helper_hpd_irq_event(connector->dev); -} - static int dp_display_send_hpd_notification(struct dp_display_private *dp, bool hpd) { - if ((hpd && dp->dp_display.link_ready) || - (!hpd && !dp->dp_display.link_ready)) { - drm_dbg_dp(dp->drm_dev, "HPD already %s\n", - (hpd ? "on" : "off")); - return 0; - } + struct drm_bridge *bridge = dp->dp_display.bridge; /* reset video pattern flag on disconnect */ if (!hpd) @@ -385,7 +369,7 @@ static int dp_display_send_hpd_notification(struct dp_display_private *dp, drm_dbg_dp(dp->drm_dev, "type=%d hpd=%d\n", dp->dp_display.connector_type, hpd); - dp_display_send_hpd_event(&dp->dp_display); + drm_bridge_hpd_notify(bridge, dp->dp_display.link_ready); return 0; } -- 2.7.4