Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8440212ybi; Tue, 9 Jul 2019 16:00:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqzQ5lr+m2+efFsp/CLhdYrfeAXyEIpNKTrlDy9CwkAF4JEH7E0GRbu/BOjDymgx0nW/NFge X-Received: by 2002:a63:2ad5:: with SMTP id q204mr33619303pgq.140.1562713200994; Tue, 09 Jul 2019 16:00:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562713200; cv=none; d=google.com; s=arc-20160816; b=olC2yJVTGTEHB+DXsbZ+GgzVeofm6xPUEMP3LPjNZNrbsZ4nhpMbVGmi4bJV5c1ulS tvxDDdAAl4bo3LPKGj0bs3k+ECpH/0VaFCL3bzCS51kKGb++tlque7gKqxdave7pnveo wAx04lDMc/Fm9dDbzdwc4OhjPGaoL/j6gRR3l4ax8h2yCgMCzbG9BBN3/hTVZhDA/ATm xwr/yQUO8x+IU4N2Kh1mOqEHrLBz87/HuuWahana4a8jl7kMMTUlW2GG6RwTMcu32q8r 410F+RICBFAoFTe0ED+kzUUNBT2NvNgJhMzli0Jp5AYbH/KTTmw1yOoHwxVTqUq0N7GB BWiw== 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=vxC6cpJeD3A10tWWsNE37FjIALjzLREnlwwa6KDygFo=; b=bOvGJnzk0Ksq6c4Ob2SC/zyq5gcT2nDjvlyXIrwiSm0lPYmsZUL65FHkQ/mAsH256m 8Q8aL5N+siVt9Ie+UNaZyvEN6gCPQTSEN8/FFdhV0HHi8Ex3fu4eAAd/oZdhep7La7iq oXMEJkXHQ6BykEHi6JRhYDPCgh3pTAQnYXbCZ9V+csosVuyqNbS675jpzCeR8lySJ+oU h7dlilaRn8VkW1ozJ+mSGankJXPU5hcDosRbGSrE7FpTZtyEiVJp0UtTfx6SDDjIyHJv tF7olufce2wmBNlxAyoCw0Bj9rWtskfDPCQs6kP68+st0fP7oA9jmKxGJxrKGrz6CeiL izpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=hgBbzEAB; 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 b74si258762pfb.281.2019.07.09.15.59.45; Tue, 09 Jul 2019 16:00:00 -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=hgBbzEAB; 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 S1727065AbfGIW6x (ORCPT + 99 others); Tue, 9 Jul 2019 18:58:53 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:46963 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727001AbfGIW6v (ORCPT ); Tue, 9 Jul 2019 18:58:51 -0400 Received: by mail-pf1-f194.google.com with SMTP id c73so70982pfb.13 for ; Tue, 09 Jul 2019 15:58:51 -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=vxC6cpJeD3A10tWWsNE37FjIALjzLREnlwwa6KDygFo=; b=hgBbzEABxs7OXnFPXxgw+hBQbbosBbo3oIFVVUgack6wrAgD9EpA6j8IAnhPv/nmsg HxQtZQgSRAJ8j0VZ/P1GhFATwxMZrprisR1ZbqbxyGz1yw0FWE+j+Wn6tPvNW0oBsgaV TMI/Q62D/gi+qE7S4rjIAyrABuWOpGp/YcvbE= 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=vxC6cpJeD3A10tWWsNE37FjIALjzLREnlwwa6KDygFo=; b=Df3/jp7Ec0N7SkX7BZ8pyPa4k/4t+RL04ZRlPkt/zX/T7ea5otBaMw/iMCQU63530K vVKeq0f0du0zCp4AMz8gOwhVdIgxqn68NszKE82lHR32X6Hi33yYUQU1oDlvB+DyhC0k 08CzKlQHZCRSpRBDu0qwosqpm0Q/Ry08SW5cC4fzOIbA89FSXZJ8OJdm86RC21OyBnI7 FdVTd0jdk9X7TerV56VM5JAiX+W20OWwOjI0QGvMxcPRXyEKm9TJtqBHbxdIHSx/ZczM ePmtpoJcZESH9IxJ7EkQrjcm+OlUtYTrPXF0ow3ZUk3lO6EzP1KRXb2dxlDr46Aq0w1g sdZA== X-Gm-Message-State: APjAAAVTDa9EgRHoaJW7qPB7OiAm1/OWE9DvUZNm4yHwbuM+TG5cV/Oi Jr3w+SwY4Bwcl88ydro5iAFQ3vE5bFc= X-Received: by 2002:a17:90a:37e9:: with SMTP id v96mr2817103pjb.10.1562713130418; Tue, 09 Jul 2019 15:58:50 -0700 (PDT) Received: from exogeni.mtv.corp.google.com ([2620:15c:202:1:5be8:f2a6:fd7b:7459]) by smtp.gmail.com with ESMTPSA id 201sm152939pfz.24.2019.07.09.15.58.49 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 09 Jul 2019 15:58:49 -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 v6 4/4] drm/mtk: add panel orientation property Date: Tue, 9 Jul 2019 15:58:40 -0700 Message-Id: <20190709225840.144038-5-dbasehore@chromium.org> X-Mailer: git-send-email 2.22.0.410.gd8fdbe21b5-goog In-Reply-To: <20190709225840.144038-1-dbasehore@chromium.org> References: <20190709225840.144038-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 b91c4616644a..2920458ae2fb 100644 --- a/drivers/gpu/drm/mediatek/mtk_dsi.c +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c @@ -790,10 +790,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.410.gd8fdbe21b5-goog