Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2373307iof; Wed, 8 Jun 2022 03:41:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyshX7PqcPJwEnbx5pA/L4tnh6syrYtLbX6tZZ1o8ZFEIi8Ga5zQBt58tybsis6MArC1n9g X-Received: by 2002:a17:90a:7381:b0:1e2:ff0f:df07 with SMTP id j1-20020a17090a738100b001e2ff0fdf07mr37413450pjg.160.1654684864235; Wed, 08 Jun 2022 03:41:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654684864; cv=none; d=google.com; s=arc-20160816; b=leamDIFVHt4idAAwS0JxbN2mp/vo1POSu6HgMfzMERWZ0pClczHAmatVl/JrdpgkzF qFqERrMfTMHrABPMFBGHBbILn/vLch0hXwP0XVFJJ8C62s9MFhrIu8RdOQHk0xbvMcVF NfU03rZtT9RXTRxROc0+hm9v1T9sc/ui2Js9ahdyi0BZWcNt0dxL7PpZExUd7+DNBgh2 ppdBu54JT7vOg/++Tjme8rRKkjGEcjGVz8Cs5yoaLfxFxXuPExgxSKl4+B3W5PpT29HR DctecV6MyFwKcSNNf0nOVX6+v+SvVBWt1jupoLqg+zdlN7TfWCB8F2M/bv9HbAXq3yBn E+Lw== 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=xYeDQhf6C4qNcR/ypeqIeNKvzW6/RJ1frKBoLaPHIDU=; b=r2qex/ZA59Sl2L1ptave3c0Q+m5jhCETmXPVvHQTESbaMvMT+Humzbje6z3fWu2KOm izW7rmCI5KyhaVfDzd0j0Ej1jDROuqaPKaANW04rd6xrtPdaSuEpE/u9SO6Vgs9uIoJ/ /qcA7WNlopzeVag484YUwMDirYeZfEdOdzAe8SnlcImdyuSumrcAI1Dv+MJW+5qWPHiB nnAQ+Xo8emCk2NlfaSJmF476EAPtktWWtk9XGnpsdnnGxSL5l/0C70pUGixWw3aVilly R8tWW5vcBqL7ZvNh8qOJ+OM9v+468GloOgPNWAFIoHg/IbrG3vuoQXHFvCtZpHKbKNTB TKOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PC2Lf+u8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t1-20020a170902e84100b001618cb78b54si33279921plg.405.2022.06.08.03.41.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 03:41:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PC2Lf+u8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 12F081238BF; Wed, 8 Jun 2022 03:08:06 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235955AbiFHKGd (ORCPT + 99 others); Wed, 8 Jun 2022 06:06:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236143AbiFHKFw (ORCPT ); Wed, 8 Jun 2022 06:05:52 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77A9F195910 for ; Wed, 8 Jun 2022 02:48:42 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id d13so1519426plh.13 for ; Wed, 08 Jun 2022 02:48:42 -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=xYeDQhf6C4qNcR/ypeqIeNKvzW6/RJ1frKBoLaPHIDU=; b=PC2Lf+u82p33uAaLxsXBYJ5HR2k1jQ6H+aVDwMbLLghVBr2zDl0OupdsKQJX49uHlU jghqbYWRYx6nQjD4D/zcrT57r9Z1nUyag0neqj0aXKiuTekODbs3teUCdmSgDnmW6Gj4 HkfsrRM9CHzuMRJnbG3uPkwoM/Cze2d1WnxpA= 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=xYeDQhf6C4qNcR/ypeqIeNKvzW6/RJ1frKBoLaPHIDU=; b=uXmEvn2HRVzbhCKqNs6KKc3CVExrjLrz4ANVTtzwDWxQ0Xp1pzcUS5GTpvNT9fU9hn y6J5UEbVL9gyz2yNyPnJg2XxEi4oElMef1A5JYQb97rGA2gwEcTEc3X5sfMiYMAko/WU ZmLUb+6boMLiB8OoTwJu5LguE/OYhmiU/a1XH1QOqJ6CD/8E1hsWaEX4xNk2L5kf26sp zeeALGLuWFIACcT/taF0vlzoahxd/IDhOIFLr/syX1h9fbL89PbqbgBSWw+4FGUvkGcM 5TU8SqLbh6Xp1VGE/V5QS16UXFKuJLmpdqP9V8w4wlqIn2woP8R66Vi0RpLc9cm9BpoE Q2hg== X-Gm-Message-State: AOAM532Wr+nqnDy3uZIWG65feIw65RSq3+RrgiWUdfCiFY20KtPI9PP8 /rs1lYCqb20q07toMG6NC9yXNc1EUrrymg== X-Received: by 2002:a05:6a00:170b:b0:51b:cf4b:9187 with SMTP id h11-20020a056a00170b00b0051bcf4b9187mr31051182pfc.15.1654681711868; Wed, 08 Jun 2022 02:48:31 -0700 (PDT) Received: from hsinyi-z840.tpe.corp.google.com ([2401:fa00:1:10:c46b:e7b1:f6c8:5eb8]) by smtp.gmail.com with ESMTPSA id t10-20020a17090a950a00b001e28e80a8d6sm13584038pjo.38.2022.06.08.02.48.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 02:48:31 -0700 (PDT) From: Hsin-Yi Wang To: Hans de Goede , Sam Ravnborg , Stephen Boyd , Douglas Anderson Cc: Thierry Reding , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Philipp Zabel , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, Rob Clark , Rob Herring , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 3/8] drm/panel: panel-edp: Implement .get_orientation callback Date: Wed, 8 Jun 2022 17:48:11 +0800 Message-Id: <20220608094816.2898692-4-hsinyi@chromium.org> X-Mailer: git-send-email 2.36.1.255.ge46751e96f-goog In-Reply-To: <20220608094816.2898692-1-hsinyi@chromium.org> References: <20220608094816.2898692-1-hsinyi@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,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 To return the orientation property to drm/kms driver. Signed-off-by: Hsin-Yi Wang Reviewed-by: Hans de Goede Reviewed-by: Douglas Anderson --- drivers/gpu/drm/panel/panel-edp.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/panel-edp.c index c96014464355..ee622c1dd532 100644 --- a/drivers/gpu/drm/panel/panel-edp.c +++ b/drivers/gpu/drm/panel/panel-edp.c @@ -586,7 +586,10 @@ static int panel_edp_get_modes(struct drm_panel *panel, else if (!num) dev_warn(p->base.dev, "No display modes\n"); - /* set up connector's "panel orientation" property */ + /* + * TODO: Remove once all drm drivers call + * drm_connector_set_orientation_from_panel() + */ drm_connector_set_panel_orientation(connector, p->orientation); return num; @@ -609,6 +612,13 @@ static int panel_edp_get_timings(struct drm_panel *panel, return p->desc->num_timings; } +static enum drm_panel_orientation panel_edp_get_orientation(struct drm_panel *panel) +{ + struct panel_edp *p = to_panel_edp(panel); + + return p->orientation; +} + static int detected_panel_show(struct seq_file *s, void *data) { struct drm_panel *panel = s->private; @@ -637,6 +647,7 @@ static const struct drm_panel_funcs panel_edp_funcs = { .prepare = panel_edp_prepare, .enable = panel_edp_enable, .get_modes = panel_edp_get_modes, + .get_orientation = panel_edp_get_orientation, .get_timings = panel_edp_get_timings, .debugfs_init = panel_edp_debugfs_init, }; -- 2.36.1.255.ge46751e96f-goog