Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2359395pxp; Fri, 18 Mar 2022 08:58:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymcRHEiOuF8AWS8mYyWLs38I3JxaNMLR6SUjtZTaoMkoX+JlNLNXDZu2D+RPXf+ehi0CSd X-Received: by 2002:a05:6a00:319e:b0:4f6:dedb:6c52 with SMTP id bj30-20020a056a00319e00b004f6dedb6c52mr10788864pfb.31.1647619097611; Fri, 18 Mar 2022 08:58:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647619097; cv=none; d=google.com; s=arc-20160816; b=sbn83gcBs6S62NXtzGOQz8PrSdvB7IYIVKZxR0VczXQZYorAAj5vpJZZYJw3zQSSwv Os3JmKqIPOwX+ZBmzNCEkq0E97LKE9vPLmY85kw/L6U21rM9fyW1yJpqh6UaYzjHaMhv mAqoxnCKyd+cJWqJAu7qTKnOZeC5hEBNHfvfcZB7+W/mv/FMRt3VZxpzaEcgqvrB+McF yhZbpu6+3K1tkeFz4RCVjii+hoVd3v/au2Ud+XgZjlJOaIZZwf6CXfVxabTbhOyENlTO 1iaOrpElHmAeI5UO4DDKuqci4FF2ivzjaF7z5aRphyKrfNACfW0wLsaqOUp2t/LnQKB5 iXTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Q2qDv8+2Xs33bi39/5/bjWNq0xuzMLMZxKb+gV1x31A=; b=SABRJpjNXgtlFsRLLUJi9E5cwmJUjShITsSsPq8MCGBGMoAV7RBELIIV1AKGLrloNI bGfYxRJ/NyetWS0LVIp7W+495hUWKvNQ2KICoAXTE/STp8VbG2TpVt/fnzj8PmNap5FX 24DaS6y1pEMRjhh8fY2ff9GBseYYBhqGNtiI0wtwhL8jIfN0xrQ9DryP0HRLa26wG1Ns WVmwGqb1gBWpkpdr7aBGj1OuYPvI2UqFMvEU1yqi8ia0NC/UrQMuaqdJYdXOQuMRa8Zt AzgR43+A8uZjYN0uFvfcpNp9nxWdODIhGwu4liq618EjKmbLJsDyKvUVmMJe1FIaAomV mofA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=eTONqs9Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h7-20020a056a001a4700b004f9ff4d37c0si8641634pfv.228.2022.03.18.08.58.01; Fri, 18 Mar 2022 08:58:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=eTONqs9Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233779AbiCRIan (ORCPT + 99 others); Fri, 18 Mar 2022 04:30:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233783AbiCRIag (ORCPT ); Fri, 18 Mar 2022 04:30:36 -0400 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF26924B0B2 for ; Fri, 18 Mar 2022 01:29:18 -0700 (PDT) Received: by mail-pf1-x42a.google.com with SMTP id s11so8825034pfu.13 for ; Fri, 18 Mar 2022 01:29:18 -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=Q2qDv8+2Xs33bi39/5/bjWNq0xuzMLMZxKb+gV1x31A=; b=eTONqs9Y3piBGOdMGuMMcivDYzwSqMFZNucfhrjl17FHlTN4WIDwk19K4HOLMrk1iG Z9JW2BgOFS6i/9zHUZ4edoYzRasX/YYBjOmMTiYZs7tNSG0obMlHx/UiAhEyi5mPC4pm v6CMgLmDzK6uqrkCKkhh8Yn/oXduyc8b1UTyk= 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=Q2qDv8+2Xs33bi39/5/bjWNq0xuzMLMZxKb+gV1x31A=; b=Rzd8yBmR+T8nQbeCI332D8EZpaH63ZwwGDVtx1lFOSmn7WVr0Se6ufQb1hSwIdvjPC BcUv+Hk/XsfdhPLv6265+KY7gRBo6riRHq+0tqiZLA3/4G43c+TGkCu262vAeZk8G3ME cRltYsfWqaB4NI6N3LssyZ+PlQKN3CrlpK1gLPCzFPa62WkQp7zCN71VpPfGWPzaJ7mV D0JI9YNb23YnkKS9BOuUec8dIG8jpc6BLwlni75EZPxVHxxq3IS2EPQHRfN2Lll+1nkQ eZKgjjX/4PbquviCzIJAZxAIgfxU+oYUMSilQ4e+Mf3fOXVcvfokPC6VT6e+gOuKrAt7 fObQ== X-Gm-Message-State: AOAM532Tl5QfWSWO8A46LmUJ4ZkY75vrdwNm9oSzFJYdKyZkDLRubUqK l0MxXJ4iCVLKUCrcUednHUgMIg== X-Received: by 2002:a05:6a00:1310:b0:4ca:cc46:20c7 with SMTP id j16-20020a056a00131000b004cacc4620c7mr9191847pfu.44.1647592158327; Fri, 18 Mar 2022 01:29:18 -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.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Mar 2022 01:29:18 -0700 (PDT) From: Hsin-Yi Wang To: dri-devel@lists.freedesktop.org, David Airlie , Daniel Vetter , amd-gfx@lists.freedesktop.org, intel-gfx@lists.freedesktop.org Cc: Chun-Kuang Hu , Sean Paul , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , linux-kernel@vger.kernel.org, Rob Herring , Matthias Brugger , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Simon Ser , Harry Wentland , Alex Deucher , Jani Nikula , Emil Velikov , Hans de Goede Subject: [PATCH v9 2/4] drm/mediatek: init panel orientation property Date: Fri, 18 Mar 2022 15:48:23 +0800 Message-Id: <20220318074825.3359978-3-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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Init panel orientation property after connector is initialized. Let the panel driver decides the orientation value later. Signed-off-by: Hsin-Yi Wang Acked-by: Chun-Kuang Hu --- drivers/gpu/drm/mediatek/mtk_dsi.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index ccb0511b9cd5..0376b33e9651 100644 --- a/drivers/gpu/drm/mediatek/mtk_dsi.c +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c @@ -810,6 +810,13 @@ static int mtk_dsi_encoder_init(struct drm_device *drm, struct mtk_dsi *dsi) ret = PTR_ERR(dsi->connector); goto err_cleanup_encoder; } + + ret = drm_connector_init_panel_orientation_property(dsi->connector); + if (ret) { + DRM_ERROR("Unable to init panel orientation\n"); + goto err_cleanup_encoder; + } + drm_connector_attach_encoder(dsi->connector, &dsi->encoder); return 0; -- 2.35.1.894.gb6a874cedc-goog