Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4103568pxb; Mon, 4 Oct 2021 17:37:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyam9MFSo/xMT4JPI+kVERvFkxjRm2jeUQQBuAGqiNNnwIVP/Ui3aCCaCDkcvZwTTA4a7hB X-Received: by 2002:a17:902:9a04:b0:13a:1b2d:8a5c with SMTP id v4-20020a1709029a0400b0013a1b2d8a5cmr2378561plp.47.1633394251181; Mon, 04 Oct 2021 17:37:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633394251; cv=none; d=google.com; s=arc-20160816; b=B2Y6ONoykHpDoRPUuSbcci1E2M50WvInKRn7IKCEHg9HZD8p5IKEIB0d+DpXfWkH6x xIlf6EmVb3/3cXqBVzppkEUY+89Sau9h6yc2R9YVxmINwcxJtlEGYPIQxmADnBENjqAI GUZPbWIWNpB5UGeF/cfQUC1oHLFFVobFomrVQGefVaouAoFrbntLOD26+RK7nqI/NWTE emaeWdXAKlnUzYI4r15aSNIsew2Z+qy4TWx44G1lWRbgPyNWSEwjORw8PQ96blV917BZ LWeGQpNzjy9yp3KrAf5fQrD58Ai9chsqJxe3FvUG0ldQBcHIiPros712Dwzq9H5y95Ei Ykgg== 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=cIEfmhHMWRR+UfbfarKixY0VfYOQ7qrc2Yu2ffv5Aws=; b=qrD/8XU8fgKVdbPJVo9XyRMOI6iP/RblCfdWNTeYJa6MvlLESixwkIPdC9kqwYdIfM 5THzlUXiaYPCuDLbR3dj3QDUaaAmir0UXJAmfndqE2DVSoSClbuupV58Rsb7QoSsdxJ3 s5LQQmtyXBschXLFLrb3imR81+q6oshvaFYBcpGMJWtpbBKmI6GU9Lg0KnyGSlxR9Nkj Y0kyva8aYMaElAHJixkDSY/SMZyvc7lUmyqEmvyHwMW2uicUnRzboy+v+ygxpAoZMADc r5TjF/ALVtN82M8qk49SUoBPuu2x034f9tP0fyuR2MKx5i75+zCOpawI7qwvArOibWVm lbVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=HVKYKpLY; 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 u9si18706339pgr.397.2021.10.04.17.37.17; Mon, 04 Oct 2021 17: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=HVKYKpLY; 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 S229685AbhJEAiP (ORCPT + 99 others); Mon, 4 Oct 2021 20:38:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229486AbhJEAiO (ORCPT ); Mon, 4 Oct 2021 20:38:14 -0400 Received: from mail-il1-x136.google.com (mail-il1-x136.google.com [IPv6:2607:f8b0:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50144C061745 for ; Mon, 4 Oct 2021 17:36:25 -0700 (PDT) Received: by mail-il1-x136.google.com with SMTP id l13so3426059ilo.3 for ; Mon, 04 Oct 2021 17:36:25 -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=cIEfmhHMWRR+UfbfarKixY0VfYOQ7qrc2Yu2ffv5Aws=; b=HVKYKpLYZsQ9UTyyVy1Vf68F9k+FOnBn7+9LJBhoCIDGj4DtpqnbiLLEuHoP7URbRu yWbC7e48enorTEgwAc9q+sBTCplD/Nk3G42Ixoy6VrM2x9T1VsqUikRntsEX0fSkrzfT mapzJmRojmYesEyumCJd5at2lucUUJNvK2HSE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cIEfmhHMWRR+UfbfarKixY0VfYOQ7qrc2Yu2ffv5Aws=; b=JbDiN3ldPOj+zIt9EWhXBGz1S9Vi+3ACVNOOzNl9JD24Gpk1kubwLPfYTWKTTYSOr2 cvA0HS2mPIGFaCe6FToqqf+xZwG7XAT8iBnWvaPD2WjqwejvjKcXvUiMCf06NVdEPfmc rc0PM5o1u+bKkNQ1TGtrry9MdBWzkFw+VCdphUOXuF5YhexX1hxtc0MdbItTgwuhLHVQ pH6R3sx11K8PH2H4Cgy0gEJTJsOeeze7RWffrSf2+Xqf4Qa4whaTJaAd1i4wjMNMFRJa gvWo3CaXtRbnTeZPiJES6DWN1Jgw2OqotNvmiM0oX1+eodiqDOiFqD9C5LMnAuhUnxJJ p01A== X-Gm-Message-State: AOAM532ey7Ag4pPAbvAfPmESI1q+NVT9OFGL43gf8A1FfpLNKy55pRKx HwI2hDXXZbKxF6mOk/CueiQlJzUL/d0zMg== X-Received: by 2002:a05:6e02:1445:: with SMTP id p5mr764748ilo.11.1633394184662; Mon, 04 Oct 2021 17:36:24 -0700 (PDT) Received: from mail-io1-f46.google.com (mail-io1-f46.google.com. [209.85.166.46]) by smtp.gmail.com with ESMTPSA id y124sm10154201iof.8.2021.10.04.17.36.23 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Oct 2021 17:36:23 -0700 (PDT) Received: by mail-io1-f46.google.com with SMTP id r75so22384023iod.7 for ; Mon, 04 Oct 2021 17:36:23 -0700 (PDT) X-Received: by 2002:a02:c7d2:: with SMTP id s18mr175853jao.68.1633394182579; Mon, 04 Oct 2021 17:36:22 -0700 (PDT) MIME-Version: 1.0 References: <20210726231351.655302-1-bjorn.andersson@linaro.org> In-Reply-To: From: Doug Anderson Date: Mon, 4 Oct 2021 17:36:10 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC] drm/msm/dp: Allow attaching a drm_panel To: Bjorn Andersson 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Fri, Oct 1, 2021 at 2:00 PM Bjorn Andersson wrote: > > On Fri 27 Aug 13:52 PDT 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? > > > > Finally got back to this, changed it to 1 and figured out why I left it > at 2. > > drm_of_find_panel_or_bridge() on a DP controller will find the of_graph > reference to the USB-C controller, scan through the registered panels > and conclude that the of_node of the USB-C controller isn't a registered > panel and return -EPROBE_DEFER. I'm confused, but maybe it would help if I could see something concrete. Is there a specific board this was happening on? Under the DP node in the device tree I expect: ports { port@1 { reg = <1>; edp_out: endpoint { remote-endpoint = <&edp_panel_in>; }; }; }; If you have "port@1" pointing to a USB-C controller but this instance of the DP controller is actually hooked up straight to a panel then you should simply delete the "port@1" that points to the typeC and replace it with one that points to a panel, right? -Doug