Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3854993ybi; Mon, 10 Jun 2019 18:43:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqytAMKG1/0uw6emqpqEtuOMNwomPpUay7TnxQtXTkies8ZqbqcHDDnG99NRu7Ah3oQN1P19 X-Received: by 2002:a63:5c1a:: with SMTP id q26mr18902694pgb.260.1560217424255; Mon, 10 Jun 2019 18:43:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560217424; cv=none; d=google.com; s=arc-20160816; b=zIgSd6yUZC9Vluupu1qYfm9NA1g1hjcMLyNEUB/qD9EuqrQuQcNZ164FDukpk1a48a jVdNxbE9+4Q0Jjg/sTnGP1Gng1nXMhqwEw8yKf+RzsOwKvVOxsfv2VnsHqqHmWBrPqtD wcrc8NHuELDme7H6yoEWLFNXKDJLtF0rnv/viX3dAbBK7dGHWE5cDkDH9RpkYzQNRyB8 LYi1ZB6bV5sKZf1eFp/QUVsbCRYSir4kbQJ/HTMwIrjtC/z8vmmg9MjJtOFwN2t2nCw2 3T22EaD5K5CzKv5BElMh+kegqFeCyDqaIEQbn6C5eV87qVNZW9P2fX2jQ0aV/iIfFd8N 7EGg== 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=YmJv/YI6R7SpNR2DuHwYG9XCuU1I9Jmw6VOIK97QWzk=; b=zug0g4mnzOCRqRLryHOGO14SF3avSspA8iA3NPXQPH1/xIP9SSSDMBASz1/BIoEv0P Fa6Bohh2dbSkDs0p01gDcqfzewzkBAQUdM0G50ZufVWPTYa1gJqp6ix8jd/SnN5lx1ra uFPEPY+8uHnQJadpWS+oQZl8GcYLlEN2IlV3QV4scnEAxoRjRKhSsm4vi+Aa+6FU1OFU QD3ojJHX1KpwyZaxfBJjDM0U7dykTVeuNM1pUoqy+g71vDguFBkc+CWTXHnPqireVLXJ BHLVsksPVQK61sl1JN7aX7gB1BPLa6cBYiKcUDTBvEfZ0JnS2O2USxJtGIbSyPlirbeY IpSA== 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 g20si3199936pfh.95.2019.06.10.18.43.29; Mon, 10 Jun 2019 18:43:44 -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 S2390754AbfFKBmY (ORCPT + 99 others); Mon, 10 Jun 2019 21:42:24 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:31922 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2389168AbfFKBmY (ORCPT ); Mon, 10 Jun 2019 21:42:24 -0400 X-UUID: f11cea20fbdb41f9bc95a277a5c6092c-20190611 X-UUID: f11cea20fbdb41f9bc95a277a5c6092c-20190611 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 939432139; Tue, 11 Jun 2019 09:42:18 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 11 Jun 2019 09:42:17 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 11 Jun 2019 09:42:17 +0800 Message-ID: <1560217337.15546.1.camel@mtksdaap41> Subject: Re: [PATCH 5/5] drm/mtk: add panel orientation property From: CK Hu To: Derek Basehore CC: , , , , , , , , , , , , , , , , Date: Tue, 11 Jun 2019 09:42:17 +0800 In-Reply-To: <20190611002256.186969-6-dbasehore@chromium.org> References: <20190611002256.186969-1-dbasehore@chromium.org> <20190611002256.186969-6-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 Mon, 2019-06-10 at 17:22 -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. > Looks good to me, Acked-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;