Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp744076pxb; Thu, 26 Aug 2021 13:37:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNHxMjLgHKeQExB/19hgZI0SezexpZakzTsDZ43sxvEHRwpMc5JNCxs763v/VHJH1HFKAT X-Received: by 2002:a92:c08a:: with SMTP id h10mr3979326ile.202.1630010251406; Thu, 26 Aug 2021 13:37:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630010251; cv=none; d=google.com; s=arc-20160816; b=G+YTOjB2pxK9KPt8DKSxcsaIQi57WEAQP++TOyO4u1AI7z3sZoR0CR4Sz7yr8HGWFM G37CpukZJjM38tlM9vXWlA0R6jhcs3hOI4s+Y7h7F5CdDj4N9luuYbr8KpudMx7tYCpt UOcUVSKc5F4dgVNfKixlDmks8NtdrKw/koTCbkx9yY5J3+PCn1sVrA833LYPCahlgl82 /R08+jujESRX4nIoaiC/llQQdNcHAt7q2/Z0LHzVzezCCHIPQdkKoNHtrQ08YrKrkGJ+ dK6MuxMYUK9z9rS26WuzcoIBI9iPtIuhVsD1NZaHM+tkxOTHcdNE9GrTV6MTgIMBgYjC gqHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=of32+HsVJg8BjIpFCQkLFrsfUsAQLmJI9fq1/gQoEQc=; b=S4lqXPqEMEuIFwN78ZOuR+POKBRQ3Z/Hcx0E0c9flNE5kwFpIQgSCpjAZQQy0+fmZp NS0hC7wF/WFT65qfl1v5RAlgjsra7DrG6atX3owy7usc49AnttUnJxnyTChK7hEtj6h9 lQDqJuwnVzSLqdT1u0aNagjKEluw/doWYjEOZGscnr3tlwghl61tAx6wgIX53KO86ik/ InYjhBICvZW7fJ/rgPUHvA7F0i7LwYN/eC/XHi8Yn8dx++ja8uZ7S9so2Q3BK2wT5DqV eGcFTs+zNhan7IO187Gz723wKnpH8lKCnWBD2apxzSl+WZ0PjYZzR8aWDxI6pagMdRb6 FImQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=VZbC9LJd; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f15si3541277ilu.156.2021.08.26.13.37.18; Thu, 26 Aug 2021 13:37:31 -0700 (PDT) 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=@chromium.org header.s=google header.b=VZbC9LJd; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229966AbhHZUhK (ORCPT + 99 others); Thu, 26 Aug 2021 16:37:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243505AbhHZUhG (ORCPT ); Thu, 26 Aug 2021 16:37:06 -0400 Received: from mail-il1-x12d.google.com (mail-il1-x12d.google.com [IPv6:2607:f8b0:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3E55C0613C1 for ; Thu, 26 Aug 2021 13:36:18 -0700 (PDT) Received: by mail-il1-x12d.google.com with SMTP id s16so4600125ilo.9 for ; Thu, 26 Aug 2021 13:36:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=of32+HsVJg8BjIpFCQkLFrsfUsAQLmJI9fq1/gQoEQc=; b=VZbC9LJdjvm7jBIyQ99wpnFBXRhf/RtavRPrmiWlpnBkMX5G2PEaCCDA0eZpnirKCK rYivpqDHjpUeYYuxVPPrkWyKbtMNCAR8T0WpQhagK1uWeMtJX+uXPlYF2ZPbRa0A29zC YImvafN9RqYP7O0dVpcGpMgKLCwbxPpZnMZ8c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=of32+HsVJg8BjIpFCQkLFrsfUsAQLmJI9fq1/gQoEQc=; b=IHGfIycUjcT2CHFCwulwdxvX5wL3VXV5INT+d8UwyuLWNnJRE+0mZMwDUHvA8KYzu5 +A+9MMy7eY7zhBbnbVTh8N1G8Z/6+6K5tG/eHY3Kix0uVBBV0COx442adN3i9a/4zWK5 /aOAa6sIMnmMEnu0iOOrPoII8n2x0OUk/OIUTVrzcRK3Q7RcU1uZHrW+GTVSHwGRJAac W17/+6R6uavUo6cM8tPSu+89v4JhBBuLAnQF85ZfnZ4jaaAJCaZMGrQyWC+dXIQ8edEE OHnLjS3khOoEq/7waVdSDVc3WuhdtmX+mmJA5bx9tVej0PWbyFsRhztz76TXlEhgZVC7 cguQ== X-Gm-Message-State: AOAM532ZZwJI3Y1SgtOHZfxwIYGlSwji50k6xk8rfPYtxRoYrtOuj++v adfHzQuYX0yrMhR3wqjF542f6FHLGCbcKQ== X-Received: by 2002:a92:6a05:: with SMTP id f5mr3994268ilc.140.1630010177914; Thu, 26 Aug 2021 13:36:17 -0700 (PDT) Received: from mail-il1-f177.google.com (mail-il1-f177.google.com. [209.85.166.177]) by smtp.gmail.com with ESMTPSA id b2sm2170495ioe.23.2021.08.26.13.36.16 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 Aug 2021 13:36:17 -0700 (PDT) Received: by mail-il1-f177.google.com with SMTP id v16so4576979ilo.10 for ; Thu, 26 Aug 2021 13:36:16 -0700 (PDT) X-Received: by 2002:a92:d304:: with SMTP id x4mr4140800ila.82.1630010176526; Thu, 26 Aug 2021 13:36:16 -0700 (PDT) MIME-Version: 1.0 References: <20210726231351.655302-1-bjorn.andersson@linaro.org> In-Reply-To: From: Doug Anderson Date: Thu, 26 Aug 2021 13:36:04 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC] drm/msm/dp: Allow attaching a drm_panel To: Stephen Boyd Cc: Bjorn Andersson , Daniel Vetter , David Airlie , Rob Clark , Sean Paul , Kuogee Hsieh , Abhinav Kumar , Chandan Uddaraju , Vara Reddy , linux-arm-msm , dri-devel , freedreno , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Wed, Aug 25, 2021 at 6:31 PM Stephen Boyd wrote: > > Quoting Bjorn Andersson (2021-07-26 16:13:51) > > eDP panels might need some power sequencing and backlight management, > > so make it possible to associate a drm_panel with a DP instance and > > prepare and enable the panel accordingly. > > > > Signed-off-by: Bjorn Andersson > > --- > > > > This solves my immediate problem on my 8cx laptops, of indirectly controlling > > the backlight during DPMS. But my panel is powered when I boot it and as such I > > get the hpd interrupt and I don't actually have to deal with a power on > > sequence - so I'm posting this as an RFC, hoping to get some input on these > > other aspects. > > > > If this is acceptable I'd be happy to write up an accompanying DT binding > > change that marks port 2 of the DP controller's of_graph as a reference to the > > attached panel. > > dianders@ mentioned creating a connector (and maybe a bridge) for the DP > connector (not eDP)[1]. I'm not sure that's directly related, but I > think with the aux bus code the panel isn't managed in the encoder > driver. Instead the encoder sees a bridge and tries to power it up and > then query things over the aux bus? It's all a little too fuzzy to me > right now so I could be spewing nonsense but I think we want to take > this bridge route if possible. > > -Stephen > > [1] https://lore.kernel.org/r/CAD=FV=Xd9fizYdxfXYOkpJ_1fZcHp3-ROJ7k4iPg0g0RQ_+A3Q@mail.gmail.com/ The idea of modeling the connector as a bridge is something that makes sense to me, but it probably makes sense to tackle that separately. We don't need to block on it. The whole DP AUX bus can also be tackled separately after the fact. It really doesn't change things very much--we still have to find/attach the panel. It just makes the panel probe in a slightly different way and as a side effect gives the panel access to the DP AUX bus. -Doug