Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2127381iof; Tue, 7 Jun 2022 20:39:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwfaGhdhbr7meI5cQ4sypStHHqVCqpCSZCO+0VH7JNxkP0Oagd4i6UPKcjxgLVINs2hNB8 X-Received: by 2002:a63:74d:0:b0:3fc:8fd3:c23b with SMTP id 74-20020a63074d000000b003fc8fd3c23bmr28251031pgh.392.1654659549694; Tue, 07 Jun 2022 20:39:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654659549; cv=none; d=google.com; s=arc-20160816; b=vTF1PImycC5vCIGjmghOdSQi3tEaa8MiVoEXotcthV5NHFoqU78uXE7BnTUFGXK/R4 BDscfZ1qnXsHNuFGmfiZNIU5uVkK3QSynweUL6iAUkuEq+V1uDQkz/R6ntqVKWeEJdOE cVZGpElqty97Tw8O4lkSQ0jAAUzXd6Yr6x+/Fb6BIr5uhB6qHDEOukg/90fBfOQP9VPQ FpQTVH70i6s3akWAWJwGx1Xg6AWsG6xIcDNtI0ETas1m9xBr/cciMq2WgSUXjAWP6/J7 dLQyBjwuj/c9UcoUKl0bpaPqYk9tsDuY+qm5briDgOvWKQCQvqEFtdGbjNR9ekOLcmrd Gf9Q== 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=FkC4wQn3+nXU7dST9FaxB+QRGREtiwsJHA3bRU8iD1Q=; b=xSaZoN9hbRYExVvmTmz6kLrriwHASEPjeo1YMc6vVgRdHxf8FY6Iu76gTfz7gk0xEX OdogJ4sy7/DbSRCESMKE5nMtEV4wt6xL7e0u+XBaqTp3ki5uiygiVpPYxpVsCH6+oR3f UQHLjSHV9Y90aODj9rDOui2bomd+LqOrP5qt5x7BGcBuH3oZJgKZ2Y+XySIJeGhhfnXn DbRB7DFCJIewxRVdzzKvOujmWqHbsHgxHoKP+9eTdSiLNdVvUjMtRP6lvnuo3Ihj62Bh 3tbmqopsRfhCIynFU5imKXw0Et1XDZRQJ6MWYbpsWaYx1KT45LuRD/gN3zZO4LUir5Y0 Sk7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=KBM2BBQM; 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 79-20020a630652000000b003fa0267a169si24927954pgg.864.2022.06.07.20.39.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 20:39:09 -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=KBM2BBQM; 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 97DFE258716; Tue, 7 Jun 2022 19:56:39 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238945AbiFGJGQ (ORCPT + 99 others); Tue, 7 Jun 2022 05:06:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238902AbiFGJGE (ORCPT ); Tue, 7 Jun 2022 05:06:04 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 669D6D80B4 for ; Tue, 7 Jun 2022 02:06:03 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id f9so3849723plg.0 for ; Tue, 07 Jun 2022 02:06:03 -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=FkC4wQn3+nXU7dST9FaxB+QRGREtiwsJHA3bRU8iD1Q=; b=KBM2BBQMMLkgUMsyR9jAjWANoeklgbSZu54h1hNjBmSk+dJ8U+LkBMOQU9IEslajqr IMWKVu3kPIKAiCJEzAlwxvBzAZUNCr9GzM0AXvUMoGO3F/K9fF3Irci+SpskTJtYvYsm XH6CtIIBAipgd4VblS3HvTpbYCYgpm9EN69YM= 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=FkC4wQn3+nXU7dST9FaxB+QRGREtiwsJHA3bRU8iD1Q=; b=LgjqVqNICv0lp7IC7HItU4lbB3Na7qnrdoBRcLTxNhz5NP4rkQATTkDWWdh2TaekLG ENs7+6Bg5CYyT7gvg81Q5KrYc53d6X5GYy3WaNnpzw9fv89OZjo+u/IgVqfno/Hkg7UM LOmcJqXIuDFjg+tUUc9EO97FiANdDXHl9JwX3eCzmEWKSUP0A01706vpl9LOr49ayc+c g7n+cZBI7WLk67iNb7G9GMIgFarnbX3iB6E1QRx4ryvyRJKFwtTPQnTsVV0Gcrz+sMwn S491O8b31nycZf0RqFdfbOPbeMwm7J2Flsg5oGuHvzirosQ3LHfOzWtfpmMoNCZanCvP waAw== X-Gm-Message-State: AOAM531HTbEtJUYL/OiniaexKzOdufymSkIWZH32O9xeeiKMFav/6Ctv uT7qmF4hzjc+2RgX0njzl6OGLP85VPfHdQ== X-Received: by 2002:a17:902:6a85:b0:163:d764:e1a9 with SMTP id n5-20020a1709026a8500b00163d764e1a9mr28522297plk.50.1654592762305; Tue, 07 Jun 2022 02:06:02 -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.05.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 02:06:01 -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 2/8] drm/panel: boe-tv101wum-nl6: Implement .get_orientation callback Date: Tue, 7 Jun 2022 17:05:43 +0800 Message-Id: <20220607090549.2345795-3-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 --- v4->v5: Move the usage text from caller to function doc. Leave todo instead. Same for other panel patches. --- drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c b/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c index 1be150ac758f..07f722f33fc5 100644 --- a/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c +++ b/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c @@ -1511,16 +1511,28 @@ static int boe_panel_get_modes(struct drm_panel *panel, connector->display_info.width_mm = boe->desc->size.width_mm; connector->display_info.height_mm = boe->desc->size.height_mm; connector->display_info.bpc = boe->desc->bpc; + /* + * TODO: Remove once all drm drivers call + * drm_connector_set_orientation_from_panel() + */ drm_connector_set_panel_orientation(connector, boe->orientation); return 1; } +static enum drm_panel_orientation boe_panel_get_orientation(struct drm_panel *panel) +{ + struct boe_panel *boe = to_boe_panel(panel); + + return boe->orientation; +} + static const struct drm_panel_funcs boe_panel_funcs = { .unprepare = boe_panel_unprepare, .prepare = boe_panel_prepare, .enable = boe_panel_enable, .get_modes = boe_panel_get_modes, + .get_orientation = boe_panel_get_orientation, }; static int boe_panel_add(struct boe_panel *boe) -- 2.36.1.255.ge46751e96f-goog