From nobody Sun Feb 8 22:22:56 2026 Received: from sender-op-o17.zoho.eu (sender-op-o17.zoho.eu [136.143.169.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 429431EB184 for ; Tue, 1 Apr 2025 08:20:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.169.17 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743495603; cv=pass; b=pjA5nM/b0PIzEuJI0M2JvK6DnJOmQ13FKlTZuPWBIxwUi9Yc9IKT0EbUCv39iwmKNzVD2FPfjSvweuY44D1iVtNJ8zwxJv52Mk2IQaqSIMMbs3gdSdWcLBx91uBaFybpMPv/8alvkNoGypr3bbsH6Xoa3oi4rcSGjEAb/j17348= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743495603; c=relaxed/simple; bh=jhqJx49fcj3gKJzueL2kABZtIxhFn3/O3aOgaS3apgU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ZllqeE+UBKr7gBQuIlOGsRPF92uoV2eeElzjmWFoZU50DYfEFR0vKuep4GTjFCA5F6CRn6e5oTOyFWU2OehNfN610M3+6EJd5mPGGoGfB6Jq+JIHpWT42dwGQUDreiq4ckQLyHA0/m2/AAtiU1PaM+t9h16xB/d16NqAuGN+m0w= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=chir.rs; spf=pass smtp.mailfrom=chir.rs; dkim=pass (1024-bit key) header.d=chir.rs header.i=lotte@chir.rs header.b=lHTViPUX; arc=pass smtp.client-ip=136.143.169.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=chir.rs Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chir.rs Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chir.rs header.i=lotte@chir.rs header.b="lHTViPUX" ARC-Seal: i=1; a=rsa-sha256; t=1743495566; cv=none; d=zohomail.eu; s=zohoarc; b=XtaKPhUQtTwLDVpUSo8dsL2Beh7oqdbJ2TJ2gyCgpfT3qsz+sivmBGYma+IyqLICuGnQb64oy6ls0CYazbKhLpRnQ8YU7/GgXVJHE04W7m4425VGAAVC2DSwd48OhNJd3c67lUdkph6Xj6FJiB7R5btPoh9bgDI9WsPuuGZPkqE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1743495566; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=4G4q5PPDuHxsYayqZRtqQV33u9pG2D0fN2i5JuYeBHg=; b=CzH4Kc0RbxaH5Eja9VkRHyJywHT77YCbCyRvKsnRkzdGPVpNQ9RCcZwIwU/6wMqo14D9aBZ2UQS3dWWM2xsRVIoQKPMHFJU109F+d3fr1lQ9rpnX8h+G8OhrET451rhAxp3YiiMJcRIICVxSA3ZncTgCTT//roKRypAVTSYnseg= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=chir.rs; spf=pass smtp.mailfrom=lotte@chir.rs; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1743495566; s=zmail; d=chir.rs; i=lotte@chir.rs; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-ID:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Message-Id:Reply-To; bh=4G4q5PPDuHxsYayqZRtqQV33u9pG2D0fN2i5JuYeBHg=; b=lHTViPUXa197dLfXEloBaD2zZkTADqppm0F7xn8aIOG3J8jA6BVkSpXhSbbqGHKL wmrZpqbLfgzQ22eS0i8dWpmcnMnt+vTubOEfFLe18pnjS9OEf6RBxwJErkuZUc8o79G VXDUwnvE/552o5IWaZ70Mc+ZVJGnE0IoMxhMV54A= Received: by mx.zoho.eu with SMTPS id 1743495563988807.3819207227426; Tue, 1 Apr 2025 10:19:23 +0200 (CEST) From: =?UTF-8?q?Charlotte=20=Dele=C5=84kec?= To: neil.armstrong@linaro.org, quic_jesszhan@quicinc.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, max@maxfierke.com Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 3/3] drm/panel: clockworkpi-cwd686: Implement .get_orientation callback Date: Tue, 1 Apr 2025 09:18:33 +0100 Message-ID: <20250401081852.283532-4-lotte@chir.rs> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250401081852.283532-1-lotte@chir.rs> References: <20250401081852.283532-1-lotte@chir.rs> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Content-Type: text/plain; charset="utf-8" From: Max Fierke Returns the panel's configured orientation Signed-off-by: Max Fierke --- drivers/gpu/drm/panel/panel-clockwork-cwd686.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-clockwork-cwd686.c b/drivers/gpu/d= rm/panel/panel-clockwork-cwd686.c index 53d65e6df1b0..49db20de06c1 100644 --- a/drivers/gpu/drm/panel/panel-clockwork-cwd686.c +++ b/drivers/gpu/drm/panel/panel-clockwork-cwd686.c @@ -340,7 +340,10 @@ static int cwd686_get_modes(struct drm_panel *panel, s= truct drm_connector *conne drm_mode_set_name(mode); mode->type =3D DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED; =20 - /* 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, ctx->orientation); =20 drm_mode_probed_add(connector, mode); @@ -348,10 +351,19 @@ static int cwd686_get_modes(struct drm_panel *panel, = struct drm_connector *conne return 1; /* Number of modes */ } =20 +=20 +static enum drm_panel_orientation cwd686_get_orientation(struct drm_panel = *panel) +{ + struct cwd686 *ctx =3D panel_to_cwd686(panel); + + return ctx->orientation; +} + static const struct drm_panel_funcs cwd686_drm_funcs =3D { .unprepare =3D cwd686_unprepare, .prepare =3D cwd686_prepare, .get_modes =3D cwd686_get_modes, + .get_orientation =3D cwd686_get_orientation, }; =20 static int cwd686_probe(struct mipi_dsi_device *dsi) --=20 2.48.1