From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 03EEBC47096 for ; Thu, 3 Jun 2021 20:24:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DF8D46108D for ; Thu, 3 Jun 2021 20:24:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229707AbhFCUZt (ORCPT ); Thu, 3 Jun 2021 16:25:49 -0400 Received: from mail-oo1-f51.google.com ([209.85.161.51]:44875 "EHLO mail-oo1-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229576AbhFCUZs (ORCPT ); Thu, 3 Jun 2021 16:25:48 -0400 Received: by mail-oo1-f51.google.com with SMTP id o5-20020a4a2c050000b0290245d6c7b555so1695985ooo.11 for ; Thu, 03 Jun 2021 13:23:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:user-agent:date:message-id :subject:to:cc; bh=cMLM4cflpxEbsfu/ce/EkzAINJ+710gVrefVr0HI+qY=; b=L0SkuWBv+83YGqTd6ik3MB9wor9LeocWUua6DOQob5uCIeKncJusY/+64rblVTnKgZ tTRCUuoUgWaAQg7TsuVlaO5NxTdPq6WOncJXARM0/uRiV35POzwPmEbSKaXyAuzCtWDc ONq7D/gq3ivz6aXRSTHk3Dn7oHzaEooVJ3WyM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from :user-agent:date:message-id:subject:to:cc; bh=cMLM4cflpxEbsfu/ce/EkzAINJ+710gVrefVr0HI+qY=; b=BHUF+Gv3iMQPiPb40WA631xE2Kn8xow96jDEn5Q/V0R4/BPPJvc00wBauXkGNIPdW+ Dy/8AW84raYMCUdowzL2so2KerdJNsZcL1iPLhsrQTVK9g/0+UiLVuNrYULslgtgYKvR L0Y5K0DKo8SyKllE2Kf/wOLjEU0tLrIAkBzIW3JpXFM+c2knBIzFADXOT+5QDSWJ+wIX lXzUk3WnktbyNtyEZQ4xUmuhrznueGvAjBB8iGnGkHvQfWf3OV6O5BMq8xwtg+oQXNTY 2IkyjRFdcfIpQscFZ/80dC0xxcZz7b7ec4nb14XwFPEnqdh9RL0OLzquWto7sdfrvTx+ KGRg== X-Gm-Message-State: AOAM531MWRu2l+hLB88DoyVvpGLly1Rjl4wSS8p9v0v9YgFvLwTAIrt9 ZT+EynmYW/SS8ebH5Ni6/6UoY4VAMJL8MUHapniXT4R+WmM= X-Google-Smtp-Source: ABdhPJwJRX5XWGLQvcvpQ5gyjX7E4oP0MOspFx028qV6yYflYoKemYC4DYS5FSHp16wnBONkFO2dTwSCsw/L7BS4wVU= X-Received: by 2002:a4a:85ca:: with SMTP id u10mr857805ooh.80.1622751767413; Thu, 03 Jun 2021 13:22:47 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 3 Jun 2021 20:22:47 +0000 MIME-Version: 1.0 In-Reply-To: <1622734846-14179-1-git-send-email-khsieh@codeaurora.org> References: <1622734846-14179-1-git-send-email-khsieh@codeaurora.org> From: Stephen Boyd User-Agent: alot/0.9.1 Date: Thu, 3 Jun 2021 20:22:47 +0000 Message-ID: Subject: Re: [PATCH v5] drm/msm/dp: power off DP phy at suspend To: Kuogee Hsieh , agross@kernel.org, bjorn.andersson@linaro.org, robdclark@gmail.com, sean@poorly.run, vkoul@kernel.org Cc: abhinavk@codeaurora.org, aravindh@codeaurora.org, freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Can you Cc dri-devel? Quoting Kuogee Hsieh (2021-06-03 08:40:46) > Normal DP suspend operation contains two steps, display off followed > by dp suspend, to complete system wide suspending cycle if display is > up at that time. In this case, DP phy will be powered off at display > off. However there is an exception case that depending on the timing > of dongle plug in during system wide suspending, sometimes display off > procedure may be skipped and dp suspend was called directly. In this > case, dp phy is stay at powered on (phy->power_count = 1) so that at > next resume dp driver crash at main link clock enable due to phy is > not physically powered on. This patch will call dp_ctrl_off_link_stream() > to tear down main link and power off phy at dp_pm_suspend() if main link > had been brought up. >