Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1613029ybi; Sun, 30 Jun 2019 20:15:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4kgpFbNa6eJ+fLKcQPznWiUIE3A5SVkqd8X3BJeSXEz2enxSZLlONTBzA8ucIBIni7+Re X-Received: by 2002:a17:902:6a2:: with SMTP id 31mr19361889plh.296.1561950951891; Sun, 30 Jun 2019 20:15:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561950951; cv=none; d=google.com; s=arc-20160816; b=DFqhAnhtpEpUeNLZk8YY8owtEeTbqkTdiN4nDIGhzX0mD5Ry4wHLaJr/5g2+27+jkp pMr2csLj0BSY89kcVUfDRep7DUZR77JrwAn3JF7lkrcfRFdJH2mF5/piQV1ZYB4T702C mnZ7wshkwVQqz50ycF0eueFRWGNr4tF1opxTeuZomlbsVW+55uyMeyTSuHeT+ur0jFeM N77NAlTXlBms98EDgyG1UkhTNKT+wbApL5oD8oH1YQjqrSJ7RyZ+VV6WYD84ElsaxqsG r5IlPbs1sHBOhy2HpJULBaCQpLzKNw9dF6YjwyQK4xHGv9O+WdTK5YYfdEE5uLigj2Rn LIzg== 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=TszsXJo/1uCNO7RW5F+WsmGB+qmXwu6OTIcUzdyHVAY=; b=WOAcCSSV2bJkA10M07Eyo1qJlhE2nvNb/iqtqY1LyxrafQGlzsPFGPoZqGqrC3+43i gP/b3E50e3YXmMXYEE5niNk3szskil1qaNEerWdWN14NBBHXM4dwpxgHOBvojs97qvAS 07cnmxpbmCONc0Jgo+Z179JM2norom2BNYhUITB2l1MOuVCbj6INV/SWhke7WtKx1wz/ FEkVNJ2LrqLbOPffFhKOS/OUUVfD+LPWtKomztCj/8OIOB72yzvaGFjZAdj8CYfNX4Xs EV+dzC3un+7WNkBdNO7Wb9sFxlSZMQ5GoLJakLe+Gv+/W2tFDgiR++1Pi9xPY76j1tzl 05NA== 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 w9si8404863pgr.250.2019.06.30.20.15.35; Sun, 30 Jun 2019 20:15:51 -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 S1727329AbfGAB73 (ORCPT + 99 others); Sun, 30 Jun 2019 21:59:29 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:32072 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726983AbfGAB73 (ORCPT ); Sun, 30 Jun 2019 21:59:29 -0400 X-UUID: 32b51eec05e64d2289cc2cc4de833084-20190701 X-UUID: 32b51eec05e64d2289cc2cc4de833084-20190701 Received: from mtkmrs01.mediatek.inc [(172.21.131.159)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1811838344; Mon, 01 Jul 2019 09:59:21 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkexhb01.mediatek.inc (172.21.101.102) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 1 Jul 2019 09:59:20 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkcas07.mediatek.inc (172.21.101.84) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 1 Jul 2019 09:59:19 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 1 Jul 2019 09:59:19 +0800 Message-ID: <1561946359.23228.0.camel@mtksdaap41> Subject: Re: [PATCH v4 4/4] drm/mtk: add panel orientation property From: CK Hu To: Derek Basehore CC: , Philipp Zabel , Maxime Ripard , Sam Ravnborg , , Joonas Lahtinen , Maarten Lankhorst , Jani Nikula , David Airlie , "Thierry Reding" , Matthias Brugger , , Daniel Vetter , Rodrigo Vivi , , Sean Paul , Date: Mon, 1 Jul 2019 09:59:19 +0800 In-Reply-To: <20190622034105.188454-5-dbasehore@chromium.org> References: <20190622034105.188454-1-dbasehore@chromium.org> <20190622034105.188454-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 Fri, 2019-06-21 at 20:41 -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 4a0b9150a7bb..08ffdc7526dd 100644 > --- a/drivers/gpu/drm/mediatek/mtk_dsi.c > +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c > @@ -782,10 +782,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;