Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2038162iof; Tue, 7 Jun 2022 17:47:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkOyxU3mMJmQL9hofI/uJvGtu5ygyXvh8KMUppI4rbC0pGh7i3hRAp68fAFOsag7ZPQHac X-Received: by 2002:a17:902:f791:b0:15f:15aa:2b53 with SMTP id q17-20020a170902f79100b0015f15aa2b53mr31544248pln.6.1654649246838; Tue, 07 Jun 2022 17:47:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654649246; cv=none; d=google.com; s=arc-20160816; b=xoWNVVrgTzmG03SJ0miOZ8TlLqgIBERSs0s/5tiA5RA7jU8kEv8pkYrsiJwvP9PXZV JkKUBkru1iPjn4gcMvgEJ5KcxYLwQWJFRSMNRhLAtC3BsT58q3jFjqrBSA8UvMlUxc3p sbsf1YLFPEApOfZi3/VOA+Ba1hPHJb7Nd+ajVigUW1w+YohZZS1UvZH8DMzGKjfHctQx 56oqHJrY0wD7NxKlNe8KKbb0BCcqVoc0B1rs70XOma16Hkvn48/DBYPe+t+tVgDkzPGJ nWtVYiFPJEr5xiZVkaXKl0Bsa9Ev9HdvOVl4smr6BRPneav+0gammXg+ckcSR29pquEb Q4oA== 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=cGEyHtlr1SLFBmVkGtZOPsEDXHuLYiOdYxZf624OWc1V4I9pbtLxLaso2YPBmN6Hd/ 48KZCoUSYAB085LyFFFyXbk6SMj0efih9X6mJE+Q+lFi57VK/09kacU4uoTwnLRp0a6X bHdCeaCYbGL21NNFLoWjQ95q960aK3O49M0yCm55DAotFE5CwlDZ6BOBEuFtZC6VtGQ9 gz/qPscgAUZYIHY97LRNMqyz1550/DZ8THHH/SdHupyfsUxK0Tn+Z+e9dfNjEcj+Ugr3 T6SyIAT0uBuvflPGadMSTIbI6CVhljnDK36xuyT5N2D2omk741QTm8IxP75dnvAVd4qC mSPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=e5GUX3w9; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id e12-20020aa7824c000000b0050dd2797010si22292750pfn.321.2022.06.07.17.47.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 17:47:26 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=e5GUX3w9; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 E3355201FCD; Tue, 7 Jun 2022 17:42:42 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238918AbiFGJGY (ORCPT + 99 others); Tue, 7 Jun 2022 05:06:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238917AbiFGJGH (ORCPT ); Tue, 7 Jun 2022 05:06:07 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47205D80B4 for ; Tue, 7 Jun 2022 02:06:06 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id w13-20020a17090a780d00b001e8961b355dso3065543pjk.5 for ; Tue, 07 Jun 2022 02:06:06 -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=e5GUX3w98mXidj6PktAsCCs+1jtyi7CTkOjk4ZtoYHy7DxEANDLibad2GC3quOwOrm UVZoqe81WqocOq5NEs/kaeH0rl1kjIlsj08svMQHfMdKvx5CkRYStIBgMRcuCypTHAy0 URnedot666T8TmTtSlzzLt0YKeJ/9f/LZz9XI= 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=ifVmLeDoJMwZ5MatZ6DNpJ0q7TzlzZTaToT2nfxxWV+M6CjFB+9FzLGQPZ0eghXgCT JRNpPjP7XYadBkoJ/GLtDOlWn6OqNyY96ejw4dB+EvVbpUX4xGKnGFahPOg7wfB+jlkS PcyK58fXiLebgdwPtmy88oSCSZQ/qF3GUzaJZHv/Pi8qahRVZ8Ww7Vjf28p3B76opdms tMhzTqwWxVhofvgFSHoLx4VpxUqFGblLZEklh5N28Byz4WFNxDzE7qCPTQ/lzf1O6u/v +I4FUBN15J4ZK/HFdTdanyRXoRdw9I8YlCm0pHOSrW+2yXFacQpIYv92Axc4agy52lFO 1uMQ== X-Gm-Message-State: AOAM533hAxyOvUhFWGb93n8oIcc8FR7p1K1GXZmc8s3U7qxyE9FWQY6k pqu5ITpIGeb/1wg77fjkjM6Diw== X-Received: by 2002:a17:90b:3c4e:b0:1e3:36c8:8496 with SMTP id pm14-20020a17090b3c4e00b001e336c88496mr40678398pjb.82.1654592765731; Tue, 07 Jun 2022 02:06:05 -0700 (PDT) Received: from hsinyi-z840.tpe.corp.google.com ([2401:fa00:1:10:40b7:55ce:10ee:c7a0]) by smtp.gmail.com with ESMTPSA id t27-20020aa7947b000000b0051c0fe8fb8csm4507010pfq.95.2022.06.07.02.06.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 02:06:05 -0700 (PDT) From: Hsin-Yi Wang To: Chun-Kuang Hu Cc: Hans de Goede , Thierry Reding , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Philipp Zabel , David Airlie , Daniel Vetter , Matthias Brugger , dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, Rob Clark , Stephen Boyd , Douglas Anderson , Rob Herring , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 3/8] drm/panel: panel-edp: Implement .get_orientation callback Date: Tue, 7 Jun 2022 17:05:44 +0800 Message-Id: <20220607090549.2345795-4-hsinyi@chromium.org> X-Mailer: git-send-email 2.36.1.255.ge46751e96f-goog In-Reply-To: <20220607090549.2345795-1-hsinyi@chromium.org> References: <20220607090549.2345795-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