Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B233DC433FE for ; Thu, 13 Jan 2022 23:13:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238189AbiAMXNJ (ORCPT ); Thu, 13 Jan 2022 18:13:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235343AbiAMXNJ (ORCPT ); Thu, 13 Jan 2022 18:13:09 -0500 Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1F86C061574 for ; Thu, 13 Jan 2022 15:13:08 -0800 (PST) Received: by mail-oi1-x22e.google.com with SMTP id x193so10040195oix.0 for ; Thu, 13 Jan 2022 15:13:08 -0800 (PST) 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=sMMqNSDsbwa7yFsyX3bGhmbn1MJoJMBHF2qgWzw9Mzs=; b=e9TkMcxTOSS/64wt9ZC2xTerMvvL1hENNYRBuClFXx/siDYX5i1oCQiJADqjzsbrgy wVjkMUSfXf3YjWKS9PkxJuOKDKB2J9fObDPBExgWBjIHo442CJ3EVE6gtGn5FtgvA6iU bkn2frXC6bFNDtrmo8PI5yibl+vD/9QwcQ1zc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from :user-agent:date:message-id:subject:to:cc; bh=sMMqNSDsbwa7yFsyX3bGhmbn1MJoJMBHF2qgWzw9Mzs=; b=wpIcIQ3uyvGB20soCi2DRjml+bD7cJAODEkfBdgZ8q+TaN4X737YV6FG1pyQjXUaIz m5/4WP5ZmtEQ27GxXSAx1a46UFb7amcCWmtd48EtkWDzsDOOa4GgWw5x/HJzcU6RrJDR Pm8XW9CaFzoka945AExNHz9BePuw6B9cJJqprs+cEmUa0xTGsoLE74DgRxSv1s5syEkR 4viCDL/5DxH2a8avfEZBfFdPqJnmaPlN1+R2//hBpgcAlBSZxZt6DIMP6UBIH39oIv0u zM+Pp1l1qHWHmfA+cEPVCwH9gL3c16aon+ZB6/atfJXMuG8dZHDBr1biuGLcF/Fa0drJ behw== X-Gm-Message-State: AOAM532dxJsREmEPSj/2wOqUxPMdpHkwpYkVBcpLQdA+V/Kp2x74pMf5 2gufa85JRQia/uFCI+V45GjrJQyY97tK9En5OYmLIw== X-Google-Smtp-Source: ABdhPJysPzSfwlVyVdWBKUalOT0iR/oa380Ka2xGSIUkYRdu/+jueIFwVtoKPaDzivQWTPr7woGPCTGrXqUbOmHoLlw= X-Received: by 2002:aca:a953:: with SMTP id s80mr10804519oie.164.1642115588114; Thu, 13 Jan 2022 15:13:08 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 13 Jan 2022 15:13:07 -0800 MIME-Version: 1.0 In-Reply-To: References: <1641926606-1012-1-git-send-email-quic_khsieh@quicinc.com> <1641926606-1012-2-git-send-email-quic_khsieh@quicinc.com> <84ee17f9-2597-86b6-1517-2358d443f65b@quicinc.com> <338ae657-e8ed-e620-0aa7-4ad05df18ad1@quicinc.com> <64ad7053-beac-0c28-7d09-ea32a4f7fbad@quicinc.com> From: Stephen Boyd User-Agent: alot/0.9.1 Date: Thu, 13 Jan 2022 15:13:07 -0800 Message-ID: Subject: Re: [PATCH v11 1/4] drm/msm/dp: do not initialize phy until plugin interrupt received To: Kuogee Hsieh , agross@kernel.org, airlied@linux.ie, bjorn.andersson@linaro.org, daniel@ffwll.ch, dmitry.baryshkov@linaro.org, dri-devel@lists.freedesktop.org, robdclark@gmail.com, sean@poorly.run, vkoul@kernel.org Cc: quic_abhinavk@quicinc.com, aravindh@codeaurora.org, quic_sbillaka@quicinc.com, 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-kernel@vger.kernel.org Quoting Kuogee Hsieh (2022-01-13 14:14:27) > > On 1/13/2022 1:52 PM, Stephen Boyd wrote: > > Quoting Kuogee Hsieh (2022-01-13 12:44:16) > >> On 1/13/2022 11:47 AM, Stephen Boyd wrote: > >>> Quoting Kuogee Hsieh (2022-01-13 09:51:42) > >>>> On 1/12/2022 8:13 PM, Stephen Boyd wrote: > >>>>>>>> - if (dp->usbpd->orientation == ORIENTATION_CC2) > >>>>>>>> - flip = true; > >>>>>>>> + dp_power_init(dp->power, false); > >>>>>>>> + dp_ctrl_reset_irq_ctrl(dp->ctrl, true); > >>>>>>>> + > >>>>>>>> + /* > >>>>>>>> + * eDP is the embedded primary display and has its own phy > >>>>>>>> + * initialize phy immediately > >>>>>>> Question still stands why we can't wait for hpd high from the eDP panel. > >>>>>>> Also, I think "has its own phy" means that it's not part of a combo > >>>>>>> USB+DP phy? Can you please clarify? > >> Correct, eDP has its dedicated phy which is not part of combo phy. > > Why does that mean we can't wait for hpd high from the eDP panel? > > Sorry, missed this one. > > Yes, it can wait for hpd high. > > Since it always presented, I just think it is better to show display > sooner not later until hdp high. > > you like it to wait until hpd high? Yes. The less special cases the easier it is to read and modify later. I also worry that someone will decide to connect a DP connector to the eDP pins and then not always drive HPD high. In that case this code would need to change so it seems better to follow one flow instead of two.