From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80BF7C4320E for ; Mon, 30 Aug 2021 16:02:16 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4A27360F5C for ; Mon, 30 Aug 2021 16:02:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4A27360F5C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7CE2D89B29; Mon, 30 Aug 2021 16:02:15 +0000 (UTC) Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) by gabe.freedesktop.org (Postfix) with ESMTPS id 20C5689AEE for ; Mon, 30 Aug 2021 16:02:14 +0000 (UTC) Received: by mail-io1-xd29.google.com with SMTP id b10so20580835ioq.9 for ; Mon, 30 Aug 2021 09:02:14 -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=G49FQ0uWZW6i9vFSjQGplZyOwvgazjM4XABr+KXbVDU=; b=FgHn+o867IORlJciLs9Bi5TiNrh3rHwcUaE5v5BWRE+D8Ogj7RMwzmHDca7m5f8xyj 9k6vgOSezNdEwZZ1S0k2a3NC7CqeBjcGdzWdN8NEYaWiFGWtWUCGltPFnCPFQ9udKeno Z4/rimxn50hBdSQnCkBaIIuQD78qeLnmmelk0= 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=G49FQ0uWZW6i9vFSjQGplZyOwvgazjM4XABr+KXbVDU=; b=ghX8DcJW/wrvlIRAw/HEK2Qan5ZC790N4HnzPTcYH3fJK5GVFO0fLy4VG7R/JaCJal mUO9Jnyf0RcJzDAdOCMBSpj7AZRciBhodvxtVSimhewaNrsDKk56PpjTyEh5HRY8Nejn SmJAYCGA2oh/k9UoTw2i0xUtrCXLe+ONs99fWStKn03THVyRG2BOhWkUfSVmym2UM8/Q nw6XNRMjFzZxVJu2hoT3tsV7IS0KCKpe+jObaZB7nicnTlwYhK0XegfCSuVeh4FnyMV7 cFVgyEiS8f7LUjn+BGNri884/xTKtUZC2bOUInqSX9AsPOCt1x5RM4nju/ptetzpYHx9 +jfg== X-Gm-Message-State: AOAM531iMnyXlhTDlO+0BvT68lMaZJdYUxnxlbHSGhSYLSz0ItpK120G UZ7LNKgmsEYQChF2x7EDrNtXiYkQSTvnvA== X-Google-Smtp-Source: ABdhPJydq1m57InBplhAN/L1SxLacaQGk5GzsBRFNvuJUs0/QMf2SnE++iZnbw1qUZoZmEpygwsSSA== X-Received: by 2002:a5e:d80a:: with SMTP id l10mr4419571iok.36.1630339333263; Mon, 30 Aug 2021 09:02:13 -0700 (PDT) Received: from mail-io1-f51.google.com (mail-io1-f51.google.com. [209.85.166.51]) by smtp.gmail.com with ESMTPSA id e22sm5262089iob.52.2021.08.30.09.02.11 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Aug 2021 09:02:12 -0700 (PDT) Received: by mail-io1-f51.google.com with SMTP id e186so20559290iof.12 for ; Mon, 30 Aug 2021 09:02:11 -0700 (PDT) X-Received: by 2002:a02:c7d2:: with SMTP id s18mr17206234jao.22.1630339331487; Mon, 30 Aug 2021 09:02:11 -0700 (PDT) MIME-Version: 1.0 References: <20210726231351.655302-1-bjorn.andersson@linaro.org> In-Reply-To: From: Doug Anderson Date: Mon, 30 Aug 2021 09:01:58 -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" X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi, On Sat, Aug 28, 2021 at 7:40 AM Bjorn Andersson wrote: > > 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? Right, my understanding is that "port 1" is the output port irregardless of whether you're outputting to a panel or a DP connector. I think the only case it would make sense to add a new port is if it was possible for the output to be connected to both a panel and a DP port simultaneously. ...but that doesn't make sense. -Doug