Message ID | 20220318074825.3359978-4-hsinyi@chromium.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ADD2FC433EF for <linux-arm-kernel@archiver.kernel.org>; Fri, 18 Mar 2022 08:31:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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=62YDuUUmpz+c4Z2zvclBIHjSDIfYAqnVJh5dWNiGOCQ=; b=RPCLDpAurQaNFC qRR+VX9IeXpaM5jCY3NJRdUfOmGjdf1mMyxBH5SLq4jMUBaan1pvD1zNyos47VWJhjLZ1As2PMpN5 BHLaLVilf0s9rCUrVCwz6wk0QM51jJIzAzrZZARHSbx1f24M1StTZFG25xPPsU3Nfru0TjQLd3hmJ DkxbUR0wexntm2OlqAxyuhkB0z/7jmFwoBnWpXhLNUUmi0ftiH3/LtaAU8ZXDS0/Sxh7YINIPmowD ETowJRP+nQd+0C8KrX5umoqB61eMG+Kx9wCqxtobswn/zSbMivuyQr/o/9U78qgy7iSRB/NhvrsoF HOH40FGB3ETvKhYBgypw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nV7zg-000mvJ-IA; Fri, 18 Mar 2022 08:29:56 +0000 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nV7z9-000maV-Pm for linux-arm-kernel@lists.infradead.org; Fri, 18 Mar 2022 08:29:26 +0000 Received: by mail-pj1-x1030.google.com with SMTP id mr5-20020a17090b238500b001c67366ae93so5329261pjb.4 for <linux-arm-kernel@lists.infradead.org>; Fri, 18 Mar 2022 01:29:22 -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=Wk/pqrVyJD3dZfuBlDvR3gvRx5qETAjydlq9k9fo89I=; b=MBv2nbtC77uuFP6FO9vF3JJunvP31eEWqLFqoiGIM3/E0+IkznfVBrTBIuGgXWfVv9 5TBZHlNgegYmt3aqmPENYo8GhMqjeRQgRc3d1sr5+ApsSsOS0LqCL96pxslRickdXpwV ZNw9ExgEXTLbAqCs2ncXkhyskWqy7wd4OrW7Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Wk/pqrVyJD3dZfuBlDvR3gvRx5qETAjydlq9k9fo89I=; b=NBCOlThMLswFNMjtkrkaIYub2l8LE0Qb1v3maxoHWEdWbA1U/EK3M9e01PSTuv4GYV DaqCrkvTG0Lc/ja7WyDR8uz0ip/9TwXmrzmwRYeJCuJWiZpsZ4bHVMHZqeH64s3WI9Z1 vX12zvXkltc5NInWM3/81SeHz9rCFdF1Alio1bcsGn2QtzczEKkabnnJc+kHg/aAIoWi Yh7/I03z7gw40zDrNX+Et3t7y3U8v4Q44voEMKaDLxHffF2RmL9enkYx4I0DHshM9MY9 rGiBj4ehr7YVXh3doCvPRnSWk7azbLkongB3MTecGtmX//CI1JnB9RiFxE1ozX9hCSWL qwzQ== X-Gm-Message-State: AOAM530/i2H2LSkmKnM2DnV5dx6e6xlBZQXKk3AcpezzlW0EH4QzkgRd jLlCkLLmlX/2M6VDfT01x/rqVw== X-Google-Smtp-Source: ABdhPJxZr+WrsVRD3EBe7ULBmlgFiXmGvjfKG8gVhn0pmPIZv9TgokVPdh4o8x0PeMOmdu3PzI1t6Q== X-Received: by 2002:a17:902:e944:b0:14e:dc4f:f099 with SMTP id b4-20020a170902e94400b0014edc4ff099mr9105752pll.161.1647592161915; Fri, 18 Mar 2022 01:29:21 -0700 (PDT) Received: from hsinyi-z840.tpe.corp.google.com ([2401:fa00:1:10:435a:ce78:7223:1e88]) by smtp.gmail.com with ESMTPSA id q2-20020a056a00084200b004f761a7287dsm9404044pfk.131.2022.03.18.01.29.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Mar 2022 01:29:21 -0700 (PDT) From: Hsin-Yi Wang <hsinyi@chromium.org> To: dri-devel@lists.freedesktop.org, David Airlie <airlied@linux.ie>, Daniel Vetter <daniel@ffwll.ch>, amd-gfx@lists.freedesktop.org, intel-gfx@lists.freedesktop.org Cc: Chun-Kuang Hu <chunkuang.hu@kernel.org>, Sean Paul <sean@poorly.run>, Maarten Lankhorst <maarten.lankhorst@linux.intel.com>, Maxime Ripard <mripard@kernel.org>, Thomas Zimmermann <tzimmermann@suse.de>, linux-kernel@vger.kernel.org, Rob Herring <robh+dt@kernel.org>, Matthias Brugger <matthias.bgg@gmail.com>, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Simon Ser <contact@emersion.fr>, Harry Wentland <harry.wentland@amd.com>, Alex Deucher <alexander.deucher@amd.com>, Jani Nikula <jani.nikula@linux.intel.com>, Emil Velikov <emil.l.velikov@gmail.com>, Hans de Goede <hdegoede@redhat.com> Subject: [PATCH v9 3/4] drm/msm: init panel orientation property Date: Fri, 18 Mar 2022 15:48:24 +0800 Message-Id: <20220318074825.3359978-4-hsinyi@chromium.org> X-Mailer: git-send-email 2.35.1.894.gb6a874cedc-goog In-Reply-To: <20220318074825.3359978-1-hsinyi@chromium.org> References: <20220318074825.3359978-1-hsinyi@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220318_012923_913840_E55EE448 X-CRM114-Status: GOOD ( 12.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Separate panel orientation property creating and value setting
|
expand
|
diff --git a/drivers/gpu/drm/msm/dsi/dsi_manager.c b/drivers/gpu/drm/msm/dsi/dsi_manager.c index 0c1b7dde377c..b5dc86ebcab9 100644 --- a/drivers/gpu/drm/msm/dsi/dsi_manager.c +++ b/drivers/gpu/drm/msm/dsi/dsi_manager.c @@ -627,6 +627,10 @@ struct drm_connector *msm_dsi_manager_connector_init(u8 id) connector->interlace_allowed = 0; connector->doublescan_allowed = 0; + ret = drm_connector_init_panel_orientation_property(connector); + if (ret) + goto fail; + drm_connector_attach_encoder(connector, msm_dsi->encoder); ret = msm_dsi_manager_panel_init(connector, id);
Init panel orientation property after connector is initialized. Let the panel driver decides the orientation value later. Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org> --- drivers/gpu/drm/msm/dsi/dsi_manager.c | 4 ++++ 1 file changed, 4 insertions(+)