Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3799498ybi; Mon, 10 Jun 2019 17:23:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqzrazL5kAwn0M0aoev7hjrOHHp0Jhp8aepfYR8acn0b+KZXVkDEkItph3NipfeDKgumJSxO X-Received: by 2002:a63:1844:: with SMTP id 4mr16611052pgy.402.1560212620083; Mon, 10 Jun 2019 17:23:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560212620; cv=none; d=google.com; s=arc-20160816; b=JearrkX/l45gIlUhZW8vTPZxpWJB4Sx5johqRgJ3PLtnuGW/Cj+1qd0Bcsv5H4ku4Z sg29YxVATws4Sc+oZ/vjM3joO2OpWgLNfUIFLqgBRJeOvm+r1JII2sBuQ/7mHmepQtkQ nPG+EW8DVm33vCC1p0yOntR1HbCtDYWX1amPAnszz9BPWf6ekcMQN+paSbFc1J4B69cm YXz+xf/5w1fVy1/DBNZpxBgcgpcLhcoxCG27ku2wmgRDr3vprm5yTATdwcgkbREGQsRy 3vgAa8nY3I/YhNPgOJgSq/Nd66v/TWiHEF0gUXdRUF2rzyiuYibmkAmyfDv18sqsOA3R GNeg== 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=M8dK47yPhynvSehskkuhR0uoKpp2uUP0x/D6+OPbrUg=; b=Oxg9x2jKJO0P9ogSb8REV/YcZfsbfnl5uj2WrV+4VAQg74zQzWdbhDlzR3fMyFLbgq 9xG7cZwnXn2MeyKxP8XiZbrPI49ufA8zH6X4/rkrc0C8No9aYF9l0lCgz5Tflu/WaamC kMJYsn+InhwMonFEraauFYZQfMg9N7xN6pcus/8DECjdxLTzYUQ2bEnKWLQivsNpW25/ vo4v3lxGzykADuYetnkXx9PSOdA8SpbPsfNE8hWBPnOQEzmyZjo24E4C0Y0fohD3iSWR LeGJtB3EljtmhkMkl9LUhwK38feXjVC58BDH24nyyYniUqMcrbioHA1iKB5DU38vclNc 2KnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="f8RsE3S/"; 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 129si12143902pfe.140.2019.06.10.17.23.25; Mon, 10 Jun 2019 17:23:40 -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="f8RsE3S/"; 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 S2390888AbfFKAXO (ORCPT + 99 others); Mon, 10 Jun 2019 20:23:14 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:46714 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390825AbfFKAXL (ORCPT ); Mon, 10 Jun 2019 20:23:11 -0400 Received: by mail-pf1-f196.google.com with SMTP id 81so6219998pfy.13 for ; Mon, 10 Jun 2019 17:23:11 -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=M8dK47yPhynvSehskkuhR0uoKpp2uUP0x/D6+OPbrUg=; b=f8RsE3S/kfdDH6v5icBqkYxG44gp7sMpthCwyaqeVVv/htgQ5HpcDI6Wv0iU/zWNcb oatVGJ4axZtIjvktwE9gYtDNHp4sChejjwJoasvq2NwX71M8H6s0JQby/OGPhBngYau6 PLZre9cxMKoOn5+neuim6KE3BHgm+44DhuGtg= 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=M8dK47yPhynvSehskkuhR0uoKpp2uUP0x/D6+OPbrUg=; b=FOZVgj3p5TuvX3rEk+X3f4yfqfg4csM4uUfw668n1aFEzf2qOEQU9SLCYB6g09kjSW pKWmrCPIezFDf7I0rvPIfNhB0/TF9zSxiUUbm3st7oMTrlODbnjBpdI3B2qcdzruHOwR T+97wO7uKc0Mmd1oDu3Tzpat+S0r8jPYtGaGbTsKtMV2HPFYYuKFUV9dt1GdzXGxUfsG QWHUw0xWU1Ik1MqRJqs0G6EBQwAsSzcNvmQ6sxTewkaIBSXft1iWdrjwYM6qQg9zOrHZ +9BPQlyWvW9xtis2Se4Qbl3zwp8CVbKRHO7MEe1oQ4fhDJfZ7RR3e3WnlPX7t2cYt5BI XOBw== X-Gm-Message-State: APjAAAVbhr/H4aDb+UkngT9d1I5dbuHhGP/Y6qHQUfd0Ut5AS7LDFTIm JjyTSLEA8TJv3iXvKehi/2D09wAd5m8= X-Received: by 2002:a63:8249:: with SMTP id w70mr15859377pgd.33.1560212590903; Mon, 10 Jun 2019 17:23:10 -0700 (PDT) Received: from exogeni.mtv.corp.google.com ([2620:15c:202:1:5be8:f2a6:fd7b:7459]) by smtp.gmail.com with ESMTPSA id t4sm540317pjq.19.2019.06.10.17.23.09 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 10 Jun 2019 17:23:10 -0700 (PDT) From: Derek Basehore To: linux-kernel@vger.kernel.org Cc: maarten.lankhorst@linux.intel.com, maxime.ripard@bootlin.com, sean@poorly.run, airlied@linux.ie, daniel@ffwll.ch, thierry.reding@gmail.com, sam@ravnborg.org, jani.nikula@linux.intel.com, joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com, ck.hu@mediatek.com, p.zabel@pengutronix.de, matthias.bgg@gmail.com, 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 5/5] drm/mtk: add panel orientation property Date: Mon, 10 Jun 2019 17:22:56 -0700 Message-Id: <20190611002256.186969-6-dbasehore@chromium.org> X-Mailer: git-send-email 2.22.0.rc2.383.gf4fbbf30c2-goog In-Reply-To: <20190611002256.186969-1-dbasehore@chromium.org> References: <20190611002256.186969-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 --- 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; -- 2.22.0.rc2.383.gf4fbbf30c2-goog