Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1587869pxb; Fri, 1 Oct 2021 14:11:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhzi8T4lBbfrQKe0grfJqoTzWcHJFh89YAPfCbEBcSznGmgk8oK1AVC4iPYLQxm0ckmwjZ X-Received: by 2002:a62:31c5:0:b0:447:cd37:61f8 with SMTP id x188-20020a6231c5000000b00447cd3761f8mr12204632pfx.29.1633122675659; Fri, 01 Oct 2021 14:11:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633122675; cv=none; d=google.com; s=arc-20160816; b=gjD49ISeaQyVMT6DEqBFbEAbPvr7d43r/oVWL4PGE6dSTJ2cYaXXj66lqXhrXJMWd+ t3CK/hYlODuwhf5iXRPFbCtBJBKq6n4WoTiuKJjvoFq16NGgCDpQKkOZbTsqYXvo2zOp 6Z/d+fRHdyfzVqn6ROgVVk399WuEX+sGxP8tQ4++5pTObwpXCPRvla+DeTFYDqk6kvqp 0u/W6zEtLXNd4VzXVbTZ8+WYIFem/Yt96XNdO/e9OYJaJgF4lTmffRtuGQqbmEO2ajKQ 9pdRmWmy+XnxJN8UeIw2pqV4sMMl65D665h4M+3CXyiQIrYSMotq47SH44voeOddNB3Z n2mQ== 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=NC9cmhLrHdckMuK/r28TvZNjmeIVCX8ECTisIPvM3VE=; b=yT3soy7IRMk6CGzamvF6EFjqhjgjIUSN5JRpSUHmV6/GhhXm19oM+s8lA5vXTIiraZ ScXoW+RIiD+U8B7CWoArrHr97AxMWgoSHYm1F3b/LPNRqg8If3ldnMQrCKCjj38OP/Ht Sf2yE0rhzrbcfzEnU2+3eKAImnG8pcEXU7Nu/Dk5dWn2L/2AKYi7WdkZE22Eg1S1XuLy 3PnAOcNzNKYhtNSb4qFLQsDIirW8sxEvERU8Q6vt4Vt/8P1RbGEHZvlY3HAdq1fWAslp 1MtcTnoQvYfs7XRWjzpXhhFX8y5X7KmIbcnRsuCFlQL8qQ8UPEYx/tqN/iL24/e5ghEP JnYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XimCMpcH; 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 s9si9375767pgp.211.2021.10.01.14.10.56; Fri, 01 Oct 2021 14:11:15 -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=XimCMpcH; 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 S229735AbhJAVCY (ORCPT + 99 others); Fri, 1 Oct 2021 17:02:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229899AbhJAVCX (ORCPT ); Fri, 1 Oct 2021 17:02:23 -0400 Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED6A4C06177E for ; Fri, 1 Oct 2021 14:00:38 -0700 (PDT) Received: by mail-ot1-x32b.google.com with SMTP id h9-20020a9d2f09000000b005453f95356cso13067732otb.11 for ; Fri, 01 Oct 2021 14:00:38 -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=NC9cmhLrHdckMuK/r28TvZNjmeIVCX8ECTisIPvM3VE=; b=XimCMpcHPEIPcAavsLIBQ7e4UqLEpKZsP5a1nMGqsGf5ozPAwSgkjCn3bwUoBZRJKG 38ks49GU17lkYI2bUN0zLpXw9zF9ykNXYAGdQOR6LoXpO9e6e7Qk22Vt0qU7gX8ejinL 9vTstYflDVB0JcqkSbf+/tuaA1by6r7A2zhQkDqQdZyrw0wphZmwvBATHJcr7X6uHDtO 4e+5tVG7WGVxi3W7EEG8Sv/2kLYkWsUa3qMSPzEieSJ56Ux7OgiTsVd40kvXZvD1GFwA yRKjcpF1mNHBtiF7/rZkhigpYnHR6SvtN76kF3sXuZKVzyg8PBs9ClyTcUmqq/SWXvAt K4PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=NC9cmhLrHdckMuK/r28TvZNjmeIVCX8ECTisIPvM3VE=; b=dfyFPK3HvvdLZTCnyIlZYED6a4/aiK5ne9JYdv8Rj4m0mt4IpM1ZpXnz1FPaKsO7/b gZ2+9GqSzy9PMEMyLPdzog3iWbDOUtpPfIpnj2SGmgScwdDV5CNax5KonjP0UsMXuv5U FEQ+0p4yQnQohKe7GfG5BzVUCEy1E9hiw20t+Se2Qpew3xDwEvj+yVakzkzZ7iF6kMED E9Ns1h2+HglLotJuOr5p+9jmQIz6fFYv3/P5pBeMvtxDDagtXUrX3Qxh8qt1YrKk3s2D LZXq6X29u1fh+zLrQkTxL32426gm55JVBNGMKP/XlVZzDdR8R3/7aHJjFhD3u/hzJkEQ ne6Q== X-Gm-Message-State: AOAM532ss2iuCjyVIAYuT/m7R9DMWpBGeB0BZDwd/dhWVUhJgqAwAoAi fSavoUG587qx4HAI+j8Gxyua6A== X-Received: by 2002:a9d:6396:: with SMTP id w22mr18800otk.26.1633122038272; Fri, 01 Oct 2021 14:00:38 -0700 (PDT) Received: from ripper ([2600:1700:a0:3dc8:205:1bff:fec0:b9b3]) by smtp.gmail.com with ESMTPSA id j24sm539724otq.72.2021.10.01.14.00.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Oct 2021 14:00:37 -0700 (PDT) Date: Fri, 1 Oct 2021 14:02:25 -0700 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 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. So I picked 2, because I'm not able to figure out a way to distinguish between a not yet probed panel and the USB-C controller... Any suggestions? Regards, Bjorn