Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4532146ybp; Mon, 7 Oct 2019 09:48:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqyFBCTkRoUNX3lN1aJFVF6dAQnr9KFa+4JXggBU/UMHnrdoCyh6rfySMqOEyqUFCDG564+9 X-Received: by 2002:a17:906:4d93:: with SMTP id s19mr24747275eju.281.1570466916644; Mon, 07 Oct 2019 09:48:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570466916; cv=none; d=google.com; s=arc-20160816; b=IXcKi+mODpBTLzdFbzM9xzcNN5fIiDfz9Ia7PbWvzLY9moTmqRPw6hylXmJVVaIcVL XeSiqMy/mG+jR2haVaKyabuoGgM5qQkQbg11YFjT5Y9HTo8WwRSS+F9GOtxi+a8ObqaP YuMx/NExuOgtHFYxKKcb3MBmOvjY9CVw3Sj/qENk/Up9KGlDDt0i6W5zauMZNjhfRePY MZMQn0MUvw0jkaWL0bcLMmflzbNs0dYbFuedCAlKEFxtwBSyE4YscW6uoIaDkaE3/N2M B9U68Tn4Bqxj6lC2u2qUZ0MKj9S+XmyyHpNZR095vH/FMvpsUEMWhnd2m8G5C53wmWA2 Y6nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=bQ7t0YfEyUi6/XxzSzzzJPgkBy/Y1npqi1QHUBdAdjs=; b=k6A8Phi9v7+1ssj9HPXNdTjTSyE+913pTuqBoX0/v5kZHJPiSYd3W2zdj1LzppvfdW 585baDov5OovOxWlJw1K4MjP1tXVzRcdXb2ek9aaVtdHtrj7HHd7jqaXARqy6mVvj2k9 ORJnAOk5D6VEjL/MfxcAYcp2WM98R2FEDdv/R/9ErK4Bftc/zheaJCYcL1CvsG5lHjUO VGZ5zVA6S5EAA0XqESqtX+7lbiiqvNhxgZb7YwnpjYNv68U5ka0Bjlcl2MyHf92gdTx+ V+1EGxgqay2EmE9XXO+SQxi7y4Q0nXUiblN/eA8Jkz3hGTspvCAW3TLYhwyjJdQUR4iI Q1gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@poorly.run header.s=google header.b=W3fLoSUr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 91si10090048edy.188.2019.10.07.09.48.13; Mon, 07 Oct 2019 09:48:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@poorly.run header.s=google header.b=W3fLoSUr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728465AbfJGQsE (ORCPT + 99 others); Mon, 7 Oct 2019 12:48:04 -0400 Received: from mail-yw1-f65.google.com ([209.85.161.65]:34270 "EHLO mail-yw1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727830AbfJGQsE (ORCPT ); Mon, 7 Oct 2019 12:48:04 -0400 Received: by mail-yw1-f65.google.com with SMTP id d192so5371948ywa.1 for ; Mon, 07 Oct 2019 09:48:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poorly.run; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=bQ7t0YfEyUi6/XxzSzzzJPgkBy/Y1npqi1QHUBdAdjs=; b=W3fLoSUrj8yJnZCMtZp+3Z2XubKePSGiIXKCTJtf8NgGqe6YfhNrC9bveRjZw6wpmF v9jzQ5j1VQP3GRAx44r0Jhgc8TJPiEB7XTnjchviKgXZI8nD3yG7I/WgoHu3YEtryVvz fG4rdsgZxIXFthOSjMaybVSlmOow3T3ljx0qxNCFJpkpmiiGPJBCNNOiY057IySo7EGV 2yf1Zh1r/t+Q8vdPk8hNVF6FtTOalBTihx2aE1PTwc4qPBruNr0J8+YNM4KwX9C1BzCc g8jWzB0LOr31wuXEGyYlQ9E7EGPr+FHjDYwtdXdDlFUFtbYFK+7Ic2bLdoPaPMQMlzMz oOCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=bQ7t0YfEyUi6/XxzSzzzJPgkBy/Y1npqi1QHUBdAdjs=; b=KnFgyBNZjezk3lpu/ok9k3yn5qv9HfWeFv6umWZBIvlLse8GcfGN4CrHTktJ8elnbX IACwopcCeeY/YSuFGRWzVu3b5lyLxVCDufAcXW7gEYMKg/sW00lKyBX//iKOi1zeyDQc tyTlQ4UqgvY4FoXSZcrR/cYm5gchKHQ3k0q+a8aV4hLNAE2iep2mAlVEFXjW4xc9ToMA lPkAMJWB4ActhPRIHt8NNbf8bJ8OmaXzqwTen5h5cR0V6siPHhYoE0NVC1cYDNXT8KpA ZERjplEyiYULEo9cYJDzk8aC3B5MW9kQBStJU6QK5nVzbO16xWGkeqdlb1otAKPNsC2e HsZg== X-Gm-Message-State: APjAAAVqwadYIKYIVv1GP5lzOzH1y4G+oKIkAjJnwT1zbZp8nhhgvBP1 Qeb/oBQr06HeCTiEc6voGUKYHA== X-Received: by 2002:a81:7b05:: with SMTP id w5mr20591060ywc.15.1570466883457; Mon, 07 Oct 2019 09:48:03 -0700 (PDT) Received: from localhost ([2620:0:1013:11:89c6:2139:5435:371d]) by smtp.gmail.com with ESMTPSA id y129sm4181437ywy.41.2019.10.07.09.48.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Oct 2019 09:48:02 -0700 (PDT) Date: Mon, 7 Oct 2019 12:48:02 -0400 From: Sean Paul To: Derek Basehore Cc: linux-kernel@vger.kernel.org, Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie , Daniel Vetter , Thierry Reding , Sam Ravnborg , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , CK Hu , Philipp Zabel , Matthias Brugger , dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH v8 4/4] drm/mtk: add panel orientation property Message-ID: <20191007164802.GD126146@art_vandelay> References: <20190925225833.7310-1-dbasehore@chromium.org> <20190925225833.7310-5-dbasehore@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190925225833.7310-5-dbasehore@chromium.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 25, 2019 at 03:58:33PM -0700, Derek Basehore wrote: > This inits the panel orientation property for the mediatek dsi driver > if the panel orientation (connector.display_info.panel_orientation) is > not DRM_MODE_PANEL_ORIENTATION_UNKNOWN. > > Signed-off-by: Derek Basehore > Acked-by: Sam Ravnborg > Reviewed-by: CK Hu Reviewed-by: Sean Paul > --- > drivers/gpu/drm/mediatek/mtk_dsi.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c > index 224afb666881..2936932344eb 100644 > --- a/drivers/gpu/drm/mediatek/mtk_dsi.c > +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c > @@ -792,10 +792,18 @@ static int mtk_dsi_create_connector(struct drm_device *drm, struct mtk_dsi *dsi) > DRM_ERROR("Failed to attach panel to drm\n"); > goto err_connector_cleanup; > } > + > + ret = drm_connector_init_panel_orientation_property(&dsi->conn); > + if (ret) { > + DRM_ERROR("Failed to init panel orientation\n"); > + goto err_panel_detach; > + } > } > > return 0; > > +err_panel_detach: > + drm_panel_detach(dsi->panel); > err_connector_cleanup: > drm_connector_cleanup(&dsi->conn); > return ret; > -- > 2.23.0.351.gc4317032e6-goog > -- Sean Paul, Software Engineer, Google / Chromium OS