Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1643160pxb; Fri, 27 Aug 2021 13:54:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+5rgMs2NsGO+J++IFKwru7ErWNIxAT2EESgAY69Ozv3Txa8pTe6hC4WN+qMOab5lkz7YB X-Received: by 2002:aa7:c14b:: with SMTP id r11mr11217293edp.108.1630097656670; Fri, 27 Aug 2021 13:54:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630097656; cv=none; d=google.com; s=arc-20160816; b=zHqq7ZI8Q+GXZPdeT/UdlFik7bwNeIsIQDUf+tLow5a35Q5NEyZ0ZX1KAJBNuHhvxY 6CFYTiL+uf5GCGkDw32oq7c3Gv6sNZ3CdbvH2k+xqz2YQ2+e7krrVsO52xTSI3yXvVAq 3IU2l6LM8mtbREINOytj+0GlAyQdyppru5mtPlUJaiJxkEiZ+EsT9V7HvjiTwVYCw8zx BEtAMWW87QbvVPn6ynDpCeJmg704BvGjqSYdzfwqjQJoI+s7Hdxo4+dBpftO+m8cUfPX nBT4AmQhySRaMZ3G1hxvSilhPBAAK9eoJzEc+Itghf7rpVzZlwvOGaj86EmigV+hoGDP /88A== 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=aXHt+zBvV2P2yRdRsCvTblJhainZty6Jg0vDCbYmK8M=; b=FJU8tTUZ1O3/HrnmdbBuxu3NP/RchwojA5sdiNQajvY/Enoza/m1/bWPPCbmbh0qiy Mvk/179KBEUm0Iof+H/7V7R5iNm9jEJLXkSWo652QHVQHb8cuDvrd2qywrXN67KImjAp QIKtmfVEVPP6svCpsyqHN09GtEm5E6qL4RtE+nHhzYJtrBUjjTVmoz+80iYaMIXpoZkW 7GhVX77YrbdbEvvOaF+dBs7PEdVFlrDyfqpHsTmRj7m/ltmrxYKK9hiR/c8BOOcbcUby VRA3ERS9sgKL4gaOuzjiaBUYwPUHjf3a0m0zqzEYwGKn85XmAY1jSx4xZ/X3BIbY4zjL 3dbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=FV8wBmGY; 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 kl11si7040092ejc.593.2021.08.27.13.53.49; Fri, 27 Aug 2021 13:54:16 -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=FV8wBmGY; 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 S231626AbhH0UxO (ORCPT + 99 others); Fri, 27 Aug 2021 16:53:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231346AbhH0UxO (ORCPT ); Fri, 27 Aug 2021 16:53:14 -0400 Received: from mail-il1-x132.google.com (mail-il1-x132.google.com [IPv6:2607:f8b0:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F999C0613D9 for ; Fri, 27 Aug 2021 13:52:24 -0700 (PDT) Received: by mail-il1-x132.google.com with SMTP id v2so8228987ilg.12 for ; Fri, 27 Aug 2021 13:52:24 -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=aXHt+zBvV2P2yRdRsCvTblJhainZty6Jg0vDCbYmK8M=; b=FV8wBmGYU5sDobyYYnQpOECTKrYkK8EB7/GlKxGqyLstGxzDaWlP7jlTT05tsDEu9N m3ODA5TwhdedwETDFIuIUoqNe6jBe53IH7JlysQzvDipyp3WcCIgWyE2nSumqs3jqm+E Zr7wV9fgaErAPWv/uxHyXK5/YaePil/2i1r98= 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=aXHt+zBvV2P2yRdRsCvTblJhainZty6Jg0vDCbYmK8M=; b=pdaYR0UnVLf4HdXek5SrjQBpqFGdMSgrD0+vNb1ns7YsqG5UzHzqSTHraF9cO3Cybm I/wOsMBpuX/gof+bJWYUA6KxmNB9vv6NpL4WRJtr1Wznh7nGsYi0zo0km+s8BAsdiZhB ctPyOdYJ75vdWwD58q3s/6dyki5Pmep7ykXe0Llyzq6e+JBbIZZ/EJPMNeNoawFsLx6d sgVtkUAr49UcVOI8XYGxsnH35xLLlyQxauPqcvt2fI4Mt1fd6Vz6yv60Q/88XoMx6TH4 X7TvASOdkARP1H4TC1ay8NMx1Eb0wzeBkNv+Zakd40++B8b6ylVvO7NRhORndlUdmopv 5c7A== X-Gm-Message-State: AOAM530JWtDaoFqb1rmSXWj5r+8qOcGg21g9ZsBBerXO4vvU3jmnxTGF QrpxL5dSYVsLRDafrGEwwFmP10N7gDFbNw== X-Received: by 2002:a92:cace:: with SMTP id m14mr8009056ilq.146.1630097544251; Fri, 27 Aug 2021 13:52:24 -0700 (PDT) Received: from mail-il1-f172.google.com (mail-il1-f172.google.com. [209.85.166.172]) by smtp.gmail.com with ESMTPSA id c8sm3966240ilk.64.2021.08.27.13.52.23 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 27 Aug 2021 13:52:23 -0700 (PDT) Received: by mail-il1-f172.google.com with SMTP id l10so8264008ilh.8 for ; Fri, 27 Aug 2021 13:52:23 -0700 (PDT) X-Received: by 2002:a92:a008:: with SMTP id e8mr7587200ili.187.1630097542564; Fri, 27 Aug 2021 13:52:22 -0700 (PDT) MIME-Version: 1.0 References: <20210726231351.655302-1-bjorn.andersson@linaro.org> In-Reply-To: <20210726231351.655302-1-bjorn.andersson@linaro.org> From: Doug Anderson Date: Fri, 27 Aug 2021 13:52: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 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? -Doug