Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3943307ybi; Mon, 10 Jun 2019 21:04:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqzTt465d6bflBB3X9cN/iskejdIXJYn3cHVMP+EH2fuDpgkyZcLmAsyrmAdzowA9bZYgsOp X-Received: by 2002:a62:5e06:: with SMTP id s6mr80322834pfb.193.1560225881396; Mon, 10 Jun 2019 21:04:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560225881; cv=none; d=google.com; s=arc-20160816; b=p/4QZMMw8IXRXCWl+G/R6LOX4O2Mk4rioZ0EVH0zoHG842QNnVe5kS8rqnMvfPuE5j wiRzu45lG68dHVPGcjjNRpUpQ8ana9/HFP2bgpXs3PXYBYRfNPMdL+8DnGP9HcXaLS/Q GApNdDhW2B/ifpxFPF9UcqgqREkcY21PBeq3yWOb/TmSwAd+RxvbAkwQO63MvMXgTsZA +Eazl/RaG3YOmll4nN3CqhQLexIDWuj7QSZsIlmsEpYKzulCOH3wF8Pm6F3r6itEBjw/ IQJguifqTB76Zc7ePFVkqZR4Xwa1kGRqIWmSBgwCVvWMvEyh0Z/EUDObU74/WbppijZS 6d4g== 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=GRo6Z4jyCwN5EF7a+MZoPdOY9EccaYkj9CGRgv1z0grh/SEemf5fMepR1mTJvxOmiK Nz2F7sWPyVJbuuhP2LoorWRzjBmdN05GODFXSadaJt3q7K/4ZxLyG1T4hdZvfRhXbMIk age0h6O04Ixfb06Vhj7ZcIiFFLvF/LfyJ2ezUuinpMQgnZBQX0rRfdlaj5eeMk18EqqZ JOdfCykV05DkyUNCMrFjziPEyPrL6V0vV6NB9jRuTjRegf0oW9YURiuRqQ3722PNPQw8 WzXMAob+Ubi8BKGjH+M24LjdrPs19zEdOSNw3IWw9xHat7HdgCPJXTxCbnXEDo7l04eF thtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=CcUYJwRY; 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 e13si11517774pgi.176.2019.06.10.21.04.25; Mon, 10 Jun 2019 21:04:41 -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=CcUYJwRY; 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 S1728944AbfFKEEI (ORCPT + 99 others); Tue, 11 Jun 2019 00:04:08 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:32820 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389620AbfFKEEC (ORCPT ); Tue, 11 Jun 2019 00:04:02 -0400 Received: by mail-pg1-f196.google.com with SMTP id k187so5661517pga.0 for ; Mon, 10 Jun 2019 21:04:01 -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=CcUYJwRYFPcbjY4eu0n/t203Kb6yWjUPmTkt3aooyO0UUZofpy4cpboC6TwF076Ios ZWILIMTCOWl4KnH2TWGccw1JJqig6+YYtxMUTrG3nlZqucwadYAgNXi6pGreSG31TIXb RJFX+AUwh7s4gdYWU+Ew7z54dQtjsrzL7NH6c= 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=pAyoYoCfsVZb1Jxg6hgzCIoR5C+Q05h9wgCopkje6hO5KGxcZ2ABzgbZ1weHxXL5eN QI6BekDWny3341NmvA16xNrvGKEWpDyStelJXyV2u5IMHWwvA3EHpvyn0rmpqL3E6hVK ZmNj4SxSMlFySD28eDwXeBwn99YLlRLZtRVfv/fem7B/N34+G/Whq1MAe3aSxuSMqBho jZNu2P44HflOIEyW4xHi4zX1VB/5YU3Zjc8aDxWxHt2vqmdDECCWBVYbHS/w8/xGbjBw gZ7AWrT1ZrkSO2KKXZPOj3wxr/OF9fCDYaQXHWkJGwnbXJnfUCm0cvnVfAn3GkHNJijS kuAA== X-Gm-Message-State: APjAAAWkg9/BPsFcmeaMmNAkg9c6ZcJeda+u2LdapntZbq6GDiWvJPA6 pmFdTm8SkK7dMc3vagtciSXVxLbwYNA= X-Received: by 2002:aa7:804c:: with SMTP id y12mr76278547pfm.94.1560225841344; Mon, 10 Jun 2019 21:04:01 -0700 (PDT) Received: from exogeni.mtv.corp.google.com ([2620:15c:202:1:5be8:f2a6:fd7b:7459]) by smtp.gmail.com with ESMTPSA id y133sm13301185pfb.28.2019.06.10.21.04.00 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 10 Jun 2019 21:04:00 -0700 (PDT) From: Derek Basehore To: linux-kernel@vger.kernel.org Cc: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , Maarten Lankhorst , Maxime Ripard , Sean Paul , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , CK Hu , Philipp Zabel , Matthias Brugger , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.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 21:03:50 -0700 Message-Id: <20190611040350.90064-6-dbasehore@chromium.org> X-Mailer: git-send-email 2.22.0.rc2.383.gf4fbbf30c2-goog In-Reply-To: <20190611040350.90064-1-dbasehore@chromium.org> References: <20190611040350.90064-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