Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10143168ybi; Thu, 11 Jul 2019 00:18:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqwYgOhgI3pGovSfhW2wuo6z+hHBejui6Q9KqX3Ru9wc7UAbf/UGjcmvK8pRnyK0Tj75goh9 X-Received: by 2002:a65:47c1:: with SMTP id f1mr2769187pgs.169.1562829479818; Thu, 11 Jul 2019 00:17:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562829479; cv=none; d=google.com; s=arc-20160816; b=S4G5A/U/dbvIql0r1gzNiakMFtvHJ/SbH9TrKvBIsNb0kwDMwE0O0YDG6ug7Y+PBDL SwW+6B0siGi6mG5VW7Tarnp5ene9EVWGpjg1R/MnKu9hc/jcdmHDVD3ZchzOyGc5gUPV fDl3CNAMxgFiejBafFoDVN1K/5DbsAWV8nkdFCJwSBdcIgpCnciuQXnI7LVTAevWLdcG oVnRo4hYOJSfK6K9lld8NFi6ZVdPyv2bQ4iGz/J5mUrF1rMBPFuP9pHeGjb5O1YY0QTQ dT0WL/gqip4+vAJC2pvFon8r6O+kFK97O57I3SZT81qL4c5taX/+np0UBp3UR1dR1084 4lmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=8z7O44eT3qGK2dJLRqf2j+0syyqhNzdaTNbgXHm12K4=; b=f0jHQBvO7s7XdUhulfV5o8VYwbR8eqZTl3DRzrzQz2pDYDCz70vnr0UJzeaAzivG3F jRJM7WPLCnSq6AtoSSMi6A4L/7O0MvZnyLDjCqNIZ+o/3Rq4EL1ithzU6sZqxJyVjpYI RAgVc4nbUxqR6IFnXrtQelJU4/oVFLlkwOnymbquVO/OY6+/eG4DX/u5HevseWPhEPZ+ jWbWev7sm5GeWbwz9j9p0ai+2t3K439DGQYJKeXQKMTlvDPLTDf9RBJgkKDESOwam7id DjRvax4WEkW2eNkEHHdWjTfMyG5BIhJEATpOTcL4+CTAydTmOsPhmLAExtSa2LsRb39T nXsQ== ARC-Authentication-Results: i=1; mx.google.com; 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 e13si3954801pfl.279.2019.07.11.00.17.44; Thu, 11 Jul 2019 00:17:59 -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; 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 S1728022AbfGKGmV (ORCPT + 99 others); Thu, 11 Jul 2019 02:42:21 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:24139 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725963AbfGKGmU (ORCPT ); Thu, 11 Jul 2019 02:42:20 -0400 X-UUID: 933fac2b4b2d49e8b026ef4fde19c715-20190711 X-UUID: 933fac2b4b2d49e8b026ef4fde19c715-20190711 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1755053807; Thu, 11 Jul 2019 14:42:12 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkexhb01.mediatek.inc (172.21.101.102) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 11 Jul 2019 14:41:58 +0800 Received: from [172.21.77.4] (172.21.77.4) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 11 Jul 2019 14:41:58 +0800 Message-ID: <1562827318.5818.0.camel@mtksdaap41> Subject: Re: [PATCH v7 4/4] drm/mtk: add panel orientation property From: CK Hu To: Derek Basehore CC: , Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie , Daniel Vetter , Thierry Reding , Sam Ravnborg , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Philipp Zabel , Matthias Brugger , , , , Date: Thu, 11 Jul 2019 14:41:58 +0800 In-Reply-To: <20190710021659.177950-5-dbasehore@chromium.org> References: <20190710021659.177950-1-dbasehore@chromium.org> <20190710021659.177950-5-dbasehore@chromium.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Derek: On Tue, 2019-07-09 at 19:16 -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. > Reviewed-by: CK Hu > Signed-off-by: Derek Basehore > --- > 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 b91c4616644a..2920458ae2fb 100644 > --- a/drivers/gpu/drm/mediatek/mtk_dsi.c > +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c > @@ -790,10 +790,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;