Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp5860679imw; Wed, 20 Jul 2022 14:11:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sF/UEKmpO/oF7UTG7+ic0Hu2zCY3DW4grBChv5CwY3P3nNbMgy8TShhvR8cCZMVDiWN8EV X-Received: by 2002:a17:903:22c8:b0:16c:4068:cd with SMTP id y8-20020a17090322c800b0016c406800cdmr40987992plg.59.1658351513275; Wed, 20 Jul 2022 14:11:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658351513; cv=none; d=google.com; s=arc-20160816; b=ojbJaV+dBBnaKtwgD9TrkU+Hd3P90ByCqNAwE638cg7o8mNb+h0OumOBjfEL+LyT3K 3a8YeDQFQl4Un6I9xukVV3Dek2TfnYAIoN1fmMx/F46VJeSfJf8UQlgX5UmV8l5NIc/L e4y5qQEvsZ5/PhIyUFpese1YyDRG4eOWZkWkEiVTK03ZE90mH+J9FfnArjrQtgCk16dk o9O3IBiaUbcZ+sdk3/Xxm0yTrBJscsej+yzX5U9jBRgNzNm2kxB2gwoTNl9BnXDVmcM/ pnAsxDgCKGhGMvP5cAnQSAFHkZ8x928bsuvEf/2C7keRpcJW6mvmSx3ExY8A5h3Cf7qR llCw== 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=Yual+k0S39VkU2OsIy3nk2KtEx0KbJ5iYiilefMKUWk=; b=Bv8Iq3WS9GvvtpHOpcARDSnvO+ZC2Jf7P+huVD8iR2NFWIc5nrbYInyonizT3Jsi4r xZUsIRUvgaPAoju6cR+FNIXxqiLW07ZWVNZlW1AUI+YWWbHGsdiPIlNJW83buXZoieAH ekLEZ7mEqvSoP5wOkp8LMsyCNUGA0GMkNNOPQ4B0QhfUfaqaliQd0Lvk4Zn7aU3EH3IY ypxDCX/gkaIyLWG+0o9pImWfwEH0hff/56ya/9ZGLOtzvDGYW5Zn5SOmF/9jd/B6whaf j7o92v4Ik9RMCDT+Hh46SOaRxwj4djnrGqs2WEHZJIFZIHsaDBmbjx5mZGSHXYX952gD H30g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YX6HSpa8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x21-20020a631715000000b0041250b7bf13si24210372pgl.212.2022.07.20.14.11.26; Wed, 20 Jul 2022 14:11:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YX6HSpa8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229547AbiGTUqe (ORCPT + 99 others); Wed, 20 Jul 2022 16:46:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbiGTUqc (ORCPT ); Wed, 20 Jul 2022 16:46:32 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBE762A708 for ; Wed, 20 Jul 2022 13:46:31 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id bk26so27760797wrb.11 for ; Wed, 20 Jul 2022 13:46:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Yual+k0S39VkU2OsIy3nk2KtEx0KbJ5iYiilefMKUWk=; b=YX6HSpa8BFZGx9SFYAxxWa4VQZ6IhL2rt2/qeAzyorvrTkpAKTZOzR82GpNU5EWI/G MIH4tZbmTXwIV0Fqygekyy98+JQfEqOpH83XBp5CDlejy5JZzgRIwugncB1fMyurEEkf ghaEhrrD0URXHoWoDEa25+VE9zL5N643hCPhm8ngQPnW4+lWD+ZUGkXRZWMWde9SHshD ICkzMLrXvzCp0Sly+wJMCF84wmFIWcV4UubIfh5z2wLKnjSCZezdUlZUvHMaFwKnQjLK g5Kb6SBTGnU+jBGJQN+7CU9JoYdR4E61x9orT4A957oUKd+SRGDvnOa2xXj8LQeBrfAg L8Kg== 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=Yual+k0S39VkU2OsIy3nk2KtEx0KbJ5iYiilefMKUWk=; b=JmNoRiqAiCwKZaZSWE1w1sIUxv5zrN9EGpsc7iawf4VrgPl9+ENBjN6jx8xd+iW5tE ZkTgLCCfYq0ywqZIMBnLPDoUF12KGig+rwQAZzybaNzfC2WWrZc8uReGwaZ/ZvbHXEr+ uyLq+pI020i0AJXyK7fxs/kouKHqbDdV/1MTB8VuvW7J0jSj7rqC1ysVU5b4JfhZOnu/ aYn9SwCXtxRA4EG6C25kO1QNJAsKCODSqtqDSaX9k1PEL9l8CVRTLYd4ccDQ9SOCujvq F8E7F/18mRav9n+1X9p+/07Hs9OLdjhdW13ZM5x75/NK1uMuJaPmlDRq6HYj8SNr6TEF 76rg== X-Gm-Message-State: AJIora+wyO0OoyEy78f38DKQHvKkJ88C2eX6T7G3J4CPMphxZHPE/lkY q8vwpOQ4Wbg2tOSwgdItyYLMyGt+D6EG/T50daCVc7ev X-Received: by 2002:adf:e187:0:b0:21d:64c6:74f0 with SMTP id az7-20020adfe187000000b0021d64c674f0mr31131852wrb.221.1658349990406; Wed, 20 Jul 2022 13:46:30 -0700 (PDT) MIME-Version: 1.0 References: <20220706191442.1150634-1-swboyd@chromium.org> In-Reply-To: From: Rob Clark Date: Wed, 20 Jul 2022 13:46:52 -0700 Message-ID: Subject: Re: [PATCH] drm/msm/dsi: Set panel orientation when directly connected To: Doug Anderson Cc: Stephen Boyd , Abhinav Kumar , Dmitry Baryshkov , LKML , patches@lists.linux.dev, Sean Paul , dri-devel , freedreno , Hsin-Yi Wang Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 8, 2022 at 8:25 AM Doug Anderson wrote: > > Hi, > > On Wed, Jul 6, 2022 at 12:14 PM Stephen Boyd wrote: > > > > Set the panel orientation in drm when the panel is directly connected, > > i.e. we're not using an external bridge. The external bridge case is > > already handled by the panel bridge code, so we only update the path we > > take when the panel is directly connected/internal. This silences a > > warning splat coming from __drm_mode_object_add() on Wormdingler boards. > > > > Cc: Hsin-Yi Wang > > Cc: Douglas Anderson > > Signed-off-by: Stephen Boyd > > --- > > > > This relies on commit 5e41b01a7808 ("drm/panel: Add an API to allow drm > > to set orientation from panel") which is in drm-misc > > > > drivers/gpu/drm/msm/dsi/dsi_manager.c | 2 ++ > > 1 file changed, 2 insertions(+) > > I don't personally have objections to this, but (to my understanding) > "the future" is that everyone should use panel_bridge. If we made the > move to panel_bridge today then we wouldn't need to do this. In > general I think panel_bridge would end up letting us delete a bunch of > code... > > See commit 4e5763f03e10 ("drm/bridge: ti-sn65dsi86: Wrap panel with > panel-bridge") for when this was done by ti-sn65dsi86. > > Then again, I spent a small amount of time looking into this and it's > definitely non-trivial. Still likely worthwhile, but not worth > blocking a tiny fix like this. It also should be fairly obvious that > we should delete this when we switch to panel_bridge. > > Thus: > > Reviewed-by: Douglas Anderson > > I'll assume that we'll just snooze this commit until drm-misc-next > merges into a tree that msm-next is based on, which will probably be > the next -rc1. If desired and Acked I could land this in > drm-misc-next, but it's probably not worth it? if you want to land this patch via drm-misc, which might be the easier/faster route, then: Acked-by: Rob Clark BR, -R