Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2209406pxb; Sat, 28 Aug 2021 07:45:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypLGRolJlpBp887fAZWWACRM85ieVudnweHW9zWC862PJLdtX22dRHrZDAhear5ORNuuC5 X-Received: by 2002:a92:c9c2:: with SMTP id k2mr10374397ilq.6.1630161908549; Sat, 28 Aug 2021 07:45:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630161908; cv=none; d=google.com; s=arc-20160816; b=XoXnUBH+6sLnEKtnHCWez4wO6wMPtw1Bzu0hlJVHCLCVqX4ECRC0lkNlxr+8yNrwVr 0C5HM7ptfecjrBLhqu65usnwI1ClneQw70dP616KRIv9tPq4Z4o5FOnlpemi9b8541fn 1MbcH53feGGLwA+fXTUyGt41Kcamw25p7hyknXQPfv0U7J35IX5s1t+ItQXeUHUAAG0s rrwNhkXgk7d9NqS6Ri/gkhZUNOHVa3tscqgu4h/mqUbltSBCKmmr+/fnFlLcmGKLPaxR PXbLOB7K3AGTra0LJU7TrdtbpWxsX9adPb3uOZLWkKSlkNlIkreamnQVGX/LR0R3jy4V 4MQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=5YPoL8GlpbFtSNjK3CYZgxgeOeetG15fvTthzuY2WMc=; b=gcBwaSOBzkEg/sSRyzRl4nGje7hu520Gbs744y5UyAOee4uzdh1hbPVFU08fyz/ypP mJvTaPirG7MjwDedfjV/NpZzfwWvJee64H5NYsdrDDW8JlJcyVFrWUm0S38ZqK8tL24S diIZDE9z7IcaZkVYSkBOvbj1Anah2gxBTrhJGtgqPPyIlwMK43Vzs/SWTCEz8ohkPEpq wOdG6++UC2dtxQQanIVy9fr/xcHWz19fYfGjbS4XRac+FiGp87CoZlgTaSfA6M0TRxBQ 7RmCzxk5KmuhZSSltyEOGPDQrA7SsQ9n+Q2gEpHiHMZKVB713Z43nhf1Q0gGD8nnxrFN dDcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iVWEM1be; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x6si3489109ilv.93.2021.08.28.07.44.57; Sat, 28 Aug 2021 07:45:08 -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=@linaro.org header.s=google header.b=iVWEM1be; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229700AbhH1Ol0 (ORCPT + 99 others); Sat, 28 Aug 2021 10:41:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229598AbhH1OlZ (ORCPT ); Sat, 28 Aug 2021 10:41:25 -0400 Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68275C0613D9 for ; Sat, 28 Aug 2021 07:40:35 -0700 (PDT) Received: by mail-ot1-x329.google.com with SMTP id o16-20020a9d2210000000b0051b1e56c98fso11861892ota.8 for ; Sat, 28 Aug 2021 07:40:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=5YPoL8GlpbFtSNjK3CYZgxgeOeetG15fvTthzuY2WMc=; b=iVWEM1beHr4kq2zNmhblRgSN3FGepoKEmyL4yElV1Ctij9bUPoWDx72laKDCLFu0/r KdBqgnRmDcf6v/Ut6bhfq+iUmWHKKH/+6ENEJYcmuvHqBzgxRTXrxY7CXN+mhqb0BYfU JIsRVh1vXfGNfz3aii0PcBHTgbhBV8sp4cojFlWasi6VWv6L0bLGeflI5Db1Z0SJHC2w g+Jz5QDAUPspAB8f6HGy67XQQb3hPKc3WbhQoDFCD7QsmDpRRa2b84fuckfol4OIBBVr HzLx4qcl5Sr3DWMjTyBFeWuwHW2HK9iZKjobSIaKa/NcLp9dT05T/EzdUSwKh+OoSMqb J4TQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=5YPoL8GlpbFtSNjK3CYZgxgeOeetG15fvTthzuY2WMc=; b=ImiEthw+d7WwK84FtSTzw2Prk9ZP0oriLTbS4U6LFZkeRvCrUnQBGVS03WIoaHt3Wn o+OV791kxrSethg7mbPvhfBzu/RilI2BaFRHdRPh3/EMeamrraps7rZrVRERcQFQsII5 AVnVyGIYzpM17EbPEiFhD+T3Orkq74tMkZbX1mKo0W8PG/Sb5f5RWLDqVHhTKuOtNyq7 zUNoqAxVvpXrx9XetW0TmQFDaV2SZPFWmBgmEffzsxE6srb0CLgsTh5450yJfnHEe+Jp ZvB0yDvy891V3ifn0zvs+5RPjFYTi47uLNS4NyB/dxdd1NCoohC7st5m0FO7GecxAghM /L7g== X-Gm-Message-State: AOAM530Y1y8+kcFJG3A3CNJkj2wWVeeoMCBl2ox6q/ARDFrSvs+W5pky fBE4JEo4DTjs2BgR85aMdYHFJQ== X-Received: by 2002:a05:6830:402c:: with SMTP id i12mr12679667ots.287.1630161634668; Sat, 28 Aug 2021 07:40:34 -0700 (PDT) Received: from yoga (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id k1sm1942767otr.43.2021.08.28.07.40.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Aug 2021 07:40:34 -0700 (PDT) Date: Sat, 28 Aug 2021 09:40:31 -0500 From: Bjorn Andersson To: Doug Anderson Cc: Rob Clark , Sean Paul , David Airlie , Daniel Vetter , linux-arm-msm , LKML , Abhinav Kumar , Stephen Boyd , Kuogee Hsieh , dri-devel , Vara Reddy , freedreno , Chandan Uddaraju Subject: Re: [RFC] drm/msm/dp: Allow attaching a drm_panel Message-ID: References: <20210726231351.655302-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 27 Aug 15:52 CDT 2021, Doug Anderson wrote: > Hi, > > On Mon, Jul 26, 2021 at 4:15 PM Bjorn Andersson > wrote: > > > > +static int dp_parser_find_panel(struct dp_parser *parser) > > +{ > > + struct device_node *np = parser->pdev->dev.of_node; > > + int rc; > > + > > + rc = drm_of_find_panel_or_bridge(np, 2, 0, &parser->drm_panel, NULL); > > Why port 2? Shouldn't this just be port 1 always? The yaml says that > port 1 is "Output endpoint of the controller". We should just use port > 1 here, right? > I thought port 1 was the link to the Type-C controller, didn't give it a second thought and took the next available. But per the binding it makes sense that the panel is the "Output endpoint of the controller" and I guess one will have either a Type-C controller or a panel - even after the DP rework? Regards, Bjorn