Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1505889rwd; Thu, 25 May 2023 13:42:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5scB3TNnMYENIu8JKrRr9mRd8JAQrSRioWjqguVshwMsJOOOgXEAOx9VnsT6+pPzVtDcPB X-Received: by 2002:a05:6a20:d38e:b0:10c:ef7d:b0ca with SMTP id iq14-20020a056a20d38e00b0010cef7db0camr8469622pzb.15.1685047374735; Thu, 25 May 2023 13:42:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685047374; cv=none; d=google.com; s=arc-20160816; b=0YR0Yb/J5cL8Xy3U5FClld7/fsVZWWTY/6g4zhVk6TOpWYvVLqXvXlkCVbe/9qQFbB 5U2olzdy4NhbvYKuJvN1PnDJheKnnbfR87i28xstPB9Q2Wyul3CIaqnfM/g4Odszhd0D Y3E13gy+8hm+uf40hJ8vCsDjMths/bAM4f2/GVKrkvgyEb/iJaqxmi66kyWxtRQfuIWw +3JWgWYnPp9HKnvTs6GD5bh5cvBpNNW3Fj/j9h4snmKjqZMIQRFJxRdJfW6HePalNoXZ aboqnl1CLqZjBch4ypFsI0dszbnweJAm3X/Q1WWOF8Z4M4lfcCTmgHkCt/UX4iMWWyeT 2z7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=wl9K5q4yBSj7UvRgOUmsizD3SBlxsAevLOS4aGiyrUo=; b=YxxO3rc5wYTJq/uTUbueyFYKWOugISbqNSRwDdm1xi6pJyudn0020SXxWe4vHLttPd inewbco0edMkhLpkUkeSoAK1uOxOYy0hHB1kLTiWzn05zvcl+1VvQrnipK0AAEp9MUe1 nxHmha6QAeSONCvckGTyPN5jnPJCnezV/Qp51z/m41hvV/B47bu9bwgSKHyfR0kpRZy1 FlG9zVwxnneA9gKl3Tu+cayNWdaSUMgTVhtb2sfv2zsKoZY/Od9QpofEMn5TwjqpqpOU VjUx+NAdSQi7DY244MW+ZPgPP6kFhmwIuM9YIokvMJ9Hu6+2tl7eBvlpT0Nhk37l5tY9 c5Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Gpf0bZSX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v11-20020a17090ad58b00b0024e47fae466si2206985pju.180.2023.05.25.13.42.40; Thu, 25 May 2023 13:42:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Gpf0bZSX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233743AbjEYUPg (ORCPT + 99 others); Thu, 25 May 2023 16:15:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241716AbjEYUPW (ORCPT ); Thu, 25 May 2023 16:15:22 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2ED19D8; Thu, 25 May 2023 13:15:20 -0700 (PDT) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34PI0R47030915; Thu, 25 May 2023 20:14:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=wl9K5q4yBSj7UvRgOUmsizD3SBlxsAevLOS4aGiyrUo=; b=Gpf0bZSXiqkLgHifBzzVgTFj8gF8tg3BzJCNrOkt4F7/TAacx7zZ0BblhYpC3lGXVJ// ChlAX5rZLXrtcbx8kPguTH8d+YJg92P2eeqUrI/7TQYkAPVEA3jlUm7ZMOOtlB6q3uJC DXCqPzlMwl0ozDSL8Y7eG9OvNfbsfqGkMk/QmDDYRGoXuVAzcSuhjygN2CqVz6bmcoFr DWgEAXpwFPJw3M8iBFIVkmpcJqJnQoreEkmXznY8+7ZEE73zlnUIyP/29yMP5Acwyot5 Ynl4QWju27NLG02WQQyKY6vHuIfydQq0mKT4ksimSKwobERJFZma3FABusfhAxZMQxzX Qw== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qt1tqssep-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 May 2023 20:14:57 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 34PKEurR026410 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 May 2023 20:14:56 GMT Received: from [10.110.20.135] (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.986.42; Thu, 25 May 2023 13:14:54 -0700 Message-ID: <3acac6c5-16a5-ed10-11b8-03df44eaf065@quicinc.com> Date: Thu, 25 May 2023 13:14:51 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v6] drm/msm/dp: enable HDP plugin/unplugged interrupts at hpd_enable/disable Content-Language: en-US To: Kuogee Hsieh , , , , , , , , , , , CC: , , , , , , References: <1684878756-17830-1-git-send-email-quic_khsieh@quicinc.com> From: Abhinav Kumar In-Reply-To: <1684878756-17830-1-git-send-email-quic_khsieh@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] 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-ORIG-GUID: n9tKrbyvt0snvnE4TEvW-1L0iCocw5P9 X-Proofpoint-GUID: n9tKrbyvt0snvnE4TEvW-1L0iCocw5P9 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-05-25_10,2023-05-25_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 adultscore=0 clxscore=1015 priorityscore=1501 mlxscore=0 spamscore=0 bulkscore=0 malwarescore=0 mlxlogscore=489 lowpriorityscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305250170 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On 5/23/2023 2:52 PM, Kuogee Hsieh wrote: > The internal_hpd flag is set to true by dp_bridge_hpd_enable() and set to > false by dp_bridge_hpd_disable() to handle GPIO pinmuxed into DP controller > case. HDP related interrupts can not be enabled until internal_hpd is set > to true. At current implementation dp_display_config_hpd() will initialize > DP host controller first followed by enabling HDP related interrupts if > internal_hpd was true at that time. Enable HDP related interrupts depends on > internal_hpd status may leave system with DP driver host is in running state > but without HDP related interrupts being enabled. This will prevent external > display from being detected. Eliminated this dependency by moving HDP related > interrupts enable/disable be done at dp_bridge_hpd_enable/disable() directly > regardless of internal_hpd status. > > Changes in V3: > -- dp_catalog_ctrl_hpd_enable() and dp_catalog_ctrl_hpd_disable() > -- rewording ocmmit text > > Changes in V4: > -- replace dp_display_config_hpd() with dp_display_host_start() > -- move enable_irq() at dp_display_host_start(); > > Changes in V5: > -- replace dp_display_host_start() with dp_display_host_init() > > Changes in V6: > -- squash remove enable_irq() and disable_irq() > > Fixes: cd198caddea7 ("drm/msm/dp: Rely on hpd_enable/disable callbacks") > Signed-off-by: Kuogee Hsieh > --- Reviewed-by: Abhinav Kumar