Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2197984pxp; Fri, 18 Mar 2022 05:44:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIZrVNKQpnspVbN10OC/EtDrxNWWpB4fjBF+JwOB9uRpCxTLZvccacuzSk/tD2UoKAgein X-Received: by 2002:a17:907:94c6:b0:6da:9561:ce0 with SMTP id dn6-20020a17090794c600b006da95610ce0mr8647596ejc.342.1647607477222; Fri, 18 Mar 2022 05:44:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647607477; cv=none; d=google.com; s=arc-20160816; b=XwT0AYm1vTN4RY25cGgdIhOxLDBaFxtHp6bz3eEdLvMyzFpk+CMCK1E9eRIn2E+a71 hJFbKPTErx32fYxlO0tDM9g2Qfxrr3zW6yX1nXzBlxT42dtTYxukdP1Yni218yzRHmk+ XLoPqH6ReLl04Og56s/8SGdnLLO1f7dsmfgeV3JgScTTH5JFbWJKB0dO2bPmZcTozifF 0Y1akBQZw8XGzgp3B+IH1+CsoA2/CR5vQD5U/ITYhNqS0pf4FDdo19H8l4ygRzznprzZ MnN4vBXt15d5zNXnt/24z0TngQyOYZlxqvAUEmvummyZBrVJAx1PxS3j8K5F++cB76aX ryNA== 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=Wk/pqrVyJD3dZfuBlDvR3gvRx5qETAjydlq9k9fo89I=; b=qCKvpQEad4F2/a91S8hPFFWf/73ma+LXYtb14myrWfiGgwNq/dOR7Q7FbQNI0vJm3j QLX2aZsoLFGfOzH2rVcl2HxGRUbqQOAG3sA0PIsOgR6NuQFq53BqcWbmbjuQR3ZnylB/ uXM+/4aRFczVSOoobF5lgc1EWoJsndjE2+tLPA2aqlS/T/jT6Dy4TOgXdlpEPvGfv8Pe zgt0RhYku8ljOIlO+LwUpB4JF0GHuazBOW0rRFiw5W2YVStFEc6Bq9BxXElhuXne/e0W mT4oI3YyjdeWwzng/HZm6sv6DYrUGFSH8Cqp74NigRkbvW4DNdcpxlqxBM0XKBcvyLLa emaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=MBv2nbtC; 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 bw2-20020a170906c1c200b006df76385e40si1166798ejb.736.2022.03.18.05.44.11; Fri, 18 Mar 2022 05:44:37 -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=MBv2nbtC; 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 S233816AbiCRIar (ORCPT + 99 others); Fri, 18 Mar 2022 04:30:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233787AbiCRIal (ORCPT ); Fri, 18 Mar 2022 04:30:41 -0400 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1D33264F54 for ; Fri, 18 Mar 2022 01:29:22 -0700 (PDT) Received: by mail-pl1-x635.google.com with SMTP id w4so6433188ply.13 for ; 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=kNmRXg5S13aYOu47/O0xzwWBw1nuztQdkfP8h3rpTDwqYSAU4M56dY0hMm2HiLMnwJ 6vJ8HgDOCpKTKx2KwM1oFDfzm27kLPJNayxQK3SP/2TiNn24XV6uq8Y03IpJxxjyTBkP k780zvU/BadLTcd2YLIFswUO1Sf6fDYEbSDjQBAJNdymrIJI9TJOHg5TfVDX+/FSqhx4 sNyL1cgYwkNgV41wXZD6X1aHnHGQxbEFl0bwfF7SVRMC+Kz9r6aJ1bv4e9BUNTJpiqLs PbTUvcHemt7NCgzW3gvypXTG9PHEFgq8lQ+OW9u5qWUUbDoaCRbZt14KoYqZjCSGyr8D EtOA== X-Gm-Message-State: AOAM531rLMm54mWENJNbB3fQSrakrlGI6SzxU5d9EXbpMlDNMyNhUOWy I3gV6Uibqq/L1TOvgYmZi6Es8g== 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 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 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 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=unavailable 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 --- drivers/gpu/drm/msm/dsi/dsi_manager.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.35.1.894.gb6a874cedc-goog