[PATCH 21/35] drm/tegra: sor: set the panel orientation on the connector

From: Dmitry Baryshkov

Date: Mon Oct 26 2026 - 07:33:47 EST


The panel is used directly, without the panel bridge, so nothing sets
its orientation on the connector apart from the workaround in the
get_modes() of some panel drivers, which runs too late.

Assisted-by: LLM
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxxxxxxxx>
---
drivers/gpu/drm/tegra/sor.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/tegra/sor.c b/drivers/gpu/drm/tegra/sor.c
index e384cbd0cbf7..8e419918671c 100644
--- a/drivers/gpu/drm/tegra/sor.c
+++ b/drivers/gpu/drm/tegra/sor.c
@@ -3112,6 +3112,8 @@ static int tegra_sor_init(struct host1x_client *client)
drm_connector_helper_add(&sor->output.connector,
&tegra_sor_connector_helper_funcs);
sor->output.connector.dpms = DRM_MODE_DPMS_OFF;
+ drm_connector_set_orientation_from_panel(&sor->output.connector,
+ sor->output.panel);

drm_encoder_init(drm, &sor->output.encoder,
&tegra_sor_encoder_funcs_cleanup, encoder, NULL);

--
2.47.3