Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1844167ybn; Thu, 26 Sep 2019 03:06:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqwdtaxGvzupXVtn0YOg5fdRnC6to20fmXyJufYIDCxJinKmRzeQqJpWx0OfBUIV3erPp3sM X-Received: by 2002:a17:906:4544:: with SMTP id s4mr2329192ejq.116.1569492381337; Thu, 26 Sep 2019 03:06:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569492381; cv=none; d=google.com; s=arc-20160816; b=IPjvbTdugTuv5WRr6XcX+waInA526r1/5sM4S0MFzu8JW5u/Ohl7WHgYMPDr8hdr9i b9UGRAXEAqQl2TiIOA3+LNdN2uRBWlPLr+ixydjUy05meGVyoSBKYNXHPj0B6MnLxGGK nydlZGuL9J7NmyjpJK0VG2oqwqyj3QTSuN0PNciyUrFFLiVuC/oyhxMFd59e8fmLwp7R aZPpL6vxbnzAvNOape2B+oC6Ao0LFf2zM5r9lD5Q2AHbQWBNiNrFnljzYJ7nB4GJ9rrR AUmLRIy2amLt9K5WJQqoqGa7FWZ/QMUUOE01GxIV6rjqf/2Z2+FLILJVWr2SVrVSjeD1 xluw== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=a8l1h42oL5P23xHtbf5VYzA5ZkeKmzbH6tKjUBSBl+E=; b=F647qREETLg+XkzZ1hmTD9+Ih6HJ+vXzfw3rgSoHi2TFuqmtOJcYW+V84NGSZtID57 bOFYcxxPmMrWwDWrLrvibCalTnT9NbkA1MCvXsF7OfvsB0u4JkhoroKlNrfabc1Ct822 SNwvBESHGb3riWFyoD6R5z0lXngdcyN5JMrfFUmIZ4Iy1nMnhdIR1TT1qVVLLInl/8VD pFfkYQYxwhqxy6Jq6d3+PUJCflYo67qYl/giIVbrdSVazPD/iCIUBWIch40+QzaDjXZL MOvqnDNlnFqNV/TaoIpd72hWLFsNGHM6Q4BqN9pVZA4YAwkHTTICbMGOOM5E3IPUY/ze tnnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mZdbN7PU; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i17si696437ejc.233.2019.09.26.03.05.58; Thu, 26 Sep 2019 03:06:21 -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=@chromium.org header.s=google header.b=mZdbN7PU; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730308AbfIYW6r (ORCPT + 99 others); Wed, 25 Sep 2019 18:58:47 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:35293 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730279AbfIYW6q (ORCPT ); Wed, 25 Sep 2019 18:58:46 -0400 Received: by mail-pl1-f193.google.com with SMTP id y10so346420plp.2 for ; Wed, 25 Sep 2019 15:58:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=a8l1h42oL5P23xHtbf5VYzA5ZkeKmzbH6tKjUBSBl+E=; b=mZdbN7PU15gvrkxboOz4EvcivX/ux1fVAqsJCq6EgzispzgwuhEsAlz2ZHeBFsy6AF nFJVLzl+LytoIKO4/YdZ1xWZH80l5SKrIIa2WxgJD+p+QXWSPvNvoGV2JOLti0PYNVZd IpeblEXMS3gfQeMUmm75yJ/NL7jP6a/9DNtx4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=a8l1h42oL5P23xHtbf5VYzA5ZkeKmzbH6tKjUBSBl+E=; b=tzcIeF7U/PfqhtdD2c4PRMPPznTz9kUou78ZGiXRetg/s8FylcKQnpTFGRdUhaX+fp 4aNfJ4e/s691rYLI42c/Rg+iiW8sQ/LBVpzm7nORcMEQY4OeDUnntv8FgmRqcbK3yY3a 5bPgREmAoxTL/t8iZGtP4BtYibd2JDzpTG7zi3n8ghJ2yNSGzY1uFaPYhiZ18xISMZkW 65q6D/eLztp6wFbNuc724ljmZ8TUF7w3e72KfhP/AHG/lA0isdCbYzhTbQbpC4a8Thy4 wxMOrDObFbAXp3TD6VxdXdfbsnRQFb01StELUeFZSDX4aQjWxL0BcIily6bfp0Ou0QPh c8Sg== X-Gm-Message-State: APjAAAUzI32YHeBnUAVOQOW/TdcJRCDrLJfHL8f33MTuzb3boFewP7fz ROf4bLuZKaLZV26XgRN8WtMyxzEAFDI= X-Received: by 2002:a17:902:b68e:: with SMTP id c14mr539964pls.306.1569452325220; Wed, 25 Sep 2019 15:58:45 -0700 (PDT) Received: from exogeni.mtv.corp.google.com ([2620:15c:202:1:5be8:f2a6:fd7b:7459]) by smtp.gmail.com with ESMTPSA id j24sm76185pff.71.2019.09.25.15.58.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2019 15:58:44 -0700 (PDT) From: Derek Basehore To: linux-kernel@vger.kernel.org Cc: 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, Derek Basehore Subject: [PATCH v8 4/4] drm/mtk: add panel orientation property Date: Wed, 25 Sep 2019 15:58:33 -0700 Message-Id: <20190925225833.7310-5-dbasehore@chromium.org> X-Mailer: git-send-email 2.23.0.351.gc4317032e6-goog In-Reply-To: <20190925225833.7310-1-dbasehore@chromium.org> References: <20190925225833.7310-1-dbasehore@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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