Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp684832lqh; Thu, 28 Mar 2024 13:04:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUA2oWdknM6ow0RB1jBPvHHfzuzbpoUjIT0k7L38f2lJ1qQQURlxE/HcHGM7ETIc0xJDnjHKsV86kA0GAiVYkIo547pmSZN7Jvg1VUnPQ== X-Google-Smtp-Source: AGHT+IGjPrCu8YvrL2g9qv8SRu0ByjN/AbcPnHKw3sjCl+BEH7uTpnq8vIXZ1EhZwYtBeiSxZvA6 X-Received: by 2002:a05:6e02:1e02:b0:368:8ab3:7d9b with SMTP id g2-20020a056e021e0200b003688ab37d9bmr169691ila.15.1711656291267; Thu, 28 Mar 2024 13:04:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711656291; cv=pass; d=google.com; s=arc-20160816; b=teQpiDDE03fx/vv0chAzF3iLxZrq6VdvPzoifugIenRfwG6OnbokjrgwX88EnMoH/1 bUZwNjgQVJlqSrNFlEskS11Lq88xu9VcvRHHdxY2UuZQooz0shnEEy6XDKwHTENNno0b Q8AAMsXEcoRCReKegxDVMmipL15CdIsCCNTHP79NCfUdr+YxEhRP/oK+yNgz6rDVizRf zZTsfQ2Yju+wlIT/8M3su90QU9/nCotCEZgGXddtCvCYT9ZSzS5CSREAVI0+yzYBqy1s CqSAb+7fXraQYc+yhIES9aZAqlQttYsZWQBxHwO1MrOgonec1IDDsPh9EZC4iFaAXMXM iz1Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=IbMG52PyEZiDd9+bBXaAMVtqJGuaTM0lgaacSJ3zYzE=; fh=Cmk5VdyNK7ZP4dSldofJm5eE3IRyqWhCNaen4XhkrIo=; b=niSfIb3FpFeLPvyLXAZP+QVmyQw/J3DMxVtBy6Ql+4yVgLf2UW1PwJrr/gSkDacWGP HPSaqQdMxFZQ1Ae29tnxGxKoOtEy8ZzlVzBr/o7TNfBNs+yMtr6idjBAEV2a5bCkL8rt /gxunZcpbDizZkSog/jJ6Ul5vp/NO45Z48dOS7iLzcNjUTXu0tkgW0mePdNpT2qE2E+k LFbPAT2AIsZUUV+UcQHir71tBZ/z4rBb8xmqOkcIcn8mEoBboN4QUbrlH9cEBh6c+qjB bJGZrjAHNb3qF5JbDujuhhgIoJ5/n6+kLaAkDcCnbP+GAK3LAFouIX8DL1CtclQU0zQS I+Jw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=jgCdO+Cx; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-123542-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123542-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id m2-20020a638c02000000b005dd99dbfe0bsi2212738pgd.892.2024.03.28.13.04.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 13:04:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123542-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=jgCdO+Cx; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-123542-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123542-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A9DBB29334F for ; Thu, 28 Mar 2024 20:04:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 34BCC13A258; Thu, 28 Mar 2024 20:04:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="jgCdO+Cx" 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 88D7C139CEE; Thu, 28 Mar 2024 20:04:34 +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=1711656276; cv=none; b=rVN3G98jZbDJQoKXOeFoAZX5+muqA/Bnj0284zno4AG/+W5F+Oa9zGOsSeiWiUfy3zYsQJIZHu0CbR9p4TEFSQo+CQULjLgSOres6RhoI78sUr4HKGlxBhZfLsX6LkAAmx7+XvGXTy/CcgKt1bnLzUq0X0mw3AEtT/wEjQJzAr0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711656276; c=relaxed/simple; bh=fbdsLJQJAjptnNUhlDIID8pAAf6q/KJADL1aFWUpz/o=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=HOmfEIlO/3QOKJjlvjJPNg09mAn4Ogfg+iZMieKBHdH8nl/cFYK6eh3uCXKxlIuuSG9DRoEMLKvyuOKyAN3bcLGX8YiW+9k7cIRCZZL1v12v3bLoIFI0htBrN1563FRj1xZLiuZHXcRVVnHyMjDYWpLjLrrflL4mCkF2SzdeMfo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=jgCdO+Cx; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42SJTMTU018793; Thu, 28 Mar 2024 20:04:23 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=IbMG52PyEZiDd9+bBXaA MVtqJGuaTM0lgaacSJ3zYzE=; b=jgCdO+CxvD7VcrEDNDkdxguYIE1Pmtz3i8Ls cIjKoudEmf20arorYeEzkrzFGJRYRK1W1RrkBFILZtoH1JmI92IcOQIJszHdJ6Ou ob6B3XYNt+00c41M8cBodQqABMcXExlEo9mVleUpqjiABVCZ7ug+2H99QOBrBAhR SgY4RbDv6ulURXWvHPmHXXO/rvWUlBFZTVkoCVB/HpW46Io0nw2jxpCxT3DMYHpD 1PfHWOClA2eEaJ4Wmzvc0twLWNvhHizGBUwW69DaxmuNU6pNVRc+nYFoQs0F+vMf kVR0VmypwFk1OKFMtbYuWOewqO6RTB/L/AJBxwUic/jCg7MTxQ== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x5csggdc5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 28 Mar 2024 20:04:23 +0000 (GMT) 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 42SK4Med012485 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 28 Mar 2024 20:04:22 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.40; Thu, 28 Mar 2024 13:04:21 -0700 From: Kuogee Hsieh To: , , , , , , , , , , , CC: Kuogee Hsieh , , , , , , , Subject: [PATCH v1] drm/msm/dp: use dp_hpd_plug_handle() and dp_hpd_unplug_handle() directly Date: Thu, 28 Mar 2024 13:04:06 -0700 Message-ID: <1711656246-3483-2-git-send-email-quic_khsieh@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1711656246-3483-1-git-send-email-quic_khsieh@quicinc.com> References: <1711656246-3483-1-git-send-email-quic_khsieh@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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: 8HXXakpgLQ0YPBDYMXdjH4dtDjuf8YT_ X-Proofpoint-ORIG-GUID: 8HXXakpgLQ0YPBDYMXdjH4dtDjuf8YT_ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-28_17,2024-03-28_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 suspectscore=0 mlxscore=0 adultscore=0 clxscore=1015 bulkscore=0 mlxlogscore=958 impostorscore=0 malwarescore=0 spamscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403210001 definitions=main-2403280142 For internal HPD case, hpd_event_thread is created to handle HPD interrupts generated by HPD block of DP controller. It converts HPD interrupts into events and executed them under hpd_event_thread context. For external HPD case, HPD events is delivered by way of dp_bridge_hpd_notify() under thread context. Since they are executed under thread context already, there is no reason to hand over those events to hpd_event_thread. Hence dp_hpd_plug_handle() and dp_hpd_unplug_hanlde() are called directly at dp_bridge_hpd_notify(). Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_display.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/dp/dp_display.c b/drivers/gpu/drm/msm/dp/dp_display.c index 94dd60f..0476ad9 100644 --- a/drivers/gpu/drm/msm/dp/dp_display.c +++ b/drivers/gpu/drm/msm/dp/dp_display.c @@ -1706,7 +1706,8 @@ void dp_bridge_hpd_notify(struct drm_bridge *bridge, status &= ~0x80000000; if (!dp_display->link_ready && status == connector_status_connected) - dp_add_event(dp, EV_HPD_PLUG_INT, 0, 0); + dp_hpd_plug_handle(dp, 0); else if (dp_display->link_ready && status == connector_status_disconnected) - dp_add_event(dp, EV_HPD_UNPLUG_INT, 0, 0); + dp_hpd_unplug_handle(dp, 0); + } -- 2.7.4