Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3372764pxb; Mon, 17 Jan 2022 18:55:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJwQpXGtQW6zxARB2lhrWSu8cfBKMdYyE71WDyyf+XG6mw2oYVWyK2tbzdk3CAGXX0cLifEi X-Received: by 2002:a05:6a00:2391:b0:4a2:cb64:2e01 with SMTP id f17-20020a056a00239100b004a2cb642e01mr23982627pfc.45.1642474556694; Mon, 17 Jan 2022 18:55:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642474556; cv=none; d=google.com; s=arc-20160816; b=cdVCL5HzQ7cqmoET1QKwtN1TyIRYwZ0y/wjMtZIggglkL4ufnBLK2PL7zRKp+0hhAB tgmSD4HhxsiHZJrSe6CzvDlwzic+uJAUTjLkblPW+yX2CCjfnsjfUiVU99kbMl+wDBoM ZmVWzELel43n/6LQwQpSFUteyL95cCscxb3BJnISRZIjAXr94JZd4G0/6a4j5xcfAK7m 5NGxktzeejk/+emOMT0aL1DWxZ0BN4To1Ev7TiUmfg3Gen7/fjzGmOsXcZ22VUUCVwla k4DPXZqU2eliFjHBhlq3stWwXF0xLlmhbaJl/TYlBJT4buQP8OeAKlkspgpKn9In337m f4SQ== 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=TpYuMc5hSqWA0JqIB9lyXBpDOxH/KsfeWVy/QmBxyLk=; b=w73pJk1PtQK3kvyfMcLFw4Cm6F8+b7F3jgvpZNx7cCURrv/mJrwpXwjsNmTXyWDi7U Lv+sCAA6xG0QuA2p+3gD4AxSI1+bCUDEsq66EWLyGfHHczgK2UUf5tfo9ux4QgJF8pIW rNSFtbcDSwvJ8IgVQoY/ahr8zESjvorMbsVvyiU7jrBxlPaZy/2ODUgU+DKMeIZksFRY 8yEm8Go9hFFyZ7yiwmPvE6wE7LCYRy0suWVpnMAXyUfPoYtfUYvfcULlAHMWWob1xQPL sDnv+AjDBL2E8sXt7nqwElUHE46AmGPgAwtb/FgUDTgq46r5ovvwvenNCvGkvcs8ay4g /IHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=u26QxwcC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n4si1090744pjk.138.2022.01.17.18.55.44; Mon, 17 Jan 2022 18:55:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=u26QxwcC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S238232AbiAQSQ2 (ORCPT + 99 others); Mon, 17 Jan 2022 13:16:28 -0500 Received: from alexa-out-sd-01.qualcomm.com ([199.106.114.38]:27464 "EHLO alexa-out-sd-01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229657AbiAQSQ1 (ORCPT ); Mon, 17 Jan 2022 13:16:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1642443387; x=1673979387; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=TpYuMc5hSqWA0JqIB9lyXBpDOxH/KsfeWVy/QmBxyLk=; b=u26QxwcC3NN3ofaBsyQmeL7lsso718chgmlC4RZKGMlS9I28vBpuOo+p Rbfn6NRDtAZ+MWYTbeoO1RlrqMnE1mFJL1je01jgaCZLtgQZNqX+z3DDp fUalkHiuOZlnTC6Q8iaQ4Dy9HpDVCZI7AkLBfUaugyUVR9gV3hbR6R9Bu o=; Received: from unknown (HELO ironmsg04-sd.qualcomm.com) ([10.53.140.144]) by alexa-out-sd-01.qualcomm.com with ESMTP; 17 Jan 2022 10:16:27 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg04-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jan 2022 10:16:26 -0800 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Mon, 17 Jan 2022 10:16:25 -0800 Received: from [10.110.8.118] (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.922.19; Mon, 17 Jan 2022 10:16:24 -0800 Message-ID: <337655e4-db0c-e748-43bc-fd166c9f2577@quicinc.com> Date: Mon, 17 Jan 2022 10:16:24 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 Subject: Re: [PATCH v17 1/4] drm/msm/dp: do not initialize phy until plugin interrupt received Content-Language: en-US To: Stephen Boyd , , , , , , , , , CC: , , , , , References: <1642208315-9136-1-git-send-email-quic_khsieh@quicinc.com> <1642208315-9136-2-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: 7bit 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) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/14/2022 5:13 PM, Stephen Boyd wrote: > Quoting Kuogee Hsieh (2022-01-14 16:58:32) >> @@ -1363,14 +1368,14 @@ static int dp_pm_suspend(struct device *dev) >> if (dp_power_clk_status(dp->power, DP_CTRL_PM)) >> dp_ctrl_off_link_stream(dp->ctrl); >> >> + dp_display_host_phy_exit(dp); >> + >> + /* host_init will be called at pm_resume */ >> dp_display_host_deinit(dp); >> } > I thought we determined that core_initialized was always true here, so > the if condition is redundant. Furthermore, removing that check allows > us to entirely remove the core_initialized variable from the code. my mistake. Will remove the condition check. However, I would like to keep code_initialized for debugging purpose. Otherwise, we will shot in the dark if customer report bug.