Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35644838rwd; Mon, 10 Jul 2023 10:17:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlFgoOka8+7yc5pcIEJ8UqrI9Q9cXsIKyh0yl6Ho27gwafY5XHKqNQVjTNOyAKuG+BxwT6RF X-Received: by 2002:a05:6a20:3d4:b0:131:a3b1:5677 with SMTP id 20-20020a056a2003d400b00131a3b15677mr2894385pzu.20.1689009444500; Mon, 10 Jul 2023 10:17:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689009444; cv=none; d=google.com; s=arc-20160816; b=e22BwG0oIEmxwxsQaiS4v2HUWya6wm5oHzbyU+W2zUvO4IYrloWUrCI+98KBHo+4z5 5ETlTDbk0fEeyzxWg2WpcmC/BnPqlKK7n6aefPoMMMRLlv03fHVBgoxqMXA/ytYP/PZV JJ4VhlOOKhW2je6whGaMB9APKvI8BEtfIu6PtnIHxPu53iPlk+cpgtpxURhNJHJDK4QB X0etUBBHdK26B7KTahm5M8xzA4yzhYVmIIxFhDxo0ZfCSJgFEu1+MsUWq1nQ3yO3GJFI WAyIg8i8Ty9t9jJS8xXpTDKDJxIGiMZQbMinFEvYVc5AQf69muyj7r2wsX3QEfC+e/bd b2mQ== 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=E9e+S4RTkTmosg86zIZupvfEJdyllZyc0Xf2MkrqOZw=; fh=RezYA9zMWFN5lbQxfQZC+iczb/mNIZdARnRiR65tctg=; b=PCWPQe5Coj78waWd/Y1qp5A1HvVhXj0HYaSkMAdg6IBsMB0hw9VlQT2bHO6JVV2rwF ZFjiW1Bc+abLKVWhPGn+KHkcGNIUoSAMr4voPA8YYg77dQaGPISq4YWoWpVX/4qcYxlJ bAlIPrVbFfbPhKgeKTslCQQ5Oido9a3pOW+e7mdAH2fLqf9EVYSuOv8w4i0j//7uPhgZ uv7vZsMcxRJXxbVirxVp0q8vW22SfoLX9cHTVNK6RI9h00WHYAO/G8btG+wKAZkIcgtq ZeY3r9ptjm2B4Npzdky8sK5XL2VUROVu8NrE3K14EKVNKE4np68Vv/qE4xgQPfe+GX2E ltUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Ay5VLjm+; 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 a2-20020a056a001d0200b006762f8fe108si57580pfx.111.2023.07.10.10.17.13; Mon, 10 Jul 2023 10:17:24 -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=Ay5VLjm+; 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 S231328AbjGJQyO (ORCPT + 99 others); Mon, 10 Jul 2023 12:54:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231185AbjGJQyN (ORCPT ); Mon, 10 Jul 2023 12:54:13 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7F5410C0; Mon, 10 Jul 2023 09:53:48 -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 36AGSd40021649; Mon, 10 Jul 2023 16:53:03 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=E9e+S4RTkTmosg86zIZupvfEJdyllZyc0Xf2MkrqOZw=; b=Ay5VLjm+Hgo0O1eWfngPTKmTY4GK/VHcySc8qhlc8/50lbzxjYew/BWL+i4BpyzP6isk wR2seSoW4fmiKfdFdH1TPTFK7WhmkMKux/JsYvidUbfTVI5ohjMiFUr/sLs8/M0ukj7a E7hNV/bE5uvzKnQYkPTpH9ewxj2j+l6t2Of6aRzLXSok1rxfXbdZEwHEX3+8+n2eZTBC NU4COAAJdbxHiQIp2Jqfxb8KPOL5iQQmQMoazrCvWDx7yt0o2O7A0lNKDp1IlZJR84pf b47015ndJ/H7sDZnH1xUPCmYLpChJ5ooEmlTrFpfl/KStmAOxH4SJYDXmxihjvxLgorh tQ== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rrg5mh290-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 10 Jul 2023 16:53:02 +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 36AGr1Z8015118 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 10 Jul 2023 16:53:01 GMT Received: from [10.110.55.196] (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.30; Mon, 10 Jul 2023 09:53:00 -0700 Message-ID: Date: Mon, 10 Jul 2023 09:52:59 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v1 3/5] drm/msm/dp: delete EV_HPD_INIT_SETUP Content-Language: en-US To: Dmitry Baryshkov , , , , , , , , , , CC: , , , , , , References: <1688773943-3887-1-git-send-email-quic_khsieh@quicinc.com> <1688773943-3887-4-git-send-email-quic_khsieh@quicinc.com> From: Kuogee Hsieh In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit 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-GUID: Bki10N1UghQumq-vGKZ8Q-beFnD87KIi X-Proofpoint-ORIG-GUID: Bki10N1UghQumq-vGKZ8Q-beFnD87KIi X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-10_12,2023-07-06_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 phishscore=0 adultscore=0 spamscore=0 priorityscore=1501 mlxlogscore=999 clxscore=1015 mlxscore=0 suspectscore=0 lowpriorityscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307100152 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, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 7/7/2023 5:34 PM, Dmitry Baryshkov wrote: > On 08/07/2023 02:52, Kuogee Hsieh wrote: >> EV_HPD_INIT_SETUP flag is used to trigger the initialization of external >> DP host controller. Since external DP host controller initialization had >> been incorporated into pm_runtime_resume(), this flag become obsolete. >> Lets get rid of it. > > And another question. Between patches #2 and #3 we have both > INIT_SETUP event and the PM doing dp_display_host_init(). Will it work > correctly? yes,  i had added  if (!dp->core_initialized)  into dp_display_host_init(). should I merge this patch into patch #2? > >> >> Signed-off-by: Kuogee Hsieh >> --- >>   drivers/gpu/drm/msm/dp/dp_display.c | 12 ------------ >>   1 file changed, 12 deletions(-) >> >> diff --git a/drivers/gpu/drm/msm/dp/dp_display.c >> b/drivers/gpu/drm/msm/dp/dp_display.c >> index 2c5706a..44580c2 100644 >> --- a/drivers/gpu/drm/msm/dp/dp_display.c >> +++ b/drivers/gpu/drm/msm/dp/dp_display.c >> @@ -55,7 +55,6 @@ enum { >>   enum { >>       EV_NO_EVENT, >>       /* hpd events */ >> -    EV_HPD_INIT_SETUP, >>       EV_HPD_PLUG_INT, >>       EV_IRQ_HPD_INT, >>       EV_HPD_UNPLUG_INT, >> @@ -1119,9 +1118,6 @@ static int hpd_event_thread(void *data) >>           spin_unlock_irqrestore(&dp_priv->event_lock, flag); >>             switch (todo->event_id) { >> -        case EV_HPD_INIT_SETUP: >> -            dp_display_host_init(dp_priv); >> -            break; >>           case EV_HPD_PLUG_INT: >>               dp_hpd_plug_handle(dp_priv, todo->data); >>               break; >> @@ -1483,15 +1479,7 @@ void __exit msm_dp_unregister(void) >>     void msm_dp_irq_postinstall(struct msm_dp *dp_display) >>   { >> -    struct dp_display_private *dp; >> - >> -    if (!dp_display) >> -        return; >> - >> -    dp = container_of(dp_display, struct dp_display_private, >> dp_display); >>   -    if (!dp_display->is_edp) >> -        dp_add_event(dp, EV_HPD_INIT_SETUP, 0, 0); >>   } >>     bool msm_dp_wide_bus_available(const struct msm_dp *dp_display) >