From patchwork Tue Apr 27 04:49:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hsin-Yi Wang X-Patchwork-Id: 12225341 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B0127C43460 for ; Tue, 27 Apr 2021 04:52:16 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 34E0B613AA for ; Tue, 27 Apr 2021 04:52:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 34E0B613AA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Coz48POwQn6ykxKxzQqixbws+dKBlfXEdFoh++MiuYg=; b=imKmND+FgyNGUoyr/wIEAypGa 9AffW5o2AHfqxQYsZiLpL0vYPi4XIRYBnTHbwnngK3jHAjMf8lE7Q5u9yymn4j2w8Q/6NemgYfdtk O75mlyjxHzP1mGawSaSANbN1bTpa95QkPSwKGd19DuMTMd1wdugWIaqFGl3oXem4fF+3opkgi393n BLbReDjCV+vS+ajs28w1Etpo+EnvmfhQCbJpNCt9koX/KoDS9X3aLt4Mi8CKKskeHfbXTXMOki8aZ FXa8EP8MnB4JaSaNrHBRwn7MYHnVj+NAs/yqesw7n3xU9INkkjdPD3DIpsoBvCjr1QA38Bbwm/dRU 8UhEoxX6Q==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lbFfx-000h24-9y; Tue, 27 Apr 2021 04:50:22 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lbFfc-000gyk-Cs for linux-arm-kernel@desiato.infradead.org; Tue, 27 Apr 2021 04:50:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=xF3OHVoJNfqjglnjvTxLJPf73tywjjNrGA26Syn00bg=; b=rj3PxGB04q0ATS0oedpcmsSFGF LqXoUKVYzWkgEqNzwkCPb5zfKkEanEvWgPjKYKZg5OBrNRlGF5FYCicFbxKymcIw8G1db5ZExVTf6 WRyWM51r3/BN0N6AD+1/GxFpyz0Lfl/RnImgIHbyC3ts2tzITjRPYDhBq3mJj90OBMfAVD7wkPEDS 0S9ft/muKcKjcxLKMn9xVHWWnfcKoqCptaynNTdACy26rY5rxG8/cpzR+jUdSfRaK/sZLbzo0Rqet +ddZp5uHz3lB02OpdxoK6uGczLU21ZUeM2MfVJoLwyI7Bes9Edo5f624p1ZjLvKLMyFDHB1XHeaxj iCBtg5Kw==; Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lbFfa-00GR5Q-05 for linux-arm-kernel@lists.infradead.org; Tue, 27 Apr 2021 04:49:59 +0000 Received: by mail-pf1-x42c.google.com with SMTP id y62so7891204pfg.4 for ; Mon, 26 Apr 2021 21:49:55 -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=xF3OHVoJNfqjglnjvTxLJPf73tywjjNrGA26Syn00bg=; b=aQkvabnsOYdSCbCI2Ahu8FMyIfugOfrAzX9FIMQJY9p2Czzu7GnXrtexTRQGyfcOXA zDUfD3J608v/yBPJ2tYvQStQjwqcURK8qXNGNtV4GnpwVVbXvHFDGHX/0e46PhgnQLJf wBihdkVOueiHhJkVMUT6VOim5Rl9dRrc7EZgY= 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=xF3OHVoJNfqjglnjvTxLJPf73tywjjNrGA26Syn00bg=; b=RmBws4DvZPsgfjIUSkZ8HSMu9EmNrAcHF5hsG0VQz02gxoQJtk0IKer3PcnvHHtRVc AlYCMsIpyqGK8rUgDyWpNTlrc9d9nxhcYoJtXzr+bi3Sk+uqFadG0kJAUHDjJcOiwmVD hL3DbQBprrehWbJdBjX/D7rT7s9VGo45ZIHGLYB7z9alq62i3njKj7seSRQT+cMUQff1 0RJIT4kLXUq7CQ5EZvqdbH+ylJkmPfi2RCksUye0lm51x1aVdlH7dM2ckJ0UJbWRbilC ZFHHtQCwc63LsPjIh6elpihzfXrp4fgBb9izvEZLmv1JXtaOlrWGmCHmQh1H6QXxJOso UtDA== X-Gm-Message-State: AOAM532pc3o82/hBwgMjyR05YTNPGW0spPfZlZ9Yg+q36d/yTSHGLKlx gYOSn2XbzAQURyKgL1oR61/ZVg== X-Google-Smtp-Source: ABdhPJwPPm4u4tg6YSG/bq6wlqozKqdTA0jRIW6pE9ln5m9hymH+OexWOCKpW5EL+vxYFzyZxE6Yrw== X-Received: by 2002:a62:bd13:0:b029:25c:5ec4:c2f3 with SMTP id a19-20020a62bd130000b029025c5ec4c2f3mr20817479pff.35.1619498995453; Mon, 26 Apr 2021 21:49:55 -0700 (PDT) Received: from hsinyi-z840.tpe.corp.google.com ([2401:fa00:1:10:3984:c4f5:8612:6b3e]) by smtp.gmail.com with ESMTPSA id c125sm1151517pfa.74.2021.04.26.21.49.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Apr 2021 21:49:55 -0700 (PDT) From: Hsin-Yi Wang To: dri-devel@lists.freedesktop.org Cc: Chun-Kuang Hu , Sean Paul , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , linux-kernel@vger.kernel.org, Rob Herring , Matthias Brugger , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v3 2/3] drm/mediatek: init panel orientation property Date: Tue, 27 Apr 2021 12:49:47 +0800 Message-Id: <20210427044948.12596-2-hsinyi@chromium.org> X-Mailer: git-send-email 2.31.1.498.g6c1eba8ee3d-goog In-Reply-To: <20210427044948.12596-1-hsinyi@chromium.org> References: <20210427044948.12596-1-hsinyi@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210426_214958_045934_84488565 X-CRM114-Status: GOOD ( 12.36 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Init panel orientation property after connector is initialized. Let the panel driver decides the orientation value later. Signed-off-by: Hsin-Yi Wang --- drivers/gpu/drm/mediatek/mtk_dsi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index ae403c67cbd9..0bd27872f2a4 100644 --- a/drivers/gpu/drm/mediatek/mtk_dsi.c +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c @@ -964,6 +964,7 @@ static int mtk_dsi_encoder_init(struct drm_device *drm, struct mtk_dsi *dsi) ret = PTR_ERR(dsi->connector); goto err_cleanup_encoder; } + drm_connector_init_panel_orientation_property(dsi->connector); drm_connector_attach_encoder(dsi->connector, &dsi->encoder); return 0;